Parse error: syntax error, unexpected ')' in...

  • Posts: 7
  • Thank you received: 0
13 years 1 month ago #26708

Hi,

Received this message after adding product to cart:
Parse error: syntax error, unexpected ')' in /home/____/public_html/plugins/hikashoppayment/paypal/paypal.php on line 277

I tried deleting the ')' then I got this:
Parse error: syntax error, unexpected '(' in /home/____/public_html/plugins/hikashoppayment/paypal/paypal.php on line 267

The only thing I added to this file was what you told me (but this line is further down line 350):

"You need to add the line:
if($dbOrder->order_status == $order->order_status) return true;
before the line:
$order->mail_status=$statuses[$order->order_status];
in the paypal plugin file: plugins/hikashoppayment/paypal.php
That will avoid multiple emails even when the system receives multiple
notifications from paypal."

As I am no programmer, I know not what to do.

Please advice.

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 month ago #26710

Hi,

You should download the latest version of HikaShop and update it on your website.
We added that modification in the latest version so you won't have to change the code of the paypal plugin and won't have that error.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
13 years 1 month ago #26712

Hi Nicolas,

thanks for the quick reply.

How do I update?
Uninstall current version (will that delete all my products?)
or just update the paypal plugin file or ftp everything?

Please advice.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 month ago #26713

You can just ftp the paypal plugin files if you want.
Otherwise, updating hikashop is pretty easy. You can just install the new install package via the joomla installer and voilà. You don't need to uninstall it before and you won't loose your products. I still recommend you to do a backup of your website before just in case something goes wrong...

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
13 years 1 month ago #26714

Hi Nicolas,

I just ftp the plugin hikashoppayment paypal.php file and got this error message.

Fatal error: Call to undefined function hikashop_get() in /home/closet01/public_html/plugins/hikashoppayment/paypal/paypal.php on line 27

Please advice.

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 month ago #26715

That's because you're using an old version of HikaShop. You need to change all the hikashop_get to hikashop::get in the file...Or you could update HikaShop.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
13 years 1 month ago #26718

I have installed the new version. Installation all ok.

While doing checkout, after viewing shopping cart, I clicked on "Next" and
this message appeared:

Fatal error: Call to a member function get() on a non-object in /home/___/public_html/plugins/hikashoppayment/paypal/paypal.php on line 69

Did not complete the checkout process on the website couldn't proceed further but I received an order confirmation email.

Please advice. Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 month ago #26719

Please delete the paypal plugin files, redownload the install package on our website and install it again on your website.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
13 years 1 month ago #26730

All looks ok now. Thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum