Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Posts
    5
    Plugin Contributions
    0

    Default 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

    Code:
    <?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.

  2. #2
    Join Date
    Oct 2011
    Posts
    1
    Plugin Contributions
    0

    Default 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 Code:

    <?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'
                
    )
            )
        )
    );

  3. #3
    Join Date
    Oct 2011
    Posts
    5
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 27 Aug 2014, 08:24 PM
  2. Replies: 12
    Last Post: 17 Mar 2014, 11:10 PM
  3. Replies: 2
    Last Post: 16 Oct 2011, 11:27 PM
  4. Replies: 3
    Last Post: 13 Mar 2009, 05:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR