Title: Parse Error / Syntax Error
Last modified: August 30, 2016

---

# Parse Error / Syntax Error

 *  [thinkdm2](https://wordpress.org/support/users/thinkdm2/)
 * (@thinkdm2)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-117/)
 * I am receiving the following error, with code that I have used on 2 other WordPress
   sites without issue:
 * Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/content/99/
   10524399/html/tiamo/wordpress/wp-content/plugins/insert-php/insert_php.php(48):
   eval()’d code on line 6
 * Below is the PHP that I am inserting:
 * $path = $_SERVER[‘DOCUMENT_ROOT’];
    $path .= ‘/bazaarvoice/bvseosdk.php’; require(
   $path); $bv = new BV(array( ‘deployment_zone_id’ => ‘Main_Site-en_US’, ‘product_id’
   => ‘TA-000012’, ‘cloud_key’ => ‘xxxxxxxxxx’, ‘staging’ => ‘TRUE’, ));
 * I have pasted this into a ‘text’ field of a Text Block as part of Visual Composer.
 * Any idea what the issue could be?
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

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

 *  Thread Starter [thinkdm2](https://wordpress.org/support/users/thinkdm2/)
 * (@thinkdm2)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-117/#post-6444080)
 * In the meantime, I found that I can use the ‘Allow PHP in Posts and Pages’ plugin
   to do the same thing without any errors.
 * I am considering this a temporary solution, since this plugin is no longer maintained—
   if possible, I would like to get a resolution for this plugin.
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-117/#post-6444087)
 * Visual Composer and the Insert PHP plugin don’t work well together. Sometimes,
   no problem. Other times issues such as you’re experiencing. I’m not certain about
   this, but Visual Composer may be treating the Insert PHP boundary markers as 
   if they were shortcodes, when they really aren’t.
 * It may be that Visual Composer is changing => to =& gt; (no space between “&”
   and “gt;” – was the only way this interface would let me insert an html entity),
   which is likely to spawn an error message similar to what you see. Or, it may
   be code in the bvseosdk.php file.
 * Try putting the code into a stand-alone page with <?php and ?> instead of [insert_php]
   and [/insert_php]. If no errors, then it’s not your code and is likely a Visual
   Composer/Insert PHP incompatibility.
 * Will

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

The topic ‘Parse Error / Syntax Error’ 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/)

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