Support » Plugin: Code Snippets » Full fill my log file with PHP Notice

  • Resolved aidenturner


    Hi there,

    It’s not serious issue but it’s very good if you can take a look at.

    Notice: Use of undefined constant ‘blockusers_init’ – assumed ‘‘blockusers_init’’ in …/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()’d code on line 1

    Numerous of this message displays whenever I reload a page. So you can image my log file can be full filed in 1-2 days.

    Thanks for your help.

    Let me know if you need any other information.

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


    Hi @aidenturner,

    This error message is not coming from the plugin itself, but from one of your snippets. It sounds like you are trying to use the text blockusers_init as a string, but it’s missing the quotation marks.

    If you do a search within the snippets menu for the text blockusers_init, you should be able to find the snippet causing the error.

    If you’d like some assistance fixing the problem, feel free to post the code here and I can take a look at it.

    Thread Starter aidenturner


    Thanks for your reply, @bungeshea .

    It’s quite weird since the issue doesn’t happens at the moment.

    However, I have double-checked all my code snippets but nothing contains ‘blockusers_init’. I change nothing on my site since this report.

    By the way, I will keep an eye at the issue.

    Thanks for your help.

    Plugin Author Shea Bunge


    Strange! Perhaps that snippet was updated since you started seeing the error message?

    Let me know if it pops up again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.