• Resolved haije

    (@haije)


    Hi,

    I have a page with a Gravity Form. When I open the page I get this error before the form (the form works):

    Notice: Trying to access array offset on value of type null in /www/sitenameexample_741/public/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()’d code on line 155

    I have many snippets active. How do I know what shippet is this error about?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter haije

    (@haije)

    Hi,

    I actually found the faulty snippet now, but anyway I would be interested how to know the snippet in question with error messages like this? What is the (484) there?

    HighKay

    (@hlorenz)

    Would be interested too in the answer ??

    Plugin Author Shea Bunge

    (@bungeshea)

    Hi @haije and @hlorenz,

    Unfortunately, most of this is unavoidable internal boilerplate. The two relevant parts are:

    eval()’d code on line 155

    and

    Notice: Trying to access array offset on value of type null

    The eval()’d code on line 155 part tells us that the problem is occuring on line 155 of a snippet.

    Unfortunately, the array offset part is less useful in this situation, but in general if the error message does mention a variable or function name, you can do a search including @line:155 which will narrow down the snippets you might need to go through.

    Hi @bungeshea ,
    my question might sound stupid, but how/where can I do that search?

    Thanks
    Heike

    Plugin Author Shea Bunge

    (@bungeshea)

    Hi @hlorenz,

    You should be able to find a search box on the Snippets menu, above the table.

    Hi @bungeshea ,
    thank you – that did the job ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to read the error message and find the right snippet?’ is closed to new replies.