• Resolved vuster

    (@vuster)


    Hi,

    I’m getting this php warning. So just wondering if there’ll be a new release to fix this soon? Thanks.

    PHP message: PHP Warning: Invalid argument supplied for foreach() in /home/domain.com/d234hdzwzjnb/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(433) : eval()’d code on line 16\n’

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi vester,

    Unfortunately, I am unable to release a fix for this, because the error message does not originate from the code in this plugin but instead from the code in one of the snippets you have added.

    Unfortunately, there’s no way to tell the name of the snippet from the error message, but I can tell you that you need to find a snippet which uses a foreach statement on line 16. Hopefully that can narrow things down a bit.

    Once you’ve located the problem snippet, if you post the code here I would be happy to take a look and let you know what a potential fix might be. It sounds like the code might be passing a variable to foreach which is not an array.

Viewing 1 replies (of 1 total)
  • The topic ‘php warning’ is closed to new replies.