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

Compilation issue
 
rebimol
Sr. Member
 
Avatar
Total Posts:  78
Joined:  2011-04-24
 

So I have upgraded from 1.5.1 to 1.6

Now I try to run compiler but I get this weird error

Fatal error: Class Mage_Sales_Model_Mysql4_Abstract contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Mage_Core_Model_Resource_Abstract::_construct)

Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brent W Peterson
Moderator
 
Avatar
Total Posts:  3217
Joined:  2009-02-26
Minneapolis MN
 

Sorry, I have to ask the obvious

Did you clear cache?
Did you re-index?

How did you upgrade?

 
Magento Community Magento Community
Magento Community
Magento Community
 
rebimol
Sr. Member
 
Avatar
Total Posts:  78
Joined:  2011-04-24
 

Cleared cache
Didn`t do re-index…

Hey, re-index helped! smile

I just copied over files from 1.6.0.0 archive , renamed etc/local.xml and re-installed.

 
Magento Community Magento Community
Magento Community
Magento Community
 
harryal
Jr. Member
 
Total Posts:  10
Joined:  2011-06-25
 

Is there any guide on what steps we should follow for the upgrade process?

Thank you in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bijouxdargent
Jr. Member
 
Total Posts:  4
Joined:  2008-09-21
 

Hello,
I had the same problem
I added ”abstract” before class (file app\code\core\Mage\Sales\Model\Mysql4\Abstract.php)
like that :
abstract class Mage_Sales_Model_Mysql4_Abstract extends Mage_Sales_Model_Resource_Abstract
and it works

Why ???

 
Magento Community Magento Community
Magento Community
Magento Community
 
Vinai
Sr. Member
 
Avatar
Total Posts:  218
Joined:  2008-04-04
Heidelberg, Germany
 

This is definitely a bug in Mage_Sales_Model_Mysql4_Abstract
It is used only if you have a module installed that rewrites one of the original sales resource models, otherwise this bug will not bite.

Adding the abstract keyword to the class is the correct fix.

Care to submit a patch to the CE repos Brent?

Vinai

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brent W Peterson
Moderator
 
Avatar
Total Posts:  3217
Joined:  2009-02-26
Minneapolis MN
 

Yes, thank you for the explanation Vinai!

 
Magento Community Magento Community
Magento Community
Magento Community
 
PiersC
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2011-01-08
UK
 

When i compile/re-enable the compiler everything seems ok from Admin, but soon as i go back to the live site and anyone tries to add a product to the shopping card they just get a blank white screen and nothing else. There is no way to access the cart or checkout :(

I cleared the cache and reindexed all several times now and still get the same issue.

For the meantime i have disabled the compiler so that the store can be used, but i have no idea how to fix this issue. Does anyone have any good pointers?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brent W Peterson
Moderator
 
Avatar
Total Posts:  3217
Joined:  2009-02-26
Minneapolis MN
 

What version did you upgrade from?

Does it do the same thing if you switch to the default theme and try it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
PiersC
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2011-01-08
UK
 

Hi Brent,

I upgraded from 1.5.0.1 to 1.6. Everything was working fine on 1.5.0.1.

No i have not tried switching to the default theme. My current theme, was originally the default theme with a different look and feel. Also i only run a few extensions (none shopping cart/checkout related).

I dont have a sandbox/test version of the site to play with, so changing themes and recompiling could cause alarm (in terms of it looking different) to any online shoppers.

Thanks

Piers

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeannieK
Jr. Member
 
Total Posts:  15
Joined:  2008-11-28
 

I’m having same problem as PiersC

upgraded from 1.5.0.1 to 1.6

compile/re-enable

checkout / shopping cart get blank page in firefox , 500 Internal Server Error chrome..

 
Magento Community Magento Community
Magento Community
Magento Community
 
rrroulio
Sr. Member
 
Avatar
Total Posts:  88
Joined:  2008-03-26
france moselle
 
vinai - 30 August 2011 06:45 AM

This is definitely a bug in Mage_Sales_Model_Mysql4_Abstract
It is used only if you have a module installed that rewrites one of the original sales resource models, otherwise this bug will not bite.

Adding the abstract keyword to the class is the correct fix.

Care to submit a patch to the CE repos Brent?

Vinai

It works for me. Thanks!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
PiersC
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2011-01-08
UK
 
rrroulio - 24 September 2011 02:34 AM

vinai - 30 August 2011 06:45 AM
This is definitely a bug in Mage_Sales_Model_Mysql4_Abstract
It is used only if you have a module installed that rewrites one of the original sales resource models, otherwise this bug will not bite.

Adding the abstract keyword to the class is the correct fix.

Care to submit a patch to the CE repos Brent?

Vinai

It works for me. Thanks!!!

@rrroulio how do you add abstract keyword to the class?

I have been looking at:

\mage\sales\model\mysql4\abstract.php
\mage\sales\model\abstract.php

But not sure how to add the keyword as you suggested.

Please could you shine some light on how you applied your fix?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brent W Peterson
Moderator
 
Avatar
Total Posts:  3217
Joined:  2009-02-26
Minneapolis MN
 

Look at the file app\code\core\Mage\Sales\Model\Mysql4\Abstract.php

Add abstract to the beginning before class

abstract class Mage_Sales_Model_Mysql4_Abstract extends Mage_Sales_Model_Resource_Abstract
 
Magento Community Magento Community
Magento Community
Magento Community
 
PiersC
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2011-01-08
UK
 

Thanks Brent

Wow it was as simple as that. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
ashwinmaurya
Jr. Member
 
Total Posts:  1
Joined:  2012-03-06
 
PiersC - 04 September 2011 02:57 AM

When i compile/re-enable the compiler everything seems ok from Admin, but soon as i go back to the live site and anyone tries to add a product to the shopping card they just get a blank white screen and nothing else. There is no way to access the cart or checkout :(

I cleared the cache and reindexed all several times now and still get the same issue.

For the meantime i have disabled the compiler so that the store can be used, but i have no idea how to fix this issue. Does anyone have any good pointers?

Thanks

Did anyone find solution to this issue?

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