Parse Error / Syntax Error
-
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?
The topic ‘Parse Error / Syntax Error’ is closed to new replies.