• Resolved Toengel

    (@toengel)


    Hi,

    my logs are showing:

    PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/foobox-image-lightbox/freemius/includes/managers/class-fs-admin-menu-manager.php on line 536

    Should be fixed…

    Toengel@Alex

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @toengel,

    Thank you for reporting this. Are you able to tell us what version of FooBox you are using and what version of PHP is running on your webs hosting?

    @bradvin – would you please review this?

    Thread Starter Toengel

    (@toengel)

    Hi,

    FooBox Version 2.7.8
    PHP Version 7.4.2

    Toengel@Alex

    Plugin Author bradvin

    (@bradvin)

    hi @toengel

    The warning you are getting at this line should not happen. I have not been able to reproduce in all my testing.

    In your scenario, the global $menu; variable is null, which causes the warning. This could be caused by a plugin or theme conflict. Are you able to test on a staging version of your site, and set the theme to a default WordPress theme and disable all other plugins except FooBox. You would have to clear the logs and then check them afterwards, or enable WP_DEBUG on your staging site to see the warning.

    @freemius please check this out – it is happening in version 2.3.0 of the SDK in the function “find_top_level_menu”. It looks like $menu is null which causes the warning on the following line:

    foreach ( $menu as $pos => $m ) {

    Looking at the latest SDK, the code for this function is the same. I have not been able to reproduce unfortunately.

    @freemius – a quick reminder to review this SDK issue please. Thank you!

    @phillcoxon following @bradvin’s response, it sounds like environment specific issue, not something related to the SDK. That said, feel free to contact our support and we’ll do our best to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invalid argument supplied for foreach() in class-fs-admin-menu-manager.php’ is closed to new replies.