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

#   There is a error after upgrade

##

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

Less More

- Posts: 94
- Thank you received: 3
-
-

6 years 6 months ago [\#318043](#318043) by [bluetooth](/forum/user/9052-bluetooth "View bluetooth's Profile")  *[There is a error after upgrade](/forum/25-install-update/899656-there-is-a-error-after-upgrade#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&#95;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&#95;IF)  What is the problem? Thanks!")* was created by *[bluetooth](/forum/user/9052-bluetooth "View bluetooth's Profile")*

-- url of the page with the problem -- : [ www.pianyifa.com](http://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5OTY1Ni10aGVyZS1pcy1hLWVycm9yLWFmdGVyLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

6 years 6 months ago [\#318052](#318052) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[There is a error after upgrade](/forum/25-install-update/899656-there-is-a-error-after-upgrade#318052 "-- 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&#95;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&#95;IF)  What is the problem? Thanks!")*

Hi,

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5OTY1Ni10aGVyZS1pcy1hLWVycm9yLWFmdGVyLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

6 years 6 months ago [\#318053](#318053) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[There is a error after upgrade](/forum/25-install-update/899656-there-is-a-error-after-upgrade#318053 "-- 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&#95;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&#95;IF)  What is the problem? Thanks!")*

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

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

Less More

- Posts: 94
- Thank you received: 3
-
-

6 years 6 months ago -  6 years 6 months ago [\#318057](#318057) by [bluetooth](/forum/user/9052-bluetooth "View bluetooth's Profile")  Replied by *[bluetooth](/forum/user/9052-bluetooth "View bluetooth's Profile")* on topic *[There is a error after upgrade](/forum/25-install-update/899656-there-is-a-error-after-upgrade#318057 "-- 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&#95;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&#95;IF)  What is the problem? Thanks!")*

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)

[ ![00111.JPG](/forum/attachment/49177) ](/forum/attachment/49177 "00111.JPG")

- [ ![00111.JPG](/forum/attachment/49177) ](/forum/attachment/49177 "00111.JPG") [ ](/forum/attachment/49177?download=1 "00111.JPG")

Last edit: 6 years 6 months ago by [bluetooth](/forum/user/9052-bluetooth "View bluetooth's Profile").

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

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

Less More

- Posts: 94
- Thank you received: 3
-
-

6 years 6 months ago [\#318058](#318058) by [bluetooth](/forum/user/9052-bluetooth "View bluetooth's Profile")  Replied by *[bluetooth](/forum/user/9052-bluetooth "View bluetooth's Profile")* on topic *[There is a error after upgrade](/forum/25-install-update/899656-there-is-a-error-after-upgrade#318058 "-- 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&#95;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&#95;IF)  What is the problem? Thanks!")*

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

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

6 years 6 months ago -  6 years 6 months ago [\#318802](#318802) by [redhookcreative](/forum/user/37585-redhookcreative "View redhookcreative's Profile")  Replied by *[redhookcreative](/forum/user/37585-redhookcreative "View redhookcreative's Profile")* on topic *[There is a error after upgrade](/forum/25-install-update/899656-there-is-a-error-after-upgrade#318802 "-- 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&#95;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&#95;IF)  What is the problem? Thanks!")*

[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!!!!

Last edit: 6 years 6 months ago by [redhookcreative](/forum/user/37585-redhookcreative "View redhookcreative's Profile"). Reason: adding attachement

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

6 years 6 months ago -  6 years 6 months ago [\#318805](#318805) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[There is a error after upgrade](/forum/25-install-update/899656-there-is-a-error-after-upgrade#318805 "-- 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&#95;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&#95;IF)  What is the problem? Thanks!")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 6 years 6 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5OTY1Ni10aGVyZS1pcy1hLWVycm9yLWFmdGVyLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) 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.065 seconds

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