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

#   SQL error on creating taxation rule

##

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

Less More

- Posts: 56
- Thank you received: 2
-
-

12 years 9 months ago [\#141656](#141656) by [sideways](/forum/user/15498-sideways "View sideways's Profile")  *[SQL error on creating taxation rule](/forum/3-bug-report/865417-sql-error-on-creating-taxation-rule#141656 "-- url of the page with the problem -- : dshop.se -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.1.0 -- PHP version -- : 5.4.6 -- Browser(s) name and version -- : Safari 6.0.5 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. :-/")* was created by *[sideways](/forum/user/15498-sideways "View sideways's Profile")*

-- url of the page with the problem -- : dshop.se
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.1.0
-- PHP version -- : 5.4.6
-- Browser(s) name and version -- : Safari 6.0.5
-- Error-message(debug-mod must be tuned on) -- : Error_message
Code:

SQL=INSERT IGNORE INTO &#96;dj6xp_hikashop_taxation&#96; ( &#96;taxation_id&#96;,&#96;category_namekey&#96;,&#96;tax_namekey&#96;,&#96;taxation_cumulative&#96;,&#96;taxation_post_code&#96;,&#96;zone_namekey&#96;,&#96;taxation_type&#96;,&#96;taxation_access&#96;,&#96;taxation_published&#96; ) VALUES ( '0','default_tax','sweden','0','','country_Sweden_203','','all','1' )

I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. ![:-/](/irritated.gif ":-/")

- [ ![h909529d.png](/forum/attachment/14973) ](/forum/attachment/14973 "h909529d.png") [ ](/forum/attachment/14973?download=1 "h909529d.png")

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 9 months ago [\#141669](#141669) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[SQL error on creating taxation rule](/forum/3-bug-report/865417-sql-error-on-creating-taxation-rule#141669 "-- url of the page with the problem -- : dshop.se -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.1.0 -- PHP version -- : 5.4.6 -- Browser(s) name and version -- : Safari 6.0.5 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. :-/")*

Hi there,

Could you login phpmySQL and execute this query on your database? This should return an error message and help to understand the issue.

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

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

Less More

- Posts: 56
- Thank you received: 2
-
-

12 years 9 months ago [\#141681](#141681) by [sideways](/forum/user/15498-sideways "View sideways's Profile")  Replied by *[sideways](/forum/user/15498-sideways "View sideways's Profile")* on topic *[SQL error on creating taxation rule](/forum/3-bug-report/865417-sql-error-on-creating-taxation-rule#141681 "-- url of the page with the problem -- : dshop.se -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.1.0 -- PHP version -- : 5.4.6 -- Browser(s) name and version -- : Safari 6.0.5 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. :-/")*

Done, results is in the attached screenshot. I noticed the field taxation_post_code is in the query but not in the database table.

[ ![h7a9ad9f.png](/forum/attachment/14976) ](/forum/attachment/14976 "h7a9ad9f.png")

- [ ![h7a9ad9f.png](/forum/attachment/14976) ](/forum/attachment/14976 "h7a9ad9f.png") [ ](/forum/attachment/14976?download=1 "h7a9ad9f.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjU0MTctc3FsLWVycm9yLW9uLWNyZWF0aW5nLXRheGF0aW9uLXJ1bGU/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: 86564
- Thank you received: 14311
-
-

12 years 9 months ago [\#141707](#141707) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SQL error on creating taxation rule](/forum/3-bug-report/865417-sql-error-on-creating-taxation-rule#141707 "-- url of the page with the problem -- : dshop.se -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.1.0 -- PHP version -- : 5.4.6 -- Browser(s) name and version -- : Safari 6.0.5 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. :-/")*

The SQL query starts after the = sign.

Please run the query: Code:

INSERT IGNORE INTO &#96;dj6xp_hikashop_taxation&#96; ( &#96;taxation_id&#96;,&#96;category_namekey&#96;,&#96;tax_namekey&#96;,&#96;taxation_cumulative&#96;,&#96;taxation_post_code&#96;,&#96;zone_namekey&#96;,&#96;taxation_type&#96;,&#96;taxation_access&#96;,&#96;taxation_published&#96; ) VALUES ( '0','default_tax','sweden','0','','country_Sweden_203','','all','1' )

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

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

Less More

- Posts: 56
- Thank you received: 2
-
-

12 years 9 months ago [\#141710](#141710) by [sideways](/forum/user/15498-sideways "View sideways's Profile")  Replied by *[sideways](/forum/user/15498-sideways "View sideways's Profile")* on topic *[SQL error on creating taxation rule](/forum/3-bug-report/865417-sql-error-on-creating-taxation-rule#141710 "-- url of the page with the problem -- : dshop.se -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.1.0 -- PHP version -- : 5.4.6 -- Browser(s) name and version -- : Safari 6.0.5 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. :-/")*

Sorry, my mistake. But my initial suspicion proved right. Result below:

[ ![h182c8e5.png](/forum/attachment/14980) ](/forum/attachment/14980 "h182c8e5.png")

- [ ![h182c8e5.png](/forum/attachment/14980) ](/forum/attachment/14980 "h182c8e5.png") [ ](/forum/attachment/14980?download=1 "h182c8e5.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjU0MTctc3FsLWVycm9yLW9uLWNyZWF0aW5nLXRheGF0aW9uLXJ1bGU/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: 86564
- Thank you received: 14311
-
-

12 years 9 months ago [\#141712](#141712) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SQL error on creating taxation rule](/forum/3-bug-report/865417-sql-error-on-creating-taxation-rule#141712 "-- url of the page with the problem -- : dshop.se -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.1.0 -- PHP version -- : 5.4.6 -- Browser(s) name and version -- : Safari 6.0.5 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. :-/")*

Yes, the issue is that you have a column missing because of a problem during the update. Add that missing column in the hikashop_taxation table and it will then work. You can do it via the phpmyadmin interface.

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

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

Less More

- Posts: 56
- Thank you received: 2
-
-

12 years 9 months ago [\#141717](#141717) by [sideways](/forum/user/15498-sideways "View sideways's Profile")  Replied by *[sideways](/forum/user/15498-sideways "View sideways's Profile")* on topic *[SQL error on creating taxation rule](/forum/3-bug-report/865417-sql-error-on-creating-taxation-rule#141717 "-- url of the page with the problem -- : dshop.se -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.1.0 -- PHP version -- : 5.4.6 -- Browser(s) name and version -- : Safari 6.0.5 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. :-/")*

What datatype is required? Or better still, will you help me formulate the ALTER query so I don't mess things up. ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjU0MTctc3FsLWVycm9yLW9uLWNyZWF0aW5nLXRheGF0aW9uLXJ1bGU/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: 86564
- Thank you received: 14311
-
-

12 years 9 months ago [\#141723](#141723) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SQL error on creating taxation rule](/forum/3-bug-report/865417-sql-error-on-creating-taxation-rule#141723 "-- url of the page with the problem -- : dshop.se -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.1.0 -- PHP version -- : 5.4.6 -- Browser(s) name and version -- : Safari 6.0.5 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I get this sql insert error when I try to create a new taxation rule. It is kind of urgent as now I have no taxation at all for my products. :-/")*

a VARCHAR 255. You can find the ALTER query in the file administrator/components/com_hikashop/install.hikashop.php as explained here:
[ www.hikashop.com/support/support/documen...lity-issues.html#SQL](http://www.hikashop.com/support/support/documentation/61-hikashop-compatibility-issues.html#SQL)

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

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