Title: Error Log &#8211; Missing Argument
Last modified: March 22, 2019

---

# Error Log – Missing Argument

 *  Resolved [kallym](https://wordpress.org/support/users/kallym/)
 * (@kallym)
 * [7 years ago](https://wordpress.org/support/topic/error-log-missing-argument/)
 * 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](https://wordpress.org/support/users/webcraftic/)
 * (@webcraftic)
 * [7 years ago](https://wordpress.org/support/topic/error-log-missing-argument/#post-11351469)
 * 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](https://wordpress.org/support/users/kallym/)
 * (@kallym)
 * [7 years ago](https://wordpress.org/support/topic/error-log-missing-argument/#post-11359655)
 * 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.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3475630)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kallym](https://wordpress.org/support/users/kallym/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/error-log-missing-argument/#post-11359655)
 * Status: resolved