Title: Many PHP Deprecated Errors in debug.log
Last modified: November 16, 2023

---

# Many PHP Deprecated Errors in debug.log

 *  Resolved [derekg1023](https://wordpress.org/support/users/derekg1023/)
 * (@derekg1023)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/many-php-deprecated-errors-in-debug-log/)
 * Hi,
 * We get a log of entries all day long in our debug log all of which I have removed
   duplicates for and have provided below. We’re on PHP 8.2 and the latest Responsive
   Menu plugin. Are there any plans to fix some of these deprecated errors? Some
   of these such as the “Twig” ones have been alerting for years even on PHP 7.4.
 * Thanks!
 *     ```wp-block-code
       PHP Deprecated: Return type of ResponsiveMenuPro\Container\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Container/Container.php on line 33PHP Deprecated: Return type of ResponsiveMenuPro\Container\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Container/Container.php on line 16PHP Deprecated: Return type of ResponsiveMenuPro\Container\Container::offsetSet($id, $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 /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Container/Container.php on line 11PHP Deprecated: Return type of ResponsiveMenuPro\Container\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Container/Container.php on line 37PHP Deprecated: Creation of dynamic property ResponsiveMenuPro\Licensing\Check::$beta is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Licensing/Check.php on line 47PHP Deprecated: Creation of dynamic property ResponsiveMenuPro\Database\Database::$db is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Database/Database.php on line 8PHP Deprecated: realpath(): Passing null to parameter #1 ($path) of type string is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 35PHP Deprecated: Creation of dynamic property ResponsiveMenuPro\Controllers\FrontController::$manager is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Controllers/FrontController.php on line 36PHP Deprecated: Creation of dynamic property ResponsiveMenuPro\Controllers\FrontController::$view is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Controllers/FrontController.php on line 37PHP Deprecated: Return type of ResponsiveMenuPro\Collections\OptionsCollection::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 212PHP Deprecated: Return type of ResponsiveMenuPro\Collections\OptionsCollection::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 216PHP Deprecated: Return type of ResponsiveMenuPro\Collections\OptionsCollection::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 in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 222PHP Deprecated: Return type of ResponsiveMenuPro\Collections\OptionsCollection::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 226PHP Deprecated: Return type of ResponsiveMenuPro\Collections\OptionsCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 238PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 222PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 234PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 243PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 248PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 253PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 187PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 191PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 211PHP Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Lexer.php on line 283PHP Deprecated: Return type of Twig_Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Node.php on line 209PHP Deprecated: 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 in /var/www/acme.com/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Node.php on line 214
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/many-php-deprecated-errors-in-debug-log/#post-17207415)
 * Dear derekg1023,
 * I hope this message finds you well.
 * Thank you for reaching out to us. I have noted your inquiry and will discuss 
   it with our technical team. I will keep you updated with any further information
   or updates as soon as possible.
 * If you have any additional questions or concerns in the meantime, please feel
   free to let me know. We appreciate your patience.
 * Best regards,
   Sumit
 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/many-php-deprecated-errors-in-debug-log/#post-17209188)
 * Dear [@derekg1023](https://wordpress.org/support/users/derekg1023/) ,
 * I trust this message finds you well.
 * To assist you more effectively, could you please share the version of the Responsive
   Menu plugin you are currently using? If you are using an older version, I recommend
   updating to the latest version as it may include bug fixes and improvements.
 * Looking forward to your reply.
 * Best regards,
   Sumit
 *  Thread Starter [derekg1023](https://wordpress.org/support/users/derekg1023/)
 * (@derekg1023)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/many-php-deprecated-errors-in-debug-log/#post-17210114)
 * Hi Sumit,
 * I am on version 4.3.1.
 * Thank you!
 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/many-php-deprecated-errors-in-debug-log/#post-17217180)
 * Dear [@derekg1023](https://wordpress.org/support/users/derekg1023/),
 * Can you please switch to version 4 code. It might be possible that you are using
   the version 3 code.
 * Please take a website backup first and perform the migration.
 * Here is the screenshot link for your reference.
 * [https://snipboard.io/oPMZjS.jpg](https://snipboard.io/oPMZjS.jpg)
 * Let me know if you need more help.
 * Regards,
   Sumit

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Many PHP Deprecated Errors in debug.log’ is closed to new replies.

 * ![](https://ps.w.org/responsive-menu/assets/icon-256x256.png?rev=1782326)
 * [Responsive Menu - Create Mobile-Friendly Menu](https://wordpress.org/plugins/responsive-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-menu/reviews/)

## Tags

 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * 4 replies
 * 2 participants
 * Last reply from: [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/many-php-deprecated-errors-in-debug-log/#post-17217180)
 * Status: resolved