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

#   \[SOLVED\] Checkout SQL error

##

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 4 months ago -  10 years 3 months ago [\#246260](#246260) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  *[\[SOLVED\] Checkout SQL error](/forum/27-checkout/885725-solved-checkout-sql-error#246260 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 5.5.36 -- Browser(s) name and version -- : FF, Chrome, Edge - all updated to most recent versions -- Error-message(debug-mod must be tuned on) -- : SQL error display  When I log in as a client user, purchase the client product, update the billing address and click 'Finish', I get this display on the 'step-2' of the checkout process:  The only thing I see wrong with this display is the '#&#95;&#95;hikashop&#95;order', whereas the table field has a prefix code that is not displayed instead of the '#'. I'm not sure if this is shown strictly for security purpose to keep the 'prefix' hidden. Other than that, I'm not sure why it didn't execute the SQL properly.  Any ideas?")* was created by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
-- PHP version -- : 5.5.36
-- Browser(s) name and version -- : FF, Chrome, Edge - all updated to most recent versions
-- Error-message(debug-mod must be tuned on) -- : SQL error display

When I log in as a client user, purchase the client product, update the billing address and click 'Finish', I get this display on the 'step-2' of the checkout process:
Code:

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_currency_id&#96;,&#96;order_currency_info&#96;,&#96;order_type&#96;,&#96;order_full_price&#96;,&#96;order_tax_info&#96;,&#96;order_shipping_price&#96;,&#96;order_shipping_tax&#96;,&#96;order_payment_price&#96;,&#96;order_discount_tax&#96;,&#96;order_discount_price&#96;,&#96;order_payment_id&#96;,&#96;order_payment_method&#96;,&#96;products&#96;,&#96;order_created&#96;,&#96;order_ip&#96;,&#96;order_modified&#96;,&#96;order_serial_params&#96; ) VALUES ( '11','created','14','14','2','O:8:\"stdClass\":4:{s:13:\"currency_code\";s:3:\"USD\";s:13:\"currency_rate\";s:7:\"1.11570\";s:20:\"currency_percent_fee\";s:4:\"0.00\";s:17:\"currency_modified\";s:10:\"1469302235\";}','sale','0.99','a:1:{s:0:\"\";O:8:\"stdClass\":3:{s:11:\"tax_namekey\";s:0:\"\";s:8:\"tax_rate\";s:7:\"0.00000\";s:10:\"tax_amount\";i:0;}}','0','0','0','0','0','1','authorize','','1469303415','69.246.184.174','1469303415','{\"order\":[],\"product\":[],\"order_product\":[],\"serial\":[]}' )

The only thing I see wrong with this display is the '#__hikashop_order', whereas the table field has a prefix code that is not displayed instead of the '#'. I'm not sure if this is shown strictly for security purpose to keep the 'prefix' hidden. Other than that, I'm not sure why it didn't execute the SQL properly.

Any ideas?

Last edit: 10 years 3 months ago by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTcyNS1zb2x2ZWQtY2hlY2tvdXQtc3FsLWVycm9yP3RtcGw9bWFya2Rvd24=) 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 4 months ago [\#246285](#246285) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout SQL error](/forum/27-checkout/885725-solved-checkout-sql-error#246285 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 5.5.36 -- Browser(s) name and version -- : FF, Chrome, Edge - all updated to most recent versions -- Error-message(debug-mod must be tuned on) -- : SQL error display  When I log in as a client user, purchase the client product, update the billing address and click 'Finish', I get this display on the 'step-2' of the checkout process:  The only thing I see wrong with this display is the '#&#95;&#95;hikashop&#95;order', whereas the table field has a prefix code that is not displayed instead of the '#'. I'm not sure if this is shown strictly for security purpose to keep the 'prefix' hidden. Other than that, I'm not sure why it didn't execute the SQL properly.  Any ideas?")*

Hi,

That's not an error. It's just a normal MySQL query.
How does it display on the page ?
In an error message ? Could you do a screenshot ?
What if you activate the debug mode and error reporting settings of the Joomla configuration ? Do you get an error message at that point ?

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

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 4 months ago -  10 years 4 months ago [\#246343](#246343) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Checkout SQL error](/forum/27-checkout/885725-solved-checkout-sql-error#246343 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 5.5.36 -- Browser(s) name and version -- : FF, Chrome, Edge - all updated to most recent versions -- Error-message(debug-mod must be tuned on) -- : SQL error display  When I log in as a client user, purchase the client product, update the billing address and click 'Finish', I get this display on the 'step-2' of the checkout process:  The only thing I see wrong with this display is the '#&#95;&#95;hikashop&#95;order', whereas the table field has a prefix code that is not displayed instead of the '#'. I'm not sure if this is shown strictly for security purpose to keep the 'prefix' hidden. Other than that, I'm not sure why it didn't execute the SQL properly.  Any ideas?")*

Nicolas,

Activated debug with maximum setting. Did a checkout on both Firefox and Chrome. On Chrome it was a straight product (program) purchase with no coupon linkage. On Firefox, it was a product linked to the coupon in HikaSerial. Checkout went normally, redirection to Authorize.net payment gateway went fine, after payment, I got a message:
Code:

"Thank you for your purchase. You can go back to the shop by clicking on this link" on the "https://secure.authorize.net/gateway/transact.dll" page.

Just for more info, I have no Return URL in the Authorize.net payment plugin as well as no return link on the Authorize.net settings. Could this cause an issue?

I clicked the link to return to the website and got the thank you for your order message. I received order created emails for both orders, got payment confirmations emails from authorize.net on both orders, but only got an order confirmation on the order for the non-coupon product (program). I never got an email confirmation on the order which was linked to the HikaSerial coupon. If I look at the order in HikaShop / Orders, it does show the HikaSerial information:
Code:

Pack Name Serial Data Assign date Attached to product Divorce Toolbox - Divorcing with Children uVhlYQuN 2016-07-25 15:09 Divorcing with Children Coupon

Naturally, if I check HikaSerial, it does have the serial information.

So whatever was causing the SQL message display and stopping the order process seems to have gone away. Now I just need to know why a confirmation email was not sent out for the order with the serial number. FYI, I did check spam and trash. Nada!

Any ideas?

Last edit: 10 years 4 months ago by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTcyNS1zb2x2ZWQtY2hlY2tvdXQtc3FsLWVycm9yP3RtcGw9bWFya2Rvd24=) 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 4 months ago [\#246347](#246347) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout SQL error](/forum/27-checkout/885725-solved-checkout-sql-error#246347 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 5.5.36 -- Browser(s) name and version -- : FF, Chrome, Edge - all updated to most recent versions -- Error-message(debug-mod must be tuned on) -- : SQL error display  When I log in as a client user, purchase the client product, update the billing address and click 'Finish', I get this display on the 'step-2' of the checkout process:  The only thing I see wrong with this display is the '#&#95;&#95;hikashop&#95;order', whereas the table field has a prefix code that is not displayed instead of the '#'. I'm not sure if this is shown strictly for security purpose to keep the 'prefix' hidden. Other than that, I'm not sure why it didn't execute the SQL properly.  Any ideas?")*

Hi,

I don't see why HikaSerial would change anything regarding that email.
What else is different in the order ? The payment method ? the email address of the customer ? Something else ?

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

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 3 months ago -  10 years 3 months ago [\#247560](#247560) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Checkout SQL error](/forum/27-checkout/885725-solved-checkout-sql-error#247560 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 5.5.36 -- Browser(s) name and version -- : FF, Chrome, Edge - all updated to most recent versions -- Error-message(debug-mod must be tuned on) -- : SQL error display  When I log in as a client user, purchase the client product, update the billing address and click 'Finish', I get this display on the 'step-2' of the checkout process:  The only thing I see wrong with this display is the '#&#95;&#95;hikashop&#95;order', whereas the table field has a prefix code that is not displayed instead of the '#'. I'm not sure if this is shown strictly for security purpose to keep the 'prefix' hidden. Other than that, I'm not sure why it didn't execute the SQL properly.  Any ideas?")*

Nicolas,

Did some test and here is what I 'think' is happening.

If I order a product, go to the checkout without being logged in, which displays the login section on the left, I enter the username and password to login on the checkout page, click the next and it displays the user address info on the left on the 'step' three of the checkout, click next, I get the SQL checkout error, even though 'error reporting' in the Joomla configuration is disabled (None).

If I go back to the checkout 1st page using the browser back buttons (actually right-clicking the back button and selecting the first Checkout Page option, it loads the check out page, I am already logged in, click next, it displays the user address info on the left, click next, it goes to Authorize.net, I pay, return and it goes to the 'Thank you' page, which is what it is suppose to do.

So it appears that if you go to the checkout without being logged in, it is causing this SQL error on the final checkout page. That seems weird.

Now I can 'force' them to login first before proceeding with checkout but the client prefers that they get to the checkout page first whether they are logged in or not. There is NO guest checkout.

Any ideas on why this is happening?

Last edit: 10 years 3 months ago by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTcyNS1zb2x2ZWQtY2hlY2tvdXQtc3FsLWVycm9yP3RtcGw9bWFya2Rvd24=) 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 3 months ago [\#247567](#247567) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout SQL error](/forum/27-checkout/885725-solved-checkout-sql-error#247567 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 5.5.36 -- Browser(s) name and version -- : FF, Chrome, Edge - all updated to most recent versions -- Error-message(debug-mod must be tuned on) -- : SQL error display  When I log in as a client user, purchase the client product, update the billing address and click 'Finish', I get this display on the 'step-2' of the checkout process:  The only thing I see wrong with this display is the '#&#95;&#95;hikashop&#95;order', whereas the table field has a prefix code that is not displayed instead of the '#'. I'm not sure if this is shown strictly for security purpose to keep the 'prefix' hidden. Other than that, I'm not sure why it didn't execute the SQL properly.  Any ideas?")*

Hi,

I don't think that the issue is linked to being logged in or not when you reach the checkout. Because in both cases, you are logged in when you finish the checkout. So I suppose that even forcing the user to be logged in before the checkout might result in the same problem the first time the customer reaches the checkout.
I think that the difference is that in the second case, you already did a half order creation which set some stuff in the user session, which leads to the second case taking a different path in the code when processing the "finish".

So le'ts go back to my first thoughts on the issue.
How does it display on the page ?
In an error message ? Could you do a screenshot of the whole page when you get the error ?

Also, could you provide a link to the product page you're using for your tests, a test user account (so that we can reproduce the problem), a backend access (so that we can check your settings), and maybe a FTP access if we need to do some debugging ?

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

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 3 months ago [\#247586](#247586) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Checkout SQL error](/forum/27-checkout/885725-solved-checkout-sql-error#247586 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 5.5.36 -- Browser(s) name and version -- : FF, Chrome, Edge - all updated to most recent versions -- Error-message(debug-mod must be tuned on) -- : SQL error display  When I log in as a client user, purchase the client product, update the billing address and click 'Finish', I get this display on the 'step-2' of the checkout process:  The only thing I see wrong with this display is the '#&#95;&#95;hikashop&#95;order', whereas the table field has a prefix code that is not displayed instead of the '#'. I'm not sure if this is shown strictly for security purpose to keep the 'prefix' hidden. Other than that, I'm not sure why it didn't execute the SQL properly.  Any ideas?")*

Nicolas, GREMLINS!!!! ![:(](/media/kunena/emoticons/22.png ":(")

Now I "can't" reproduce the problem. Tried several different ways and the cart is working. :silly: :lol: :blush: :whistle:

I am not an idiot as it did give me that SQL message on three different attempts. Technology is great....when it works. ![:cheer:](/media/kunena/emoticons/2.png ":cheer:") ![:cheer:](/media/kunena/emoticons/2.png ":cheer:") ![;)](/media/kunena/emoticons/24.png ";)")

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

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