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

#   Database error after update

##

- **[babaei](/forum/user/34732-babaei "View babaei's Profile")**
- [![babaei's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34732_2016-05-13.jpg)](/forum/user/34732-babaei "View babaei's Profile") Topic Author
- [ Offline](/forum/user/34732-babaei)

Less More

- Posts: 69
- Thank you received: 1
-
-
-

8 years 6 months ago -  8 years 6 months ago [\#291643](#291643) by [babaei](/forum/user/34732-babaei "View babaei's Profile")  *[Database error after update](/forum/25-install-update/894511-database-error-after-update#291643 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.7  Hello After update to 3.4.0 when I click on add to cart, page redirect to joomla registration page (not hikashop registration page) and when I click on hikashop cart module it also redirect to joomla registration page. also when I want to edit my car (for example delete any product from cart page) it redirect to joomla default login page. Redirect Joomla registration to HikaShop plugin is enabled  I checked database: Error Unknown column 'access&#95;vote' in 'where clause'  Error hikashop&#95;config: Duplicate entry 'cart&#95;retaining&#95;period&#95;checked' for key 'PRIMARY'  Error  ALTER TABLE #&#95;&#95;hikashop&#95;config ADD PRIMARY KEY(config&#95;namekey)")* was created by *[babaei](/forum/user/34732-babaei "View babaei's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.7

Hello
After update to 3.4.0 when I click on add to cart, page redirect to joomla registration page (not hikashop registration page)
and when I click on hikashop cart module it also redirect to joomla registration page.
also when I want to edit my car (for example delete any product from cart page) it redirect to joomla default login page.
Redirect Joomla registration to HikaShop plugin is enabled

I checked database:
Error Unknown column 'access_vote' in 'where clause'

Error hikashop_config: Duplicate entry 'cart_retaining_period_checked' for key 'PRIMARY'

Error

ALTER TABLE #__hikashop_config ADD PRIMARY KEY(config_namekey)

Last edit: 8 years 6 months ago by [babaei](/forum/user/34732-babaei "View babaei's Profile").

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

8 years 6 months ago [\#291673](#291673) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Database error after update](/forum/25-install-update/894511-database-error-after-update#291673 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.7  Hello After update to 3.4.0 when I click on add to cart, page redirect to joomla registration page (not hikashop registration page) and when I click on hikashop cart module it also redirect to joomla registration page. also when I want to edit my car (for example delete any product from cart page) it redirect to joomla default login page. Redirect Joomla registration to HikaShop plugin is enabled  I checked database: Error Unknown column 'access&#95;vote' in 'where clause'  Error hikashop&#95;config: Duplicate entry 'cart&#95;retaining&#95;period&#95;checked' for key 'PRIMARY'  Error  ALTER TABLE #&#95;&#95;hikashop&#95;config ADD PRIMARY KEY(config&#95;namekey)")*

Hi,

Looking at the issue with the cart on your website, it seems to indicate an issue with the menu item with the id 448 which isn't set to public even though it tries using it to display the checkout.
And because of that, you get redirected to the login page. So check that menu item.

Regarding the database issue, it indicates that the primary key of the hikashop_config table has been removed in the past on your website.
This will create a problem as some settings in the configuration won't do anything anymore.
It would be best to delete the doublon entries in the hikashop config table via your phpmyadmin and then do a check database again to add back the primary key.

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

- **[babaei](/forum/user/34732-babaei "View babaei's Profile")**
- [![babaei's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34732_2016-05-13.jpg)](/forum/user/34732-babaei "View babaei's Profile") Topic Author
- [ Offline](/forum/user/34732-babaei)

Less More

- Posts: 69
- Thank you received: 1
-
-
-

8 years 6 months ago [\#291681](#291681) by [babaei](/forum/user/34732-babaei "View babaei's Profile")  Replied by *[babaei](/forum/user/34732-babaei "View babaei's Profile")* on topic *[Database error after update](/forum/25-install-update/894511-database-error-after-update#291681 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.7  Hello After update to 3.4.0 when I click on add to cart, page redirect to joomla registration page (not hikashop registration page) and when I click on hikashop cart module it also redirect to joomla registration page. also when I want to edit my car (for example delete any product from cart page) it redirect to joomla default login page. Redirect Joomla registration to HikaShop plugin is enabled  I checked database: Error Unknown column 'access&#95;vote' in 'where clause'  Error hikashop&#95;config: Duplicate entry 'cart&#95;retaining&#95;period&#95;checked' for key 'PRIMARY'  Error  ALTER TABLE #&#95;&#95;hikashop&#95;config ADD PRIMARY KEY(config&#95;namekey)")*

Hello
Thanks you nicolas
Problem in cart resolved.

i dont know how to fix hikashop_config. It seems thant a lot of record has been created in this table, Could you please check it?
I will send you user ans pass.
Thanks

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

8 years 6 months ago [\#291688](#291688) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Database error after update](/forum/25-install-update/894511-database-error-after-update#291688 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.7  Hello After update to 3.4.0 when I click on add to cart, page redirect to joomla registration page (not hikashop registration page) and when I click on hikashop cart module it also redirect to joomla registration page. also when I want to edit my car (for example delete any product from cart page) it redirect to joomla default login page. Redirect Joomla registration to HikaShop plugin is enabled  I checked database: Error Unknown column 'access&#95;vote' in 'where clause'  Error hikashop&#95;config: Duplicate entry 'cart&#95;retaining&#95;period&#95;checked' for key 'PRIMARY'  Error  ALTER TABLE #&#95;&#95;hikashop&#95;config ADD PRIMARY KEY(config&#95;namekey)")*

Hi,

If you're unsure, delete the table and install the HikaShop install package. It will add back the table with the primary key and it will add the default values.
You'll then just have to reconfigured the settings of the HikaShop configuration the way you had them before.

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

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

[](#top)
