plugins – WordPress wyrzuca przestarzałe błędy we własnych plikach
Moja witryna WordPress generuje przestarzałe błędy PHP w plikach wp-include.
Jestem początkującym programistą WordPress pracującym nad moją witryną.
Jestem zalewany tymi błędami i bardzo wysokim zużyciem procesora w mojej witrynie. Aktywacja określonego zestawu wtyczek powoduje błąd przestarzałego w mojej instalacji WordPress.
Używam PHP7.4 i doświadczyłem tego samego również w PHP 8.1.
Ponieważ te błędy pochodzą z folderu wp-includes, podejrzewam, że WordPress próbuje mi powiedzieć coś, czego nie rozumiem.
Po drugie, czym do diabła jest ten „słoik z ciasteczkami”?
[16-Mar-2023 18:08:11 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Cookie/Jar.php on line 63
[16-Mar-2023 18:08:11 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Cookie/Jar.php on line 73
[16-Mar-2023 18:08:11 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Cookie/Jar.php on line 89
[16-Mar-2023 18:08:11 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Cookie/Jar.php on line 102
[16-Mar-2023 18:08:11 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Cookie/Jar.php on line 111
[16-Mar-2023 18:08:12 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40
[16-Mar-2023 18:08:12 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51
[16-Mar-2023 18:08:12 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68
[16-Mar-2023 18:08:12 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82
[16-Mar-2023 18:08:12 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
Proszę o poradę co może być z nim nie tak.