Title: Parse Error
Last modified: June 13, 2017

---

# Parse Error

 *  [palmettoinfusion](https://wordpress.org/support/users/palmettoinfusion/)
 * (@palmettoinfusion)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/parse-error-451/)
 * Parse error: syntax error, unexpected ‘?’, expecting end of file in /wp-content/
   plugins/insert-php-code-snippet/shortcode-handler.php(29) : eval()’d code on 
   line 1
    -  This topic was modified 8 years, 12 months ago by [palmettoinfusion](https://wordpress.org/support/users/palmettoinfusion/).

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

 *  [44mxyzscripts](https://wordpress.org/support/users/44mxyzscripts/)
 * (@44mxyzscripts)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-451/#post-9365678)
 * There must be an error in the snippet you’ve created. Please recheck the code.
 *  [wan1402](https://wordpress.org/support/users/wan1402/)
 * (@wan1402)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/parse-error-451/#post-9695833)
 * [@palmettoinfusion](https://wordpress.org/support/users/palmettoinfusion/) : 
   do you have your codes begin with PHP tag?
    <?php — ?>
 *  [bindu07](https://wordpress.org/support/users/bindu07/)
 * (@bindu07)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-451/#post-10004619)
 * I have an exact issue…same error.
    I have <?php — ?>tags.
 *  [sourcespin](https://wordpress.org/support/users/sourcespin/)
 * (@sourcespin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/parse-error-451/#post-10091398)
 * I just installed the plugin a few minutes ago and had the same parse error. It
   happened because I posted the code with the tags and it appears that the plugin
   adds also, so under the snippet I had added (after hitting the edit icon), I 
   saw
    <?php <?
 * I removed the short tag and its working. My bad for including the tags, its a
   natural action.
    -  This reply was modified 8 years, 2 months ago by [sourcespin](https://wordpress.org/support/users/sourcespin/).
 *  [digitalrethink](https://wordpress.org/support/users/digitalrethink/)
 * (@digitalrethink)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/parse-error-451/#post-10093966)
 * Had the same problem and tried a million different things.
    What worked for me
   was commenting out the “<?php” tag instead of removing it.
 * It ends up looking like this:
    //<?php [the php code] ?>
 * Hope it helps.

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

The topic ‘Parse Error’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 5 replies
 * 6 participants
 * Last reply from: [digitalrethink](https://wordpress.org/support/users/digitalrethink/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/parse-error-451/#post-10093966)
 * Status: not resolved