If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Duplicate entry 'MODULE_SHIPPING_FREESHIPPER_STATUS

Duplicate entry 'MODULE_SHIPPING_FREESHIPPER_STATUS

Started by zookslogo on 14 May 2013, 6:14 PM · Views: 580

Results 1 to 5 of 5
14 May 2013, 6:14 PM
#1
zookslogo avatar

zookslogo

New Zenner

Join Date:
May 2013
Location:
NY
Posts:
2
Plugin Contributions:
0

Duplicate entry 'MODULE_SHIPPING_FREESHIPPER_STATUS

Hi everyone,
I'm building a site for a friend of mine and after setting up the payment and shipping module, upon checkout I get a blank page. I checked the ZenCart error logs and this is what I got:

PHP Fatal error: 1062: Duplicate entry 'MODULE_SHIPPING_FREESHIPPER_STATUS' for key 'unq_config_key_zen' :: insert into zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Free Shipping', 'MODULE_SHIPPING_FREESHIPPER_STATUS', 'True', 'Do you want to offer Free shipping?', '6', '0', 'zen_cfg_select_option(array('True', 'False'), ', now()) in /home/nfc/public_html/includes/classes/db/mysql/query_factory.php on line 101

I'm really just a designer, I have no clue what's going on in MySQL. If anybody could help me that'd be great but please be specific in your instructions.

Thanks,
Zooks

14 May 2013, 6:53 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Duplicate entry 'MODULE_SHIPPING_FREESHIPPER_STATUS

What was the date on that log entry?
That error would appear only when trying to re-add a module that's already installed. And would only fire when you're in the Admin screens. It wouldn't occur during checkout.

Is there another error appearing in the logs when you're trying to go through checkout? That would be the more relevant error to fix ...

.
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.

14 May 2013, 6:58 PM
#3
zookslogo avatar

zookslogo

New Zenner

Join Date:
May 2013
Location:
NY
Posts:
2
Plugin Contributions:
0

Re: Duplicate entry 'MODULE_SHIPPING_FREESHIPPER_STATUS

DrByte:

What was the date on that log entry?
That error would appear only when trying to re-add a module that's already installed. And would only fire when you're in the Admin screens. It wouldn't occur during checkout.

Is there another error appearing in the logs when you're trying to go through checkout? That would be the more relevant error to fix ...

You're right that was an error for the admin (sorry I'm new to this), here's the error code for the site itself:

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/nfc/public_html/includes/languages/english/modules/shipping/flat.php:33) in /home/nfc/public_html/includes/functions/functions_general.php on line 45

14 May 2013, 7:00 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Duplicate entry 'MODULE_SHIPPING_FREESHIPPER_STATUS

zookslogo:

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/nfc/public_html/includes/languages/english/modules/shipping/flat.php:33) in ...

Searching the FAQs section of the zen-cart.com website for your error message brings up this related article: http://www.zen-cart.com/content.php?129-warning-headers-already-sent ... which explains how to read the message and realize that the error is on line 33 of your flat.php language file. Probably a rogue blank line at the end of the file after you've made changes to it with your text editor.

.
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.

14 May 2013, 7:03 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Duplicate entry 'MODULE_SHIPPING_FREESHIPPER_STATUS

Something along the way has caused part of the FREE SHIPPING! freeshipper to be partially installed from the looks of things ...

So, you will want to go to phpMyAdmin for your domain and select the database that you are using for your site ...

Click on SQL ...

Then paste in there:

DELETE FROM [B]zen_[/B]configuration WHERE configuration_key LIKE '%MODULE_SHIPPING_FREESHIPPER%';

and click Go ... and this will remove all of the configuration keys for the FREE SHIPPING! freeshipper shipping module and you should be able to do an INSTALL on it from your Zen Cart Admin in the Modules ... Shipping ...

NOTE: the zen_ is used on this fix as you appear to be using a database prefix on your database tables, based on the error message that you have ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!