• I am also getting the same error as someone else recently reported

    “Warning: Invalid argument supplied for foreach() in /home/mywebsite/public_html/wp-includes/shortcodes.php on line 560”

    Any idea whats causing this? I will report here if I find out myself.

    Great plugin by the way, but I can’t use unless I fix this error.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ozzymuppet

    (@ozzymuppet)

    Disabled majority of other plugs, purged cache, disabled cloudflare, refreshed .htaccess

    I suspect its the plugin itself? Will check the line 560 and perhaps remove it, if its not working anyway.

    Thread Starter ozzymuppet

    (@ozzymuppet)

    Hmm… shortcodes.php looks like actual wordpress code, not the plugin so I won’t be removing it.

    Can you please investigate this problem further? The plugin is working sure, but we can’t have an error displaying on our pages ??

    Thanks.

    i have the same error too – if i downgrade the PHP to 5.6 it disappears but on PHP7 (fast CGI) it breaks.

    I was able to work around this issue by adding a dummy attribute (just add an attribute even if you don’t plan on using it).

    can you share your example with us less code savvy people? and sure shouldnt the plugin author look at the core wordpress codex and add parameters to resolve it ?

    I think he should. But until then…
    There is no coding involved. When you go to create a new shortcode, on the bottom of the screen there is an option to add an attribute. Just set the first field, “attribute_name”, to anything (I set it yo “dummy” without the quotes) and save it. Make sure it is there after you save and come back to the page.

    you are awesome thank you! i completley missed those fields on the page!!!!!

    cheers ??

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