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

Fatal error after update to 1.7
 
@cornelius&
Jr. Member
 
Total Posts:  9
Joined:  2010-01-11
 

We updated to 1.7 and got a lot of errors during the proces. Then there was the maintenance flag problem. Deleted the flag.

Now in backend and frontend there is this error message:
Fatal error: Undefined class constant ‘ENGINE_MEMORY’ in /public_html/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-1.6.0.0.8-1.6.0.0.9.php on line 52

What to do?

 
Magento Community Magento Community
Magento Community
Magento Community
 
machappell
Jr. Member
 
Total Posts:  1
Joined:  2012-03-13
 

same problem on a fresh install for me!!

help plz

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andre N
Sr. Member
 
Avatar
Total Posts:  186
Joined:  2009-12-09
CA
 
@cornelius& - 07 May 2012 10:59 PM

We updated to 1.7 and got a lot of errors during the proces. Then there was the maintenance flag problem. Deleted the flag.

Now in backend and frontend there is this error message:
Fatal error: Undefined class constant ‘ENGINE_MEMORY’ in /public_html/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-1.6.0.0.8-1.6.0.0.9.php on line 52

What to do?

line 52 yields:

$connection->changeTableEngine($installer->getTable($table), Varien_Db_Adapter_Pdo_Mysql::ENGINE_MEMORY);

lib/Varien/Db/Adapter/Pdo/Mysql.php line 54 defines the constant as:

const ENGINE_MEMORY 'MEMORY';

so… in /public_html/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-1.6.0.0.8-1.6.0.0.9.php, try changing line 52 to be:

$connection->changeTableEngine($installer->getTable($table), 'MEMORY');
and see if that helps
 
Magento Community Magento Community
Magento Community
Magento Community
 
skullo27
Jr. Member
 
Total Posts:  4
Joined:  2010-03-16
 

did anyone fix this error as i tried the suggested fix and it did nothing?

 
Magento Community Magento Community
Magento Community
Magento Community
 
johntranter
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2011-11-08
Australia
 

I simply reuploaded the ‘lib’ directory and that worked for me.
I got the latest download from the magento site first.

 
Magento Community Magento Community
Magento Community
Magento Community
 
gabosdenes
Jr. Member
 
Total Posts:  8
Joined:  2010-06-29
 

Same problem here. Anyone with a little help?

 
Magento Community Magento Community
Magento Community
Magento Community
 
gabosdenes
Jr. Member
 
Total Posts:  8
Joined:  2010-06-29
 

Ok, so I figured it out. I had APC enabled on the server. Before doing any upgrade disable APC or any other compiler you may have installed. After that it worked like a charm. There was no need to do Andre Ns hack.
I upgraded from 1.6.1.0 to 1.7.0.2, the steps I took:

disable apc:
pico /etc/php5/conf.d/apc.ini
/etc/init.d/apache2 restart
cd <magento dir>
php -q cleanup.php (http://www.magentocommerce.com/wiki/groups/227/maintenance_script)

chmod 755 mage
./mage config-set preferred_state stable
./mage list-upgrades
./mage upgrade-all --force

 
Magento Community Magento Community
Magento Community
Magento Community
 
akewmagento
Jr. Member
 
Avatar
Total Posts:  22
Joined:  2011-06-12
 

This error appears because of your lib/Varien not updated to 1.7.0 yet. IMHO you just change the

core/Mage

folder.

search file on this:

#yourmagentofolder#/lib/Varien/Db/Adapter/Pdo/Mysql.php

if your lib/Varien updated, then this code below must be there

const ENGINE_MEMORY 'MEMORY';

update all file on lib for your magento life.  LOL

@Andre N,
i respect your answer, but in magento, changing core is forbidden for continuity version upgrade.

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