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

#   \[solved\]update to 2.2.3 gives sql error

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#137911](#137911) by [huuanito](/forum/user/30427-huuanito "View huuanito's Profile")  *[\[solved\]update to 2.2.3 gives sql error](/forum/25-install-update/864581-solved-update-to-2-2-3-gives-sql-error#137911 "-- url of the page with the problem -- :   mywebsite.com/administrator/index.php?op...staller&amp;view=install  -- HikaShop version -- : 1.5.5 -- Joomla version -- : 1.7.0 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : firefox 25.0.1 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  In process of updating Joomla to 2.5 tried Updating Hikashop from 1.5.5 to latest 2.2.3 with joomla errors turned on get this error:  Install is being done from install from directory on the site.")* was created by *[huuanito](/forum/user/30427-huuanito "View huuanito's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/administrator/index.php?op...staller&amp;view=install](http://mywebsite.com/administrator/index.php?option=com_installer&view=install)
-- HikaShop version -- : 1.5.5
-- Joomla version -- : 1.7.0
-- PHP version -- : 5.3.26
-- Browser(s) name and version -- : firefox 25.0.1
-- Error-message(debug-mod must be tuned on) -- : Error_message

In process of updating Joomla to 2.5 tried Updating Hikashop from 1.5.5 to latest 2.2.3 with joomla errors turned on get this error: Code:

JDatabaseMySQL::query: 1060 - Duplicate column name 'cart_type' SQL=ALTER TABLE &#96;jos_hikashop_cart&#96; ADD &#96;cart_type&#96; varchar(25) NOT NULL DEFAULT 'cart', ADD &#96;cart_name&#96; varchar(50) NOT NULL, ADD &#96;cart_share&#96; varchar(255) NOT NULL DEFAULT 'nobody', ADD &#96;cart_current&#96; INT NOT NULL DEFAULT '0'

Install is being done from install from directory on the site.

Last edit: 12 years 10 months ago by [huuanito](/forum/user/30427-huuanito "View huuanito's Profile"). Reason: mark solved

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 10 months ago [\#137912](#137912) by [huuanito](/forum/user/30427-huuanito "View huuanito's Profile")  Replied by *[huuanito](/forum/user/30427-huuanito "View huuanito's Profile")* on topic *[update to 2.2.3 gives sql error](/forum/25-install-update/864581-solved-update-to-2-2-3-gives-sql-error#137912 "-- url of the page with the problem -- :   mywebsite.com/administrator/index.php?op...staller&amp;view=install  -- HikaShop version -- : 1.5.5 -- Joomla version -- : 1.7.0 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : firefox 25.0.1 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  In process of updating Joomla to 2.5 tried Updating Hikashop from 1.5.5 to latest 2.2.3 with joomla errors turned on get this error:  Install is being done from install from directory on the site.")*

update: the line it balks at is
administrator/components/com_hikashop/install.hikashop.php:491

looking in the code I see this

486 $this-&gt;db-&gt;setQuery("ALTER TABLE &#96;#__hikashop_cart&#96; ADD &#96;cart_type&#96; varchar(2 5) NOT NULL DEFAULT 'cart', ".
487 "ADD &#96;cart_name&#96; varchar(50) NOT NULL, ".
488 "ADD &#96;cart_share&#96; varchar(255) NOT NULL DEFAULT 'nobody', ".
489 "ADD &#96;cart_current&#96; INT NOT NULL DEFAULT '0'");
490 $this-&gt;db-&gt;query();
491 $this-&gt;db-&gt;query();

It seems odd for that line to be there twice...that would probably cause the issue I'm having.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#137916](#137916) by [huuanito](/forum/user/30427-huuanito "View huuanito's Profile")  Replied by *[huuanito](/forum/user/30427-huuanito "View huuanito's Profile")* on topic *[update to 2.2.3 gives sql error](/forum/25-install-update/864581-solved-update-to-2-2-3-gives-sql-error#137916 "-- url of the page with the problem -- :   mywebsite.com/administrator/index.php?op...staller&amp;view=install  -- HikaShop version -- : 1.5.5 -- Joomla version -- : 1.7.0 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : firefox 25.0.1 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  In process of updating Joomla to 2.5 tried Updating Hikashop from 1.5.5 to latest 2.2.3 with joomla errors turned on get this error:  Install is being done from install from directory on the site.")*

I commented out line 491 and tried over but that gave a new error: Code:

JDatabaseMySQL::query: 1091 - Can't DROP 'payment_type'; check that column/key exists SQL=ALTER TABLE &#96;jos_hikashop_payment&#96; DROP INDEX payment_type

this time at line 615 Code:

614 $this-&gt;db-&gt;setQuery("ALTER TABLE &#96;#__hikashop_payment&#96; DROP INDEX payment_type"); 615 $this-&gt;db-&gt;query();

I then commented out lines 614 and 615 and tried over and voila! it installed.

Last edit: 12 years 10 months ago by [huuanito](/forum/user/30427-huuanito "View huuanito's Profile"). Reason: correct typo

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

12 years 10 months ago [\#137920](#137920) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[update to 2.2.3 gives sql error](/forum/25-install-update/864581-solved-update-to-2-2-3-gives-sql-error#137920 "-- url of the page with the problem -- :   mywebsite.com/administrator/index.php?op...staller&amp;view=install  -- HikaShop version -- : 1.5.5 -- Joomla version -- : 1.7.0 -- PHP version -- : 5.3.26 -- Browser(s) name and version -- : firefox 25.0.1 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  In process of updating Joomla to 2.5 tried Updating Hikashop from 1.5.5 to latest 2.2.3 with joomla errors turned on get this error:  Install is being done from install from directory on the site.")*

Hi,

Thanks for your feedback.
We will improve the tests during the updates in order to avoid these SQL problems.

Regards,

---

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

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

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

[](#top)
