Title: PHP errors with PHP 8.1
Last modified: February 13, 2022

---

# PHP errors with PHP 8.1

 *  [carysma](https://wordpress.org/support/users/carysma/)
 * (@carysma)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-with-php-8-1/)
 * Hi
    I get a lot of PHP errors through WPappbox since the switch to PHP 8.0 or
   8.1. WordPress version is 5.9.
 * Here is an excerpt from Query Monitor:
 *     ```
       Veraltet	Return type of phpQueryObject::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4104
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::next($cssSelector = null) should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4124
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4110
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4141
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4089
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:2806
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4149
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4155
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::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	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4161
       Plugin: query-monitor
       Veraltet	Return type of phpQueryObject::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice	1	
       wp-content/plugins/wp-appbox/inc/queryelements.php:4168
       ```
   
 * If any information is needed to fix the errors, please write briefly.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marcelismus](https://wordpress.org/support/users/marcelismus/)
 * (@marcelismus)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-with-php-8-1/#post-15361822)
 * Yes, phpQuery itself is no longer developed by the developers. Therefore, there
   are currently no adjustments to PHP 8.x and for my part, at least in the short
   term, none are possible to the phpQuery class. Update with #[ReturnTypeWillChange]
   is coming in the next days (at least for the upper notices).
    -  This reply was modified 4 years, 3 months ago by [Marcelismus](https://wordpress.org/support/users/marcelismus/).

Viewing 1 replies (of 1 total)

The topic ‘PHP errors with PHP 8.1’ is closed to new replies.

 * ![](https://ps.w.org/wp-appbox/assets/icon-256×256.png?rev=976882)
 * [WP-Appbox](https://wordpress.org/plugins/wp-appbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-appbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-appbox/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-appbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-appbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-appbox/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marcelismus](https://wordpress.org/support/users/marcelismus/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-with-php-8-1/#post-15361822)
 * Status: not a support question