Title: Errors after upgrading to php 8.2
Last modified: October 7, 2024

---

# Errors after upgrading to php 8.2

 *  Resolved [Dan Stramer](https://wordpress.org/support/users/danstramer/)
 * (@danstramer)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/)
 * Hello
 * We are getting errors after upgrading to php 8.2, please advise: [https://dev.itaysharf.com/](https://dev.itaysharf.com/)
 * Thanks
 * Dan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-after-upgrading-to-php-8-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Dan Stramer](https://wordpress.org/support/users/danstramer/)
 * (@danstramer)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18063181)
 * This is the list of errors:
 *     ```wp-block-code
       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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Container/Container.php on line 33Deprecated: 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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Container/Container.php on line 16Deprecated: 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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Container/Container.php on line 11Deprecated: 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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Container/Container.php on line 37Deprecated: Creation of dynamic property ResponsiveMenuPro\Database\Database::$db is deprecated in /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Database/Database.php on line 8Deprecated: realpath(): Passing null to parameter #1 ($path) of type string is deprecated in /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 35Deprecated: Creation of dynamic property ResponsiveMenuPro\Controllers\FrontController::$manager is deprecated in /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Controllers/FrontController.php on line 36Deprecated: Creation of dynamic property ResponsiveMenuPro\Controllers\FrontController::$view is deprecated in /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Controllers/FrontController.php on line 37Deprecated: 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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 212Deprecated: 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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 216Deprecated: 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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 222Deprecated: 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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 226Deprecated: 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 /home/521795.cloudwaysapps.com/ywwzqvfwep/public_html/wp-content/plugins/responsive-menu-pro/app/Collections/OptionsCollection.php on line 238
       ```
   
 *  [Jussi Hattara](https://wordpress.org/support/users/jhattara/)
 * (@jhattara)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18065050)
 * Got a litany of similar errors when testing if a site could be upgraded to PHP
   8.1.
 *  Plugin Support [sadiyakhanam](https://wordpress.org/support/users/sadiyakhanam/)
 * (@sadiyakhanam)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18065871)
 * Hello Dan,
   Thank you for taking the time to explain the issue you’re experiencing.
   To help us understand what might be causing the problem, could you please let
   us know which version you’re trying to upgrade from?I truly appreciate your cooperation,
   and we’re here to assist you further.Kind regards,Sadiya
 *  Thread Starter [Dan Stramer](https://wordpress.org/support/users/danstramer/)
 * (@danstramer)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18065875)
 * 4.4.2
 *  Plugin Support [sadiyakhanam](https://wordpress.org/support/users/sadiyakhanam/)
 * (@sadiyakhanam)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18086404)
 * Hello [@danstramer](https://wordpress.org/support/users/danstramer/),
   I hope 
   you’re doing well. We noticed that you reached out to us on our support forum,
   and I wanted to check in to see if you’re still experiencing the issue. If so,
   could you please share the website URL where the problem is occurring?I appreciate
   your understanding, and I look forward to your response so we can assist you 
   further.Warm regards,Sadiya
 *  [topi_r](https://wordpress.org/support/users/topi_r/)
 * (@topi_r)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18108688)
 * Also this warning has been long time:
 *     ```wp-block-code
       Warning: Trying to access array offset on value of type null in /var/www/wordpress/public_html/wp-content/plugins/responsive-menu/v4.0.0/inc/classes/class-theme-manager.php on line 437
       ```
   
 *  [dhanush22](https://wordpress.org/support/users/dhanush22/)
 * (@dhanush22)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18118435)
 * Hi **[@topi_r](https://wordpress.org/support/users/topi_r/) **,
   I hope you are
   doing well. Apologies for the delayed response.To address the recurring warning
   you’ve been experiencing, could you please confirm the version of the Responsive
   Menu plugin you are currently using? Please ensure it’s updated to the latest
   version.Let me know if you encounter any issues after making these adjustments.
 * Thank you for your time and cooperation. I look forward to hearing from you.
 * Best regards,
 *  [elvagabundo](https://wordpress.org/support/users/elvagabundo/)
 * (@elvagabundo)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18135600)
 * Getting these, using 4.5.0 of the plugin, Php version 8.2:
 *     ```wp-block-code
       Bericht	The method "setVariables" of the Compiler is deprecated. Use the "addVariables" method for the equivalent behavior or "replaceVariables" if merging with previous variables was not desired. wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Compiler.php:5449 2	Plugin: responsive-menu Verouderd	Passing raw values to as custom variables to the Compiler is deprecated. Use "\ScssPhp\ScssPhp\ValueConverter::parseValue" or "\ScssPhp\ScssPhp\ValueConverter::fromPhp" to convert them instead. wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Compiler.php:5432 2	Plugin: responsive-menu Verouderd	The "ScssPhp\ScssPhp\Compiler::compile" method is deprecated. Use "compileString" instead. wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Compiler.php:442 2	Plugin: responsive-menu Verouderd	Passing trailing content after the expression when parsing a value is deprecated since Scssphp 1.12.0 and will be an error in 2.0. Expected end of value: failed at % ScssPhp\ScssPhp\Compiler::injectVariables on line 1, at column 0 wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Parser.php:335 6	Plugin: responsive-menu
       ```
   
    -  This reply was modified 1 year, 6 months ago by [elvagabundo](https://wordpress.org/support/users/elvagabundo/).
      Reason: readability
 *  [dhanush22](https://wordpress.org/support/users/dhanush22/)
 * (@dhanush22)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18148518)
 * Hi **[@elvagabundo](https://wordpress.org/support/users/elvagabundo/)** ,
   I hope
   this email finds you well. I apologize for the delay in responding to your message
   and truly appreciate your patience and understanding.
 * Thank you for providing detailed information about the issue you’re facing with
   the latest version and PHP 8.2. I’ve shared this matter with our development 
   team, and they are currently reviewing the specifics. Rest assured, we are working
   diligently to investigate and address the problem.
 * We deeply value your time and effort in bringing this to our attention and will
   keep you updated on our progress throughout the resolution process. If you have
   any additional details or observations, please feel free to share them, as they
   can assist us in resolving this more effectively.
 * Thank you for your cooperation and support.
 * Best regards,
   Dhanush

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

The topic ‘Errors after upgrading to php 8.2’ 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/)

 * 9 replies
 * 6 participants
 * Last reply from: [dhanush22](https://wordpress.org/support/users/dhanush22/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/errors-after-upgrading-to-php-8-2/#post-18148518)
 * Status: resolved