Title: Parse error: syntax error, unexpected ‘;’
Last modified: August 30, 2016

---

# Parse error: syntax error, unexpected ‘;’

 *  [bjarkof](https://wordpress.org/support/users/bjarkof/)
 * (@bjarkof)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-57/)
 * Hi, I’m getting a strange error with the plugin. I’m trying to to this:
 * `[insert_php]$id = 1557; $p = get_page($id); echo apply_filters('the_content',
   $p->post_content);[/insert_php]`
 * And I’m getting this error:
 * Parse error: syntax error, unexpected ‘;’ in /var/www/xn--fnpark-pua9l.dk/public_html/
   wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2
 * Hope you can help me!
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

Viewing 1 replies (of 1 total)

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-57/#post-6604178)
 * Calling functions defined elsewhere within WordPress is problematic. Insert PHP
   is not a shortcode. [insert_php] and [/insert_php] are markers for the plugin
   to copy the PHP code. The code is then processed through the eval() function,
   which is unlikely to have access to functions declared elsewhere.
 * See [http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#inandofitself](http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#inandofitself)
   for more information.
 * Will

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error, unexpected ‘;’’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [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/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-57/#post-6604178)
 * Status: not resolved