• I’ve deactivated WP Roids because I kept getting this error at the top of the page:
    Warning: Invalid argument supplied for foreach() in /home/fandco29/public_html/assets/plugins/wp-roids/wp-roids.php on line 498

    I’d really like to use the plugin as it has shaved quite a few seconds off the page load time. I find it’s absolutely awesome, in general.

    Any ideas what I can do to fix this?

    Warning: Invalid argument supplied for foreach() in /home/fandco29/public_html/assets/plugins/wp-roids/wp-roids.php on line 498

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

Viewing 1 replies (of 1 total)
  • Plugin Author Philip K Meadows

    (@philmeadows)

    Hiya there

    Glad you like WP Roids, as you can see, I’ve not maintained for some time, but will be updating again soon

    In the meantime, to fix your particular issue, wrap the foreach() loop from lines 498 to 506 with the following conditional code:

    if( $wcNopes !== FALSE )
    {
        // lines 498 to 506 go here
    }

    Failing that, edit line 496 to $isWoocommerce = TRUE; and then comment out/delete lines 497 to 506

    Hope this helps

    Phil

Viewing 1 replies (of 1 total)
  • The topic ‘Getting error: Warning: Invalid argument supplied for foreach()’ is closed to new replies.