There is a error after upgrade

  • Posts: 94
  • Thank you received: 3
4 years 7 months ago #318043

-- url of the page with the problem -- : www.pianyifa.com
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.15
-- PHP version -- : 7.4.5
-- Error-message(debug-mod must be tuned on) -- : 0 - syntax error, unexpected 'if' (T_IF)

Today I upgraded hikashop to 4.3.0. Unfortunately there was a error when click add to cart button after upgraded.
Error info:
0 - syntax error, unexpected 'if' (T_IF)

What is the problem? Thanks!

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 6 months ago #318052

Hi,

Turn off the "add to cart legacy" setting under the Advanced tab of the Hikashop configuration and it will work.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 6 months ago #318053

Hi,

Now, to be able to fix the issue, we would need to know the full error message and not the truncated one you have there.
For that, you can activate the "error reporting" and "debug mode" settings of the Joomla configuration and try again. The error message should now contain the file and line number of the problem.

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

  • Posts: 94
  • Thank you received: 3
4 years 6 months ago #318057

0 - syntax error, unexpected 'if' (T_IF)
You may not be able to visit this page because of:

1.an out-of-date bookmark/favourite
2.a search engine that has an out-of-date listing for this site
3.a mistyped address
4.you have no access to this page
5.The requested resource was not found.
6.An error has occurred while processing your request.
Please try one of the following pages: Home Page

If difficulties persist, please contact the System Administrator of this site and report the error below..

syntax error, unexpected 'if' (T_IF)

Attachments:
Last edit: 4 years 6 months ago by bluetooth.

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

  • Posts: 94
  • Thank you received: 3
4 years 6 months ago #318058

Many thanks!
I turned off the "add to cart legacy" and "Checkout legacy".It worked.

The following user(s) said Thank You: nicolas

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

  • Posts: 8
  • Thank you received: 0
4 years 6 months ago #318802

error_log.txt[ I have the same problem. flowers.vi When adding an item to the cart trying to check out. syntax error, unexpected 'if' (T_IF) This started after upgrading to HikaShop Business: 4.3.0 Joomla Version: 3.9.18 PHP version 7.3 This is urgent!!!!! Please help!!!![attachment=49302]error_log.txt[
I have the same problem.
flowers.vi
When adding an item to the cart trying to check out.
syntax error, unexpected 'if' (T_IF)

This started after upgrading to HikaShop Business: 4.3.0
Joomla Version: 3.9.18
PHP version 7.3

This is urgent!!!!!

Please help!!!!

Attachments:
Last edit: 4 years 6 months ago by redhookcreative. Reason: adding attachement

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 6 months ago #318805

Hello,

You have to re-download the HikaShop package on our website and install it on yours ; the hotfix has been published one week ago.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 4 years 6 months ago by nicolas.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum