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

#   SQL Syntax Error in "State" Field After Updating

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 10 months ago -  10 years 10 months ago [\#224899](#224899) by [inform](/forum/user/31595-inform "View inform's Profile")  *[SQL Syntax Error in "State" Field After Updating](/forum/25-install-update/881235-sql-syntax-error-in-state-field-after-updating#224899 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.4.43 -- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit) -- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.  On the checkout page only under the &quot;State&quot; field I'm getting the following error:  1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1")* was created by *[inform](/forum/user/31595-inform "View inform's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.7
-- PHP version -- : 5.4.43
-- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit)
-- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.

On the checkout page only under the "State" field I'm getting the following error:

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml_menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml_menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1

Last edit: 10 years 10 months ago by [inform](/forum/user/31595-inform "View inform's Profile").

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

Less More

- Posts: 86292
- Thank you received: 14271
-
-

10 years 10 months ago [\#224903](#224903) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SQL Syntax Error in "State" Field After Updating](/forum/25-install-update/881235-sql-syntax-error-in-state-field-after-updating#224903 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.4.43 -- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit) -- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.  On the checkout page only under the &quot;State&quot; field I'm getting the following error:  1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1")*

Hi,

I don't see any products on your website.
Could you provide a procedure in order to reproduce the issue on your website ?

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 10 months ago [\#225012](#225012) by [inform](/forum/user/31595-inform "View inform's Profile")  Replied by *[inform](/forum/user/31595-inform "View inform's Profile")* on topic *[SQL Syntax Error in "State" Field After Updating](/forum/25-install-update/881235-sql-syntax-error-in-state-field-after-updating#225012 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.4.43 -- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit) -- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.  On the checkout page only under the &quot;State&quot; field I'm getting the following error:  1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1")*

Head to this URL: [ www.intuicom.com/gps-gnss-products/intuicom-remote-support](http://www.intuicom.com/gps-gnss-products/intuicom-remote-support)

You'll find a product module on this page, add it to your cart and the next page should show the error.

Thanks!

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

Less More

- Posts: 86292
- Thank you received: 14271
-
-

10 years 10 months ago [\#225033](#225033) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SQL Syntax Error in "State" Field After Updating](/forum/25-install-update/881235-sql-syntax-error-in-state-field-after-updating#225033 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.4.43 -- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit) -- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.  On the checkout page only under the &quot;State&quot; field I'm getting the following error:  1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1")*

Hi,

Yes, I'm able to get the error now, thanks !
Now, could try activate the "debug mode" and "error reporting" settings of the Joomla configuration and then try again ?
The error message should hopefully contain more information about the issue which will help us understand what's going on.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 9 months ago [\#225555](#225555) by [inform](/forum/user/31595-inform "View inform's Profile")  Replied by *[inform](/forum/user/31595-inform "View inform's Profile")* on topic *[SQL Syntax Error in "State" Field After Updating](/forum/25-install-update/881235-sql-syntax-error-in-state-field-after-updating#225555 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.4.43 -- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit) -- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.  On the checkout page only under the &quot;State&quot; field I'm getting the following error:  1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1")*

Okay Debug Mode and Error Reporting are all turned on. Could you try and troubleshoot this quickly as this negatively affects the visitor's experience?

Thanks so much, I really appreciate it!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MTIzNS1zcWwtc3ludGF4LWVycm9yLWluLXN0YXRlLWZpZWxkLWFmdGVyLXVwZGF0aW5nP3RtcGw9bWFya2Rvd24=) 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: 4078
-
- [](http://obsi.dev)
-

10 years 9 months ago [\#225557](#225557) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[SQL Syntax Error in "State" Field After Updating](/forum/25-install-update/881235-sql-syntax-error-in-state-field-after-updating#225557 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.4.43 -- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit) -- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.  On the checkout page only under the &quot;State&quot; field I'm getting the following error:  1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1")*

Hi,

You can deactivate the debug mode ; thanks.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MTIzNS1zcWwtc3ludGF4LWVycm9yLWluLXN0YXRlLWZpZWxkLWFmdGVyLXVwZGF0aW5nP3RtcGw9bWFya2Rvd24=) 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: 4078
-
- [](http://obsi.dev)
-

10 years 9 months ago [\#225558](#225558) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[SQL Syntax Error in "State" Field After Updating](/forum/25-install-update/881235-sql-syntax-error-in-state-field-after-updating#225558 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.4.43 -- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit) -- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.  On the checkout page only under the &quot;State&quot; field I'm getting the following error:  1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1")*

So, the debug information show us that the problem is not coming from HikaShop but from the system plugin "jvfixitemid".

Here the debug data (we removed some sensible content) Code:

1 JApplicationCms-&gt;execute() - index.php:45 2 JApplicationSite-&gt;doExecute() - libraries/cms/application/cms.php:252 3 JApplicationSite-&gt;route() - libraries/cms/application/site.php:215 4 JApplicationCms-&gt;route() - libraries/cms/application/site.php:763 5 JApplicationBase-&gt;triggerEvent() - libraries/cms/application/cms.php:1098 6 JEventDispatcher-&gt;trigger() - libraries/joomla/application/base.php:106 7 JEvent-&gt;update() - libraries/joomla/event/dispatcher.php:160 8 call_user_func_array() - libraries/joomla/event/event.php:69 9 plgSystemJvfixitemid-&gt;onAfterRoute() 10 JDatabaseDriver-&gt;loadResult() - plugins/system/jvfixitemid/jvfixitemid.php:63 11 JDatabaseDriverMysqli-&gt;execute() - libraries/joomla/database/driver.php:1357

That debug indicates that the SQL error is generated in the plugin "jvfixitemid"
The 10th line is where the query is made and called.

I think that, because the state is populate dynamically by an AJAX call ; there is no itemId (it is not a SEF url) and that system plugin can't handle it properly.
Please see that directly with the support of jvfixitemid.

Regards,

---

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

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 9 months ago [\#225636](#225636) by [inform](/forum/user/31595-inform "View inform's Profile")  Replied by *[inform](/forum/user/31595-inform "View inform's Profile")* on topic *[SQL Syntax Error in "State" Field After Updating](/forum/25-install-update/881235-sql-syntax-error-in-state-field-after-updating#225636 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.7 -- PHP version -- : 5.4.43 -- Browser(s) name and version -- : Chrome 47.0.2526.106 (64-bit) -- Error-message(debug-mod must be tuned on) -- : After updating Joomla and Hikashop Business to the latest versions, we're now getting an error.  On the checkout page only under the &quot;State&quot; field I'm getting the following error:  1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE ' at line 1 SQL=SELECT FROM jml&#95;menu WHERE = '1' AND = 'component' AND LIKE '%=%' AND LIKE '%=%' LIMIT 1")*

Thank you very much for your assistance with this problem. I've disabled the "jvfixitemid" plugin and it has solved the problem. Looks like this is a plugin that comes packed with the Extended Registration (ExtendedReg) Joomla extension.

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

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

[](#top)
