Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Error in Paypal shopping cart IPN v2.8


Recommended Posts

I have install the module "Paypal shopping cart IPN v2.8", everything seems alright, except there there is an error in the admin page

" Parse error: parse error, unexpected ')' in c:\program files\easyphp\www\catalog\admin\includes\boxes\customers.php on line 32"


What should I amend?? have i done anything wrong??

Thank you

Link to comment
Share on other sites

Had this same problem after installing IPN 2.8 today (from 1.7!). I had the same error in two other files. For some reason, the (otherwise excellent) installation instructions sometimes leaves an array open after pasting in the "PayPal IPN" lines. I also had this issue in admin\includes\classes\order.php, and (much worse) shop\includes\classes\order.php.


Basically, you need to make sure that each field (BTW, I'm not a programmer, these are just terminology guesses) to the array ends in , and closes with );. For example:


$this->info = array('currency' => $order['currency'],

'currency_value' => $order['currency_value'],

'cc_expires' => $order['cc_expires']);


(With the last one closing in );)


Or, in your case:


(array) = blahblah '</a><br>' .

blahblah'</a><br>' .



If you have the problem later with any of the orders.php, check each array above the error line also. I had a previous array not closing either, causing an error in the following one.


Here's my section of customers.php (this has the batch print contrib installed):


<!-- customers //-->
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_CUSTOMERS,
                    'link'  => tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('selected_box')) . 'selected_box=customers'));

 if ($selected_box == 'customers') {
   $contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>'.
          '<a href="' . tep_href_link(FILENAME_BATCH_PRINT) . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_BATCH_CENTER . '</a><br>' .
//begin PayPal_Shopping_Cart_IPN
                                  '<a href="' . tep_href_link(FILENAME_PAYPAL, '', 'NONSSL') . '" class="menuBoxContentLink">'. BOX_CUSTOMERS_PAYPAL .'</a>');
//end PayPal_Shopping_Cart_IPN

 $box = new box;
 echo $box->menuBox($heading, $contents);
<!-- customers_eof //-->

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...