Try the Demo

Magento Forum

   
Store with the same code already exists. 
 
sridhar5678
Jr. Member
 
Total Posts:  7
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?

 Signature 

Andrew J.
Sr. Applications Engineer
Lyons Consulting Group

Lyons Consulting Group is the premier digital agency specializing in strategy, ux/design, development, and ongoing support. With a proven track record to deliver creative, robust and most importantly, increasingly profitable ecommerce sites, our diverse group of experts are committed to customer satisfaction and project excellence.

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