issues and solutions for magento upgrade(1.8.0.1)
TRANSCRIPT
Upgrading MAGENTO Through Magento
Connect
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
1/2/12
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
About Me
M70 101 – Magento Certified DeveloperSkills: PHP, Magento
Connect Me: -Facebook : https://www.facebook.com/sammanita.pattnayakLinkedIn : www.linkedin.com/profile/view?id=92225339
Contact Me: Email: [email protected]: mfsi_sammanita.pattnayak
1/2/12
Agenda Introduction Why to upgrade magento. Care should be taken before upgradation Common Issues faced during upgradation Different methods for upgradation Testing the Magento Upgrade Demo using magento connect Pros Cons Presenter: Sammanita Pattnayak,
Mindfire SolutionsDate: 31/03/2014
1/2/12
Introduction
Magento is a vast e-commerce platform. Magento developers keep upgrading with new
versions of magento. Everybody wants that they should be upgraded
with the latest version of Magento.
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
1/2/12
Why to UPGRADE MAGENTO
Significant TAX calculation updates VAT,FPT.
Functional Improvements Shipping,Checkout.
Admin area changes Order Cancellation
Bug Fixes
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
1/2/12
Care should be taken Before Upgradation
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
Back up of root directory. Back up of complete database. File comparison. If any modification found in core file then
overwrite the file in locale code pool and replace the file with core file.
1/2/12
Current stable version does not show up on magento connect.
File permission. Add the following snippet of code in
downloader/lib/Mage/Connect/Validator.phpto fix magento connect issue.
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
Common Issues faced During Upgradation
1/2/12
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
public function compareStabilities($s1, $s2) {
$list = $this->getStabilities(); $tmp = array_combine(array_values($list),array_keys($list)); // Code snippet to be inserted starts here //==================== if ($s1 == "dev") { $s11="dev"; $s1="devel"; } if ($s2 == "dev") { $s22="dev"; $s2="devel"; } // Code snippet to be inserted ends here //==================== if (!isset($tmp[$s1], $tmp[$s2])) { throw new Exception("Invalid stability in compareStabilities argument"); }
1/2/12
Different methods for Upgradation
Using Command Prompt:
STEP 1: Enable maintenance modecd /magento_folder
#for example: cd /var/www/magento
touch maintenance.flag
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
1/2/12
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
STEP 2: Backup your database and foldersmysqldump [magento_database_name] –u [magento_user] –p[magento_database_password] > \
> magento_database_name_backup_date.sql
# for example: mysqldump magento_db –u dbuser –pdbpassword > magento_db_ backup_01012013.sql
tar –cvf magento_backup_date.tar /magento_folder
# for example: tar –cvf /var/www/magento_backup.tar /var/www/magento
cp -R /your_magento_folder /your_magento_backup_folder
# for example: cp /your_magento_folder/ magento_backup.tar /your_magento_backup_folder
1/2/12
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
STEP 3: Start the upgrade
cd /magento_folder
rm -rf var/cache/* var/session/*
chmod -R 777 /magento_folder
chmod 550 ./mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage list-installed
1/2/12
The last command should list the expectedMagento modules as follows:
Installed package for channel 'community' :
Lib_Js_Ext 1.7.0.0 stableLib_LinLibertineFont 2.8.14.1 stableLib_Js_TinyMCE 3.4.7.0 stableLib_Js_Calendar 1.51.1.1 stableLib_Phpseclib 1.5.0.0 stable
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
1/2/12
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
I f modules were not l isted, you’l l need to upgrade using:
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest –force
I f your Magento modules were l isted - use the following commands:
./mage list-upgrades
./mage upgrade-all
1/2/12
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
When the process is complete you’l l see a l ist of modules saying ‘already installed’, ’package upgraded’ etc...), make sure your permissions are set back to normal:
php shell/indexer.php reindexallchmod -R 644 ./*find . -type d -exec chmod 755 {} \;chmod 550 ./mage
STEP 4: Go l ive
cd /magento_folderrm -f maintenance.flag
1/2/12
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
Testing the Magento Upgrade
Browse through the complete site.
Check each and every functionality.
Do a complete QA after upgrade.
Revert back the file permission
1/2/12
Pros Avail bug fixes.
Avail new added functionality.
Performance increase.
Security.Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
1/2/12
Cons If the upgrade is not done with caution then the
site may break.
If the core files are tempered and you don't have your back up or overwritten in local, then your data will be lost.
Number of unwanted bug Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
Questions&
Answers
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
ThankYou
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
www.mindfiresolutions.com
https://www.facebook.com/MindfireSolutions
http://www.linkedin.com/company/mindfire-solutions
http://twitter.com/mindfires