Issues and solutions for Magento upgrade(1.8.0.1)
-
Upload
sammanita-pattnayak -
Category
Software
-
view
351 -
download
1
Transcript of Issues and solutions for Magento upgrade(1.8.0.1)
![Page 1: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/1.jpg)
Upgrading MAGENTO Through Magento
Connect
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
![Page 2: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/2.jpg)
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
![Page 3: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/3.jpg)
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
![Page 4: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/4.jpg)
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
![Page 5: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/5.jpg)
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
![Page 6: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/6.jpg)
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.
![Page 7: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/7.jpg)
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
![Page 8: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/8.jpg)
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"); }
![Page 9: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/9.jpg)
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
![Page 10: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/10.jpg)
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
![Page 11: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/11.jpg)
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
![Page 12: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/12.jpg)
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
![Page 13: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/13.jpg)
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
![Page 14: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/14.jpg)
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
![Page 15: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/15.jpg)
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
![Page 16: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/16.jpg)
1/2/12
Pros Avail bug fixes.
Avail new added functionality.
Performance increase.
Security.Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
![Page 17: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/17.jpg)
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
![Page 18: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/18.jpg)
Questions&
Answers
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
![Page 19: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/19.jpg)
ThankYou
Presenter: Sammanita Pattnayak,Mindfire SolutionsDate: 31/03/2014
![Page 20: Issues and solutions for Magento upgrade(1.8.0.1)](https://reader033.fdocuments.in/reader033/viewer/2022042818/55aedcfb1a28abce0f8b45e8/html5/thumbnails/20.jpg)
www.mindfiresolutions.com
https://www.facebook.com/MindfireSolutions
http://www.linkedin.com/company/mindfire-solutions
http://twitter.com/mindfires