[Skip to main content](#vessel-content)

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

##

- **[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")**
- [![kynchan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2526-kynchan "View kynchan's Profile") Topic Author
- [ Offline](/forum/user/2526-kynchan)

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 3 weeks ago [\#26708](#26708) by [kynchan](/forum/user/2526-kynchan "View kynchan's Profile")  *[Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26708 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")* was created by *[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")*

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-&gt;order_status == $order-&gt;order_status) return true;
before the line:
$order-&gt;mail_status=$statuses[$order-&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 3 weeks ago [\#26710](#26710) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26710 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")**
- [![kynchan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2526-kynchan "View kynchan's Profile") Topic Author
- [ Offline](/forum/user/2526-kynchan)

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 3 weeks ago [\#26712](#26712) by [kynchan](/forum/user/2526-kynchan "View kynchan's Profile")  Replied by *[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")* on topic *[Re: Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26712 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 3 weeks ago [\#26713](#26713) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26713 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")**
- [![kynchan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2526-kynchan "View kynchan's Profile") Topic Author
- [ Offline](/forum/user/2526-kynchan)

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 3 weeks ago [\#26714](#26714) by [kynchan](/forum/user/2526-kynchan "View kynchan's Profile")  Replied by *[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")* on topic *[Re: Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26714 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 3 weeks ago [\#26715](#26715) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26715 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")**
- [![kynchan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2526-kynchan "View kynchan's Profile") Topic Author
- [ Offline](/forum/user/2526-kynchan)

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 3 weeks ago [\#26718](#26718) by [kynchan](/forum/user/2526-kynchan "View kynchan's Profile")  Replied by *[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")* on topic *[Re: Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26718 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 3 weeks ago [\#26719](#26719) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26719 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")**
- [![kynchan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2526-kynchan "View kynchan's Profile") Topic Author
- [ Offline](/forum/user/2526-kynchan)

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 3 weeks ago [\#26730](#26730) by [kynchan](/forum/user/2526-kynchan "View kynchan's Profile")  Replied by *[kynchan](/forum/user/2526-kynchan "View kynchan's Profile")* on topic *[Re: Parse error: syntax error, unexpected ')' in...](/forum/3-bug-report/26708-parse-error-syntax-error-unexpected-in#26730 "Hi,  Received this message after adding product to cart: Parse error: syntax error, unexpected ')' in /home/&#95;&#95;&#95;&#95;/public&#95;html/plugins/hikashoppayment/paypal/paypal.php on line 277  I tried deleting the ')' then I got this: Parse error: syntax error, unexpected '(' in /home/&#95;&#95;&#95;&#95;/public&#95;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):  &quot;You need to add the line: if($dbOrder-&gt;order&#95;status == $order-&gt;order&#95;status) return true; before the line: $order-&gt;mail&#95;status=$statuses&#91;$order-&gt;order&#95;status&#93;; in the paypal plugin file: plugins/hikashoppayment/paypal.php That will avoid multiple emails even when the system receives multiple notifications from paypal.&quot;  As I am no programmer, I know not what to do.  Please advice.  Thanks.")*

All looks ok now. Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNjcwOC1wYXJzZS1lcnJvci1zeW50YXgtZXJyb3ItdW5leHBlY3RlZC1pbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.145 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
