• Resolved SaQuarious

    (@saquarious)


    With Speed Booster Pack enabled, I am receiving the following error message at the top of my site, on all pages:

    Warning: Invalid argument supplied for foreach()
    That is then followed by my website URL and then: main/wp-content/plugins/speed-booster-pack/inc/core.php on line 350

    I have all options in the setting enabled except for: “Insert all CSS styles inline to the footer.”

    Any ideas on what’s causing this, and how to fix it? FYI I’m also running W3TC and WP SlimStat, both recently added but at about the same time as Speed Booster.

    https://www.ads-software.com/plugins/speed-booster-pack/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    That’s odd because personally I run Speed ??Booster Pack plugin on six personal websites and fail to reproduce the error reported by you at all, even with WP_DEBUG set to true. Also, no one until now has reported such warning. Have you amended the plugin code in any way?

    I personally checked the code and everything seems fine. That code belongs to Removes extra Font Awesome stylesheets option.

    It would be useful to know if the error is still there with the cache plugin disabled and if you are using the latest version of the plugin. Regards.

    Thread Starter SaQuarious

    (@saquarious)

    Thank you for the quick reply. It is the latest version of the plugin – all plugins and WP database are the latest versions. I haven’t touched the code on any of them. I will test it with different plugins turned off and see what happens.

    I recently added a few including W3-TC and RS Head Cleaner Plus. I’m pretty sure the error didn’t appear until tweaking settings in those other two plugins, but I’m not positive about that. I didn’t notice the error as I was logged in as admin, I had a customer notify me. It only shows in other browsers and mobile where I’m not logged in to WP.

    You can check my site too for the same error home1.org
    I have all settings without lazy and move scripts to the footer.

    Warning: Invalid argument supplied for foreach() in /home/home1/public_html/wp-content/plugins/speed-booster-pack/inc/settings.php on line 58

    Warning: array_merge(): Argument #1 is not an array in /home/home1/public_html/wp-content/plugins/speed-booster-pack/inc/settings.php on line 63

    Warning: array_values() expects parameter 1 to be array, null given in /home/home1/public_html/wp-content/plugins/speed-booster-pack/inc/settings.php on line 64

    Warning: Invalid argument supplied for foreach() in /home/home1/public_html/wp-content/plugins/speed-booster-pack/inc/settings.php on line 68

    Warning: Invalid argument supplied for foreach() in /home/home1/public_html/wp-content/plugins/speed-booster-pack/inc/settings.php on line 87
    Warning: array_merge(): Argument #1 is not an array in /home/home1/public_html/wp-content/plugins/speed-booster-pack/inc/settings.php on line 92
    Warning: array_values() expects parameter 1 to be array, null given in /home/home1/public_html/wp-content/plugins/speed-booster-pack/inc/settings.php on line 93
    Warning: Invalid argument supplied for foreach() in /home/home1/public_html/wp-content/plugins/speed-booster-pack/inc/settings.php on line 97 – See more at: https://home1.org/#sthash.2yqXZKSA.dpuf

    Interesting, but removing “Removes extra Font Awesome styles” as I read here fix the issue..I fixed the error like this, but if you need, I have the error log file (6mb uncompressed)

    I get the same error as the original post with no settings enabled. Not on every page but on some.

    I am also getting the same error in one of my sites and it did not work (on ubuntu 13.10 and php 5.5.3). But it is working perfectly in my other site (on ubuntu 14.04 andphp 5.5.9),

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi @bml13 it could be a bug in the php 5.5.3 version.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with error message on top of page’ is closed to new replies.