SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-81' for key 'UNQ_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID', query was: INSERT INTO `catalog_product_super_attribute` (`product_id`, `attribute_id`) VALUES (?, ?)
Hi,
I'm getting the above error when trying to add a configurable product to my 1.9.2 CE installation. I have checked the database and this isn't actually a duplicate entry. I've tried resetting all the catalog product tables, including auto increments but the error persists.
I have also tried clearing all caches, reindexing and disabling all third party modules (although none of these should be affecting the product saving).
The only mention of this error I can find online is due to people writing custom product save code, but this is using the core functionality.
Does anybody know how I can fix this please?
Many thanks
Related
Every time I try to save the filled records the server responses in 500 in my laravel project. The following is screencast for the error. It is always just happened only in my local development but not at other dev's local. I have tried the following but it still happens.
refresh and seed DB again
clear cache
I`m new to Larvel Aimeos. I have used the following command to setup Aimeos.
composer create-project aimeos/aimeos myshop
But I`m stuck on the following issue while installing the same.
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-pr
oduct-custom-8' for key 'unq_msattr_sid_dom_cod_tid'
Any ideas on how to fix this?
There was a problem with the duplicate custom price attribute when installing the demo data. This has been fixed in a new Aimeos core release yesterday, so please try again
I think you are using this project https://github.com/aimeos/aimeos-laravel
So if you wanna to install the same project again you should create a new database to connect within your config/database.php file.
Or don't install the dummy data php artisan aimeos:setup --option=setup/default/demo:1 that the project required because it's already created.
I'm getting this error in my Magento install more and more often.
**Payment transaction failed.**
**Reason**
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '38754-0-1' for key 'PRIMARY'
**Checkout Type**
onepage
Im sorry but I haven't got more info to share. Any idea how to fix this?
I am trying to upgrade my website from Joomla 2.5.17 to Joomla 3.2.1.
The website has very few 3rd party extensions.
First I restored my website on my local computer.
Then I uninstall all the third party extensions and templates.
Then tried to upgrade using one-click Joomla Upgrade manager.
After the upgrade was completed, a blank page was displayed.
Since I did not see any error, I refreshed the page and the below error message was displayed:
Error:
1091 Can't DROP 'usertype'; check that column/key exists SQL=ALTER
TABLE xxx_users DROP KEY usertype;
I checked the 'xxx_users' table to see if 'usertype' column existed or not. There was no column named usertype' in the 'xxx_users' table.
When I try to access any menu from the Joomla Administrator section, the following error message is displayed:
Error:
Notice: Undefined property: InstallerController::$input in
E:\xxx\xxx\public_html\administrator\components\com_installer\controller.php
on line 39 Fatal error: Call to a member function get() on a
non-object in
E:\xxx\xxx\public_html\administrator\components\com_installer\controller.php
on line 39
What am I doing wrong?
Any help will be appreciated.
migrated from 2.5.28 to 3.3.6 and had the same problem
worked with your solution. thank you very much!
Steps done:
1.verified the 2.5.28 version site works correctly
2.deleted the folder "updates" in ./administrator/components/com_admin/sql/
(source: http://forum.joomla.org/viewtopic.php?f=710&t=825456&start=30#p3108160)
3.upgraded to 3.3.6 with the tool on the administrator page -> got a blank page after it was done :-/
4.created the following database table (the installer couldn't create it somehow):
CREATE TABLE IF NOT EXISTS #__content_types (
type_id int(10) unsigned NOT NULL AUTO_INCREMENT,
type_title varchar(255) NOT NULL DEFAULT '',
type_alias varchar(255) NOT NULL DEFAULT '',
table varchar(255) NOT NULL DEFAULT '',
rules text NOT NULL,
field_mappings text NOT NULL,
router varchar(255) NOT NULL DEFAULT '',
content_history_options varchar(5120) COMMENT 'JSON string for com_contenthistory options',
PRIMARY KEY (type_id),
KEY idx_alias (type_alias)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10000;
-- info: replace the #_ with your own database prefix
(source: http://forum.joomla.org/viewtopic.php?f=710&t=825407#p3103959)
5.accessed: MyWeBpAgE/administrator/index.php?option=com_installer&task=database.fix
to fix all remaining database problems
(source: see above ;-))
6.accessed: MyWeBpAgE/administrator/index.php?option=com_installer&view=discover&task=discover.refresh
and updated/installed all extensions
7.I was happy.
Edit:
In the end I found out the module JoomGallery produced these errors at my page.
When I uninstalled it before the Joomla Migration (step 3 from above) it got me no blank page and all database entries were updated correctly.
So how did I migrate from JoomGallery 2.5 to 3 without loosing all categories, etc.?:
1.I didn't uninstall JoomGallery 2.5
2.I executed all explained steps from above
3.I installed JoomGallery 3 over the existing installation
4.voilĂ , all database entries for the categories, etc. were correctly adopted to the new version :-)
You could always try the link...
your-site-url.com/administrator/index.php?option=com_installer&task=database.fix
...as it sounds like an update has failed, leaving the site in limbo. This means perhaps you have a partially updated file set and database. If so, using the above link you can fix the database. You may also need to fix the files, but this is easier, as you can just upload the files straight from the latest installer, excluding the 'installation' folder, overwriting all existing files. In some situations, worse-case, I've had to 'discover' the installed but not registered extensions via "Extensions" -> "Extension Manager" -> "Discover" ( your-site-url.com/administrator/index.php?option=com_installer&view=discover ).
Some background can be found on the following links...
http://joomlacode.org/gf/project/joomla/tracker/&action=&br_trackers_limit=5/?action=TrackerItemEdit&tracker_item_id=33177&start=8375
http://forum.joomla.org/viewtopic.php?f=710&t=825407
http://www.gavick.com/forums/therealdesign/error-while-updating-to-3-2-2-33956.html
Thnx allot for this solution.
Things i have done.
delete cdcaptcha plugin & anywhere module (gave me installation problems)
deleted the folder "updates" in ./administrator/components/com_admin/sql/
upgraded to 3.3.6 with the tool on the administrator page. (Gave me 100.. table errors
accessed: /administrator/index.php?option=com_installer&task=database.fix
to fix all remaining database problems
accessed: /administrator/index.php?option=com_installer&view=discover&task=discover.refresh
and updated/installed all extensions
Repeated step 4. to make sure everything is ok
Everything works fine now. Thnx again!
I'm trying to migrate my joomla website from 1.5.26 to 2.5. While migrating the joomla website through jupgrade extension, it is showing me "Migrating undefined". So, i've on the migration error in jupgrade extension then it shows me the following error which are related to the j25_users table.
Please have alook at the following error:-
( ! ) Fatal error: Uncaught exception 'Exception' with message 'Unknown column 'subscribe' in 'field list' SQL=INSERT INTO `j25_users` (`id`,`name`,`username`,`email`,`password`,`usertype`,`block`,`sendEmail`,`registerDate`,`lastvisitDate`,`activation`,`params`,`subscribe`) VALUES ('62','ChhathPoojaAdmin','admin','info#vivid-techno.com','36b6db909a7471b4e6fdf31b4eec641e:UELuOKlpIjy0jqPf36I8Kzj8uNElGBf9','Super Administrator','0','1','2010-06-27 16:18:02','2013-01-21 12:36:40','','{\"admin_language\":\"en-GB\",\"language\":\"en-GB\",\"editor\":\"xstandard\",\"helpsite\":\"\",\"timezone\":\"UTC\"}','1')' in C:\wamp\www\jdchhath\administrator\components\com_jupgrade\includes\jupgrade.class.php on line 347
Any Guess, how to solve it?
Upgrading your old joomla website to latest joomla version can be hectic as it could make you to feel so angry. The answer of my solution was that the subscribe column was not in the latest joomla version that makes it problem to upgrade my website to latest version. So i inserted myself the column table "subscribe" in my #__users table and please note that don't delete the old database tables which has been created by the jupgrde even if it is unsuccessful.That's it and you are done. If you are encounting any other problems related to database then first of all make sure that columns or tables are exist or not in your database. If jupgrade extensions creates any new database other than these tables jupgrade_categories,jupgrade_menus,jupgrade_modules,jupgrade_steps than don't delete it from my opinion.Just add the new columns or table in the newly created tables by jupgrade