If anyone else has any ideas for me to try I would be very greatful.![]()
If anyone else has any ideas for me to try I would be very greatful.![]()
Reesey,
as was explained above the problem is the configure ID
its trying to use 300 and its already in use
try this
by using '' rather than an number it will auto incrementCode:INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('', 'Quick Updates', 'Here you can configure what you will be able to modify in Quick Updates.', '300', '1');
Hi, thanks for your reply.
300 isnt being used by anything else as I ran the docs suggestion above first
I tied your suggestion and it worked, any suggestion as for the rest of it as I still get the same error....
ERROR: Cannot insert configuration_key "" because it already exists
Thanking you in advance.
So, if you "have" the configuration group #300 (evidenced by the group appearing on the admin Configuration menu), then simply do the inserts for the "configuration" table.
Pardon the obvious question, but ... are you sure you're running this on the right database?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Hi Doc,
That is what I have been trying and I get the above error.
Yes I am running this on the right database as there is only one there.
Who wrote the SQL ?Originally Posted by Reesy
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
That is the problem, im not sure, I found it on zenportali because the downloads werent available here at the time (I notice theyre back up now)
As it is a general sql issue I thought id post to see if anyone could help.
What do you mean "got the same" ?Originally Posted by Reesy
If you ran it by phpMyAdmin without errors, then you should have the entries in the configuration table.
Try this: go into phpMyAdmin, open the configuration table, click on Browse, sort by configuration_key, find the keys listed in the SQL statements, and either remove them, or make sure they have configuration_group_id = 300.
Of course, that would mean you need to confirm that the configuration_group table has a valid entry for #300.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
As I recall it, portali is the one who contributed it. ....Originally Posted by Reesy
Moving this post to the contributions area.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Ok heres what I have tried in myphpadmin...
Made sure nothing is using ID-300...
MySQL returned an empty result set (i.e. zero rows). (Query took 0.0006 sec)Code:SELECT configuration_group_title FROM configuration_group where configuration_group_id = 300;
Trying to add it one line at a time....
Inserted rows: 1Code:INSERT INTO configuration_group (`configuration_group_id`, `configuration_group_title`, `configuration_group_description`, `sort_order`, `visible`) VALUES ('300', 'Quick Updates', 'Here you can configure what you will be able to modify in Quick Updates.', '300', '1');
Inserted row id: 300 (Query took 0.0502 sec)
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES
('', 'Display the model.', 'QUICKUPDATES_DISPLAY_MODEL', 'true', 'Enable/Disable the model displaying', 300, 1, '2003-06-04 05:04:11', '2003-06-04 04:18:06', NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
Inserted rows: 1
Inserted row id: 798 (Query took 0.0091 sec)
edited a very lonnnnnnnnnnng post to say doing it this way WORKED!!!!!!
(strange because when I tried it all together it didnt like it)
HURRAH!
Thank you for your patience Chris, greatly appreciated.![]()
![]()
![]()