• Getting these PHP Warnings on my WP 6.2.2 site running PHP 8.1. Can someone help resolve these? The menu is no longer loading. Thanks!

    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
    
    Warning: Attempt to read property "theme_location" on array in /app/wp-content/plugins/megamenu/megamenu.php on line 449
    
    Warning: Attempt to read property "before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 182
    
    Warning: Attempt to read property "link_before" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "link_after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 196
    
    Warning: Attempt to read property "after" on array in /app/wp-content/plugins/megamenu/classes/walker.class.php on line 240
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Cory,

    Thanks for reporting this. I’m testing here and I don’t see the same warnings (same php and WordPress version).

    Which theme are you using? Do you still get warnings if you switch theme?

    Regards,
    Tom

    I’m getting the exact same errors. Works on my local env and on a live site that hasn’t been updated but breaking on dev. Same version of the plugin is being use in both environments and on my local. I’m using a custom theme built on Timber.

    Plugin Author megamenu

    (@megamenu)

    Hi pdee,

    What is the difference between your live and dev environments?

    Do you see the same warnings if you switch to a different theme?

    Regards,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Many PHP Warnings’ is closed to new replies.