Errors in PHP 8.1
-
All-In-One Event Calendar version 3.0.0 running on PHP 8.1.16 fills up my PHP error log with warnings at the rate of about 1 GB per day, on a fairly low traffic website.
Here are the errors I’ve identified so far:
[22-Jun-2023 16:36:28 UTC] All-in-One Event Calendar: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/lib/query/helper.php:160 #8192
[22-Jun-2023 16:37:24 UTC] All-in-One Event Calendar: Return type of Ai1ec_Abstract_Query::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/lib/http/request/abstract.php:198 #8192
[22-Jun-2023 16:37:24 UTC] All-in-One Event Calendar: Return type of Ai1ec_Abstract_Query::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/lib/http/request/abstract.php:208 #8192
[22-Jun-2023 16:37:24 UTC] All-in-One Event Calendar: Return type of Ai1ec_Abstract_Query::offsetSet($offset, $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 @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/lib/http/request/abstract.php:215 #8192
[22-Jun-2023 16:37:24 UTC] All-in-One Event Calendar: Return type of Ai1ec_Abstract_Query::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/lib/http/request/abstract.php:222 #8192
[22-Jun-2023 16:37:24 UTC] All-in-One Event Calendar: Automatic conversion of false to array is deprecated @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/app/controller/javascript.php:378 #8192
[22-Jun-2023 16:37:29 UTC] All-in-One Event Calendar: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/lib/query/helper.php:160 #8192
[22-Jun-2023 16:37:30 UTC] All-in-One Event Calendar: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/vendor/twig/Lexer.php:209 #8192
[22-Jun-2023 16:37:30 UTC] All-in-One Event Calendar: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/vendor/twig/Lexer.php:209 #8192
[22-Jun-2023 16:37:30 UTC] All-in-One Event Calendar: Return type of Twig_Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/vendor/twig/Node.php:222 #8192
[22-Jun-2023 16:37:31 UTC] All-in-One Event Calendar: ob_get_clean(): Failed to discard buffer of zlib output compression (1) @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/lib/global-functions.php:38 #8
[22-Jun-2023 16:37:31 UTC] All-in-One Event Calendar: ob_get_clean(): Failed to delete buffer of zlib output compression (1) @ /var/www/htdocs/wp-content/plugins/all-in-one-event-calendar/lib/global-functions.php:38 #8
- The topic ‘Errors in PHP 8.1’ is closed to new replies.