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

Magento 1.5.1.0 to 1.6.1.0 upgrade
 
Moshe47
Jr. Member
 
Total Posts:  6
Joined:  2011-03-15
 

Hi,
I need your help to upgrade magento.

Actually we are running magento v1.5.1.0 without problem.

What i do to upgrade :
1 - Backup my old database.

Mysqldump â€“ulogin â€“ppass name_database file.sql
next i create a new session on plesk (new domain).

2 - Install a fresh version of magento 1.5.1.0 (new session on my server)

wget http://www.magentocommerce.com/downloads/assets/1.5.1.0/magento-1.5.1.0.tar.gz
tar -zxvf magento-1.5.1.0.tar.gz
mv magento
/* magento/.htaccess .
mv php.ini.sample php.ini
chmod o+w var var/.htaccess app/etc
chmod -R o+w media
chmod -R o+w var
rm -rf magento/ magento-1.5.1.0.tar.gz

3 - open the website (ex : www.mydomaine.com) to install magento (= initialise the new database)

4 - restore my old database

Mysql â€“ulogin â€“ppass name_database file.sql

At this point, i can connect to the fresh install of magento 1.5.1.0 without problem.

5 - update magento with SSH command line :

rm -rf var/cache/* var/session/*
chmod 550 ./mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage list-installed
./mage list-upgrades
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force

6 - my problem :
6.1 if i send this line in SSH to re-index:

php shell/indexer.php reindexall
SSH Returns :

HP Fatal error:  Uncaught exception ‘Zend_Cache_Exception’ with message ‘cache_ dir must be a directory’ in /var/www/vhosts/@@@@@/httpdocs/lib/Zend/Ca che.php:209
Stack trace:
....

6.2 If i tried to connect to the website, after a long time i have this error :

a:5:{i:0;s:230:"Error in file: “/var/www/vhosts/@@@@@/httpdocs/app/code/core/Mage/Customer/sql/customer_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php” - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘0-1487’ for key 2";i:1;s:1104:"#0 /var/www/vhosts/@@@@@/httpdocs/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception(’Mage_Core’, ‘Error in file: ...’)
#1 /.....

After press F5, i can login to the website.

Someone can confirme me that the udapte have work ?

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

Why don’t you just install a fresh version of 1.6.1 and point your old database to that?

Also, during install make sure your folders are writable, it makes things easier

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe47
Jr. Member
 
Total Posts:  6
Joined:  2011-03-15
 

ok i will try this, but one question more :

1) install magento 1.6.1.0. (extract file only)
2) dump my current database 1.5.1.0
3) run the install of magento in a new database and after copy my old one ? or directly copy my old one and point to it during the installation process ?

thinking about this, on a new server, Which is the best php version for magento ? 5.3 or 5.2 ?
thanks for you answer

 
Magento Community Magento Community
Magento Community
Magento Community
 
krlkv
Member
 
Total Posts:  42
Joined:  2008-11-09
 

Directly copy your old one and point to it during the installation process.  Both php 5.2 & 5.3 will work just fine

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe47
Jr. Member
 
Total Posts:  6
Joined:  2011-03-15
 

this is my Error with the udapte process of the database :

Error in file: “/var/www/vhosts/@@@@@/httpdocs/app/code/core/Mage/Customer/sql/customer_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php” - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘0-1487’ for key ‘UNQ_BY_CUSTOMER‘“;i:1;s:1112:"#0 /var/www/vhosts/odyssee-vins.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception(’Mage_Core’, ‘Error in file: ...’)

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

Clear your cache and start the install again. Most of the time Magento will get back the errors.

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