Title: Error with php 8
Last modified: September 8, 2021

---

# Error with php 8

 *  Resolved [tibedev](https://wordpress.org/support/users/tibedev/)
 * (@tibedev)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-with-php-8-2/)
 * I looks like there is an issue with php 8.
 * class wp_megamenu_widgets uses error_reporting(‘E_ALL & ~E_NOTICE’) but the parameter
   must not be a string.
 * Must be an integer eller like this
    error_reporting(E_ALL & ~E_NOTICE);
 * [https://www.php.net/manual/en/function.error-reporting.php](https://www.php.net/manual/en/function.error-reporting.php)

Viewing 1 replies (of 1 total)

 *  [Shibbir Ahmed](https://wordpress.org/support/users/creativeartbd/)
 * (@creativeartbd)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/error-with-php-8-2/#post-14853304)
 * Hello [@tibedev](https://wordpress.org/support/users/tibedev/)
 * Go to `wp-content/plugins/wp-megamenu/classes/class.wp-megamenu-widgets.php` 
   at line number 120. Now just disable this line. I hope it will be solved then.
 * Kind Regards.

Viewing 1 replies (of 1 total)

The topic ‘Error with php 8’ is closed to new replies.

 * ![](https://ps.w.org/wp-megamenu/assets/icon-256x256.jpg?rev=2451874)
 * [WP Mega Menu](https://wordpress.org/plugins/wp-megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-megamenu/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shibbir Ahmed](https://wordpress.org/support/users/creativeartbd/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/error-with-php-8-2/#post-14853304)
 * Status: resolved