• Resolved kallym

    (@kallym)


    I am getting a message in the Error Log that starts out with:

    Missing argument 2 for WINP_Execute_Snippet::executePostSnippets(), called in .../wp-includes/class-wp-hook.php on line 286 and defined in .../wp-content/plugins/insert-php/includes/class.execute.snippet.php on line 60

    I am only using one PHP snippet. It’s very simple:

    
    if(isset($_GET['name'])){
    	    echo do_shortcode('[wbcr_text_snippet id="15443"]');
    	} else { echo do_shortcode('[wbcr_text_snippet id="15442"]'); }	
    

    The other two snippets are text snippets.

    Can you tell why I would be getting this error in the Error Log? The pages work fine.

    Thank You!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author webcraftic

    (@webcraftic)

    Hi,

    Where do you call the snippet shortcode? Are you using some kind of page builder?

    A similar problem was in the Visual composer, but corrected this error.

    Best regards, Alex

    Thread Starter kallym

    (@kallym)

    I’m using Classic Editor. I just checked the error log again and don’t see anything new the last few days, so whatever has evidently cleared up.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error Log – Missing Argument’ is closed to new replies.