Zen Cart Logo
Forums / All Other Contributions/Addons / PHP error in /plugins/riCjLoader/config/jquery.form.php on line 11

PHP error in /plugins/riCjLoader/config/jquery.form.php on line 11

Views: 2,574

Results 1 to 3 of 3
7 Oct 2011, 5:41 AM
#1
ronswayoflife avatar

ronswayoflife

New Zenner

Join Date:
Oct 2011
Posts:
5
Plugin Contributions:
0

PHP error in /plugins/riCjLoader/config/jquery.form.php on line 11

I have zen cart 1.3.9 and php 5.2.17

I am getting this in my error logs and a blank page when someone goes to checkout :

PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/myusername/public_html/plugins/riCjLoader/config/jquery.form.php on line 11

and here is the code from jquery.form.php

<?php
// we use php file for now, we will later move to using yaml or another format
$libs['jquery.form'] = array(
	'2.63' => array(
		'jscript_files' => array(
			'form.js' => array(
				'local' => 'form.js', 
			)
		)
	)
	'2.84' => array(
		'jscript_files' => array(
			'form.js' => array(
				'local' => 'form.js'
			)
		)
	)
);

and this is the parse error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in 2-jquery.form on line 11

I am stumped though since my php debugging skills are bad, any help would be hugely appreciated. :mellow:

7 Oct 2011, 7:36 AM
#2
antonioatt avatar

antonioatt

New Zenner

Join Date:
Oct 2011
Posts:
1
Plugin Contributions:
0

Re: PHP error in /plugins/riCjLoader/config/jquery.form.php on line 11

You need to put a comma before '2.84'
Compiler says
expecting ')' in 2-jquery.form on line 11 because if comma is missed the array is complete(array elements are separed by commas
x=array('x1'=>1,'x2'=>2).

Maybe you also must remove the comma in line 7
after 'local' => 'form.js' .

<?php
// we use php file for now, we will later move to using yaml or another format
$libs['jquery.form'] = array(
	'2.63' => array(
		'jscript_files' => array(
			'form.js' => array(
				'local' => 'form.js'
			)
		)
	),
	'2.84' => array(
		'jscript_files' => array(
			'form.js' => array(
				'local' => 'form.js'
			)
		)
	)
);
7 Oct 2011, 9:03 AM
#3
ronswayoflife avatar

ronswayoflife

New Zenner

Join Date:
Oct 2011
Posts:
5
Plugin Contributions:
0

Re: PHP error in /plugins/riCjLoader/config/jquery.form.php on line 11

Thank you! Thank you! Thank you! That fixed everything and fixed all those blank white php error pages. :clap: