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

Rewrite of core mysql4 causes segmentation
 
henriv
Jr. Member
 
Total Posts:  14
Joined:  2008-07-23
 

I’m trying to overwrite the Mage_Core_Model_Mysql4_Website_Collection class in Magento 1.2.1 but when I put the overwrite in and refresh the cache I see a segmentation dump.

Here is what I added to the config.xml of my module:

<models>
<core>
<rewrite>
<store_group>Sttl_Storeloc_Model_Store_Group</store_group>
<cookie>Sttl_Storeloc_Model_Cookie</cookie>
</rewrite>
</core>
<core_mysql4>
<rewrite>
<website_collection>Sttl_Storeloc_Model_Mysql4_Website_Collection</website_collection>
</rewrite>
</core_mysql4>
</models>

When I remote the core_mysql4 element and refresh the cache then there is no issue. What’s wrong with this that can cause this?

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