Title: Plugin throws error activating plugin with php 8.2
Last modified: July 8, 2024

---

# Plugin throws error activating plugin with php 8.2

 *  [lopezacceseo](https://wordpress.org/support/users/lopezacceseo/)
 * (@lopezacceseo)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/deprecated-throw-activating-plugin-with-php-8-2/)
 * Hi
 * Working with the debug activated, php 8.2 throws an error in different moments
   using the plugin:
    - saving theme options in mega menu -> theme menu
    - activating the plugin
 * The error is: Automatic conversion of false to array is deprecated in /app/wp-
   content/plugins/megamenu/megamenu.php on line 272
 * Looking the line, i changed the if statement with if ( !is_array($settings)) {,
   checking if is an array so the error dissapeared.
    -  This topic was modified 1 year, 11 months ago by [lopezacceseo](https://wordpress.org/support/users/lopezacceseo/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/deprecated-throw-activating-plugin-with-php-8-2/#post-17875186)
 * Hi lopezacceseo,
 * Many thanks for catching and reporting this. I’ve fixed it here: [https://plugins.trac.wordpress.org/changeset/3114133](https://plugins.trac.wordpress.org/changeset/3114133)
 * Regards,
   Tom

Viewing 1 replies (of 1 total)

The topic ‘Plugin throws error activating plugin with php 8.2’ is closed to new 
replies.

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [megamenu](https://wordpress.org/support/users/megamenu/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/deprecated-throw-activating-plugin-with-php-8-2/#post-17875186)
 * Status: not a support question