Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Store with the same code already exists. 
 
Sridhar P
Jr. Member
 
Total Posts:  10
Joined:  2011-02-09
 

Hi
i got this error when i deployed magento from local system to development system.ve created two store for two different language. it works fine in local system but it when i deployed in development server i get this error. can anyone help me out..

Mage_Core_Exception Object
(
[_messages:protected] => Array
(
)

[message:protected] => Store with the same code already exists.
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /var/www/dnb/app/Mage.php
[line:protected] => 594
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/dnb/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php
[line] => 676
[function] => throwException
[class] => Mage
[type] => ::
[args] => Array
(
[0] => Store with the same code already exists.
)

)

[1] => Array
(
[file] => /var/www/dnb/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php
[line] => 424
[function] => _checkUnique
[class] => Mage_Core_Model_Resource_Db_Abstract
[type] => ->
[args] => Array
(
[0] => Mage_Core_Model_Store Object
(
[_cacheTag:protected] => 1
[_eventPrefix:protected] => store
[_eventObject:protected] => store
[_priceFilter:protected] =>
[_website:protected] =>
[_group:protected] =>
[_configCache:protected] =>
[_configCacheBaseNodes:protected] => Array
(
[0] => catalog/price/scope
[1] => web/secure/base_url
[2] => web/secure/use_in_adminhtml
[3] => web/secure/use_in_frontend
[4] => web/url/use_store
[5] => web/unsecure/base_url
[6] => web/seo/use_rewrites
[7] => web/unsecure/base_link_url
[8] => web/secure/base_link_url
[9] => general/locale/code
)

[_dirCache:protected] => Array
(
)

[_urlCache:protected] => Array
(
)

[_baseUrlCache:protected] => Array
(
)

[_session:protected] =>
[_isAdminSecure:protected] =>
[_isFrontSecure:protected] =>
[_frontendName:protected] =>
[_isReadOnly:Mage_Core_Model_Store:private] =>
[_resourceName:protected] => core/store
[_resource:protected] =>
[_resourceCollectionName:protected] => core/store_collection
[_dataSaveAllowed:protected] => 1
[_isObjectNew:protected] => 1
[_data:protected] => Array
(
=> dutch
[website_id] => 1
[group_id] => 1
[name] => nl
[sort_order] => 1
[is_active] => 1
)

[_hasDataChanges:protected] => 1
[_origData:protected] =>
[_idFieldName:protected] =>
[_isDeleted:protected] =>
[_oldFieldsMap:protected] => Array
(
)

[_syncFieldsMap:protected] => Array
(
)

)

)

)

[2] => Array
(
[file] => /var/www/dnb/app/code/core/Mage/Core/Model/Abstract.php
[line] => 318
[function] => save
[class] => Mage_Core_Model_Resource_Db_Abstract
[type] => ->
[args] => Array
(
[0] => Mage_Core_Model_Store Object
(
[_cacheTag:protected] => 1
[_eventPrefix:protected] => store
[_eventObject:protected] => store
[_priceFilter:protected] =>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lyonscg
Sr. Member
 
Avatar
Total Posts:  173
Joined:  2009-11-13
Chicago IL
 

How are you deploying from your local to the server? Are you using some sort of version control or just manually updating? and did you also update the database as well or is this strictly a code update?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top