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

#   MySQL error on step 3 of checkout process

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 1 month ago -  10 years 1 month ago [\#251778](#251778) by [Brolko](/forum/user/44129-brolko "View Brolko's Profile")  *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#251778 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")* was created by *[Brolko](/forum/user/44129-brolko "View Brolko's Profile")*

Hi,

I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.
Code:

Failed to load resource: the server responded with a status of 500 (Unknown column 'products' in 'field list' SQL=INSERT IGNORE INTO &#96;#__hikashop_order&#96; ( &#96;order_user_id&#96;,&#96;order_status&#96;,&#96;order_shipping_address_id&#96;,&#96;order_billing_address_id&#96;,&#96;order_discount_code&#96;,&#96;order_currency_id&#96;,&#96;order_currency_info&#96;,&#96;order_type&#96;,&#96;order_full_price&#96;,&#96;order_shipping_price&#96;,&#96;order_shipping_tax&#96;,&#96;order_discount_tax&#96;,&#96;order_discount_price&#96;,&#96;order_payment_id&#96;,&#96;products&#96;,&#96;order_created&#96;,&#96;order_ip&#96;,&#96;order_modified&#96; ) VALUES ( '24','created','215','215','code30','4','O:8:\"stdClass\":4:{s:13:\"currency_code\";s:3:\"GBP\";s:13:\"currency_rate\";s:7:\"1.00000\";s:20:\"currency_percent_fee\";s:4:\"0.00\";s:17:\"currency_modified\";s:10:\"1473026825\";}','sale','0','0','0','0','2.6','0',',','1475842103','188.65.100.234','1475842103' ))

If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?

Thanks in advance
Lucas

Last edit: 10 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4Njc5NS1teXNxbC1lcnJvci1vbi1zdGVwLTMtb2YtY2hlY2tvdXQtcHJvY2Vzcz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 1 month ago [\#251784](#251784) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#251784 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")*

Hi,

You could go in your PHPMyAdmin, open the table hikashop_order and add a new column "products" so that this MySQL query wouldn't fail.
However, the real problem here is that it tries to use that variable as a column when it shouldn't. Would you have some other extension integrated with HikaShop which might lead to that issue ? If you disable the hikashop and system plugins one by one can you find a culprit where you wouldn't have the problem anymore if you disabled it ?

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 1 month ago [\#251912](#251912) by [Brolko](/forum/user/44129-brolko "View Brolko's Profile")  Replied by *[Brolko](/forum/user/44129-brolko "View Brolko's Profile")* on topic *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#251912 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")*

Thanks Nicolas,

I was hoping adding the column would resolve this issue but it seems to have no affect. With regards to plugins then I am currently not using any with Hikashop, just the standard standalone install.

Lucas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4Njc5NS1teXNxbC1lcnJvci1vbi1zdGVwLTMtb2YtY2hlY2tvdXQtcHJvY2Vzcz90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 1 month ago [\#251914](#251914) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#251914 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")*

Hi,

Knowing that the value which is trying to be set is Code:

','

You can add the column in the database with the type "varchar(50)".
But that is absolutely sure that it is the best way to fix the problem, just trying to avoid it.

HikaShop is using the element "products" in the order object ; but that field is an array of products object so it will be automatically skip during he save.
The fact that this variable is replaced by a " ',' " is not part of the HikaShop code.
Please be sure that you're using the latest HikaShop version and you do not have specific overrides or unusual system plugins.
You can also perform some tests using the default Joomla template.

REgards,

---

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

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 1 month ago [\#252144](#252144) by [Brolko](/forum/user/44129-brolko "View Brolko's Profile")  Replied by *[Brolko](/forum/user/44129-brolko "View Brolko's Profile")* on topic *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#252144 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")*

Thanks for your response,

So I am unable to get this working by adding the column products. Which is strange as if I run the following SQL query against the database then it inserts fine.

Code:

INSERT IGNORE INTO &#96;josof_hikashop_order&#96; ( &#96;order_user_id&#96; , &#96;order_status&#96; , &#96;order_shipping_address_id&#96; , &#96;order_billing_address_id&#96; , &#96;order_discount_code&#96; , &#96;order_currency_id&#96; , &#96;order_currency_info&#96; , &#96;order_type&#96; , &#96;order_full_price&#96; , &#96;order_shipping_price&#96; , &#96;order_shipping_tax&#96; , &#96;order_discount_tax&#96; , &#96;order_discount_price&#96; , &#96;order_payment_id&#96; , &#96;products&#96; , &#96;order_created&#96; , &#96;order_ip&#96; , &#96;order_modified&#96; ) VALUES ( '24', 'created', '215', '215', 'code30', '4', 'O:8:\"stdClass\":4:{s:13:\"currency_code\";s:3:\"GBP\";s:13:\"currency_rate\";s:7:\"1.00000\";s:20:\"currency_percent_fee\";s:4:\"0.00\";s:17:\"currency_modified\";s:10:\"1473026825\";}', 'sale', '0', '0', '0', '0', '2.6', '0', ',', '1475842103', '188.65.100.234', '1475842103' )

I will try test this scenario again later with the default template and see if it is something that the Titania template is doing.

Thanks again for your help on this.

Lucas

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 1 month ago [\#252702](#252702) by [Brolko](/forum/user/44129-brolko "View Brolko's Profile")  Replied by *[Brolko](/forum/user/44129-brolko "View Brolko's Profile")* on topic *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#252702 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")*

So I have done a little more digging on this issue and was able to recreate the same issue with the default template. The issue only occurs when signing in during the checkout process. If you was to complete the order already signed in then this error does not occur.

Any help on this would be appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4Njc5NS1teXNxbC1lcnJvci1vbi1zdGVwLTMtb2YtY2hlY2tvdXQtcHJvY2Vzcz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 1 month ago [\#252753](#252753) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#252753 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")*

Hi,

We're not able to reproduce the problem on our end.
So you said that for some orders it worked fine, but for some other orders it didn't.
Do you see a difference between the two types of orders ?
For example, it only happens for orders with products with variants, or only for orders with a shipping method, or something like that ?
It would really help to narrow down the list of possibilities.
Could it be that you have some mass actions configured ? What if you deactivate them ? Do you still have the problem ?
What if you deactivate all the system and hikashop plugins ? Do you still have the problem ?

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 1 month ago [\#252807](#252807) by [Brolko](/forum/user/44129-brolko "View Brolko's Profile")  Replied by *[Brolko](/forum/user/44129-brolko "View Brolko's Profile")* on topic *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#252807 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")*

Hi,

So as I mentioned in my previous post this issue only occurs when signing in during the checkout process. This is the little login form that displays below the checkout table. If a user was to already be signed in then this error doesn't happen.

It also makes no difference what product is purchased and in what category. Have tried disabling all hikashop plugins and this still happens.

Is there a way to remove the login functionality from that page and have it redirect to the login page before you can checkout?

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4Njc5NS1teXNxbC1lcnJvci1vbi1zdGVwLTMtb2YtY2hlY2tvdXQtcHJvY2Vzcz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 1 month ago [\#252896](#252896) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[MySQL error on step 3 of checkout process](/forum/27-checkout/886795-mysql-error-on-step-3-of-checkout-process#252896 "Hi,  I have been receiving an error for a while now with regards to the checkout process. This only seems to occur around 25% of the time and it happens when clicking the finish button on step 3 of the checkout process. I receive a 404 an this is the error that is displayed in the developer console.  If you hit the back button and hit finish again then this error go's away. Obviously I cannot tell customers to do this. Has anyone come accross this issue before or know how I might go about resolving it?  Thanks in advance Lucas")*

Hi,

1. I don't see why the login during the checkout would generate that error. Could you provide a link to the shop and a test user account so that we could look at the problem ?

2. What you can do is configure a menu item of the type "HikaShop checkout" and select it in the "force menu on checkout" setting.
If you set that menu item's access level to registered, when someone try to access the checkout, it will redirect them to the login page of Joomla.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4Njc5NS1teXNxbC1lcnJvci1vbi1zdGVwLTMtb2YtY2hlY2tvdXQtcHJvY2Vzcz90bXBsPW1hcmtkb3du) 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)
