Welcome to the myhosting.com Forums.
-
More Magento fun
I almost had my Magento site up and running. I deleted an old "store view" and the app crashed. I'm assuming I just need to edit the database to remove the references, but I don't know where to do it. Does anyone know what I need to do here? Below is the error report. I'd hate to reinstall the whole thing again.
Thanks
Recoverable Error: Argument 1 passed to Mage_Core_Model_Store::setGroup() must be an instance of Mage_Core_Model_Store_Group, null given, called in /var/www/domains/x.copelandcommunications.com/docs/cart/app/code/core/Mage/Core/Model/App.php on line 351 and defined in /var/www/domains/x.copelandcommunications.com/docs/cart/app/code/core/Mage/Core/Model/Store.php on line 627
Trace:
#0 /var/www/domains/x.copelandcommunications.com/docs/cart/app/code/core/Mage/Core/Model/Store.php(627): mageCoreErrorHandler(4096, ‘Argument 1 pass...’, ‘/var/www/domain...’, 627, Array)
#1 /var/www/domains/x.copelandcommunications.com/docs/cart/app/code/core/Mage/Core/Model/App.php(351): Mage_Core_Model_Store->setGroup(NULL)
#2 /var/www/domains/x.copelandcommunications.com/docs/cart/app/code/core/Mage/Core/Model/App.php(211): Mage_Core_Model_App->_initStores()
#3 /var/www/domains/x.copelandcommunications.com/docs/cart/app/Mage.php(404): Mage_Core_Model_App->init(’’, ‘store’, Array)
#4 /var/www/domains/x.copelandcommunications.com/docs/cart/app/Mage.php(423): Mage::app(’’, ‘store’, Array)
#5 /var/www/domains/x.copelandcommunications.com/docs/cart/index.php(40): Mage::run()
#6 {main}
-
Re: More Magento fun
Hello Ceiboss,
In the past, we solved that problem by going into the database and going to this table: mg_core_store_group and set the default_store_id to 1 (where it was previously 0).
Would that work for you?
Thanks
-
Re: More Magento fun
I tried that and it didn't work. I changed the default_store_id to "2" instead of 1 where it was (this is the pointer to the correct store). I also tried changing the root_category_id from "0" to "2" as well. I've tried various combinations without any luck. Thanks for the suggestion, but do you have any more?
Thanks

Originally Posted by
admin
Hello Ceiboss,
In the past, we solved that problem by going into the database and going to this table: mg_core_store_group and set the default_store_id to 1 (where it was previously 0).
Would that work for you?
Thanks
-
Re: More Magento fun
Does this help?
Take a peak in your `cms_page_store` SQL table. You’ll more than likely see one or more entries there for stores that no longer exist. In my case, I had a page_id of 2 (Home Page) that had entries for store id 1, 2 and 3. Since I deleted stores with ID of 2 and 3, those cms_page_store relations were no longer valid.
I simply removed the two offending entries from this table and now CMS/Manage Pages works properly in the admin.
Not sure if there are any other references to these now missing stores anywhere else in the database, but I can only imagine they would be dealt with in a similar manner.
Seems like those relations should be toasted automagically when the store view is deleted via ‘Manage Stores’??
Hope this helps!
Timur Catakli
myhosting.com - Community Manager
---------------------------------------------------------
cm@myhosting.com
http://www.myhosting.com
---------------------------------------------------------
Your trusted web hosting company since 1997
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Version 4.1.7
Copyright ©2000 - 2013
All times are GMT -4. The time now is 03:53 PM.