SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Upgrading MAGENTO 
Through Magento 
Connect 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014 
1/2/12 
About Me 
M70 101 – Magento Certified Developer 
Skills: PHP, Magento 
Connect Me: - 
Facebook : https://www.facebook.com/sammanita.pattnayak 
LinkedIn : www.linkedin.com/profile/view?id=92225339 
Contact Me: 
Email: sammanita.pattnayak@mindfiresolutions.com 
Skype: 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 Solutions 
Date: 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 Solutions 
Date: 31/03/2014
Why to UPGRADE 
1/2/12 
MAGENTO 
 Significant TAX calculation updates 
 VAT,FPT. 
 Functional Improvements 
 Shipping,Checkout. 
 Admin area changes 
 Order Cancellation 
 Bug Fixes 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014
Care should be taken 
Before Upgradation 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014 
1/2/12 
 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.
Common Issues faced 
During Upgradation 
 Current stable version does not show up on 
magento connect. 
1/2/12 
 File permission. 
 Add the following snippet of code in 
downloader/lib/Mage/Connect/Validator.php 
to fix magento connect issue. 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014 
1/2/12 
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"); 
}
Different methods for 
1/2/12 
Upgradation 
Using Command Prompt: 
STEP 1: Enable maintenance mode 
cd /magento_folder 
#for example: cd /var/www/magento 
touch maintenance.flag 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014
STEP 2: Backup your database and folders 
mysqldump [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 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014 
1/2/12
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014 
1/2/12 
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 expected 
Magento modules as follows: 
Installed package for channel 'community' : 
Lib_Js_Ext 1.7.0.0 stable 
Lib_LinLibertineFont 2.8.14.1 stable 
Lib_Js_TinyMCE 3.4.7.0 stable 
Lib_Js_Calendar 1.51.1.1 stable 
Lib_Phpseclib 1.5.0.0 stable 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014
If modules were not listed, you’ll need to upgrade 
using: 
./mage install 
http://connect20.magentocommerce.com/community 
Mage_All_Latest –force 
If your Magento modules were listed - use the 
following commands: 
./mage list-upgrades 
./mage upgrade-all 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014 
1/2/12
When the process is complete you’ll see a list of 
modules saying ‘already installed’, ’package 
upgraded’ etc...), make sure your permissions 
are set back to normal: 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014 
1/2/12 
php shell/indexer.php reindexall 
chmod -R 644 ./* 
find . -type d -exec chmod 755 {} ; 
chmod 550 ./mage 
STEP 4: Go live 
cd /magento_folder 
rm -f maintenance.flag
Testing the Magento 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014 
1/2/12 
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 Solutions 
Date: 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 Solutions 
Date: 31/03/2014
Questions 
& 
Answers 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014
Thank 
You 
Presenter: Sammanita Pattnayak, 
Mindfire Solutions 
Date: 31/03/2014
www.mindfiresolutions.com 
https://www.facebook.com/MindfireSolutions 
http://www.linkedin.com/company/mindfire-solutions 
http://twitter.com/mindfires

Weitere ähnliche Inhalte

Ähnlich wie Issues and solutions for Magento upgrade(1.8.0.1)

Ähnlich wie Issues and solutions for Magento upgrade(1.8.0.1) (20)

Magento 2 Event Manager Extension
Magento 2 Event Manager ExtensionMagento 2 Event Manager Extension
Magento 2 Event Manager Extension
 
Magento 2 Survey Extension
Magento 2 Survey ExtensionMagento 2 Survey Extension
Magento 2 Survey Extension
 
Faster Magento Integration Tests
Faster Magento Integration TestsFaster Magento Integration Tests
Faster Magento Integration Tests
 
A Successful Magento Project From Design to Deployment
A Successful Magento Project From Design to DeploymentA Successful Magento Project From Design to Deployment
A Successful Magento Project From Design to Deployment
 
Magento 2 Responsive Navigation Menu
Magento 2 Responsive Navigation MenuMagento 2 Responsive Navigation Menu
Magento 2 Responsive Navigation Menu
 
Introduction to Mangento
Introduction to Mangento Introduction to Mangento
Introduction to Mangento
 
Mangento
MangentoMangento
Mangento
 
Quick View For Magento 2
Quick View For Magento 2 Quick View For Magento 2
Quick View For Magento 2
 
Magento 2 Google Rich Snippets
Magento 2 Google Rich SnippetsMagento 2 Google Rich Snippets
Magento 2 Google Rich Snippets
 
Magento 2 integration tests
Magento 2 integration testsMagento 2 integration tests
Magento 2 integration tests
 
Magento 2 Order Attributes
Magento 2 Order Attributes Magento 2 Order Attributes
Magento 2 Order Attributes
 
Magento 2 Countdown Timer Extension
Magento 2 Countdown Timer ExtensionMagento 2 Countdown Timer Extension
Magento 2 Countdown Timer Extension
 
Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more
 
Dnn developer contact us user manual
Dnn developer contact us user manualDnn developer contact us user manual
Dnn developer contact us user manual
 
Magento best practices
Magento best practicesMagento best practices
Magento best practices
 
Magento 2 first data hosted extension
Magento 2 first data hosted extensionMagento 2 first data hosted extension
Magento 2 first data hosted extension
 
Magento2 From Setup To Deployment. Automate Everything
Magento2 From Setup To Deployment. Automate EverythingMagento2 From Setup To Deployment. Automate Everything
Magento2 From Setup To Deployment. Automate Everything
 
Tsvetan stoychev m_mspeakers-edited-final
Tsvetan stoychev m_mspeakers-edited-finalTsvetan stoychev m_mspeakers-edited-final
Tsvetan stoychev m_mspeakers-edited-final
 
Daily deals for magento 2
Daily deals for magento 2Daily deals for magento 2
Daily deals for magento 2
 
Multi flat shipping for magento 2
Multi flat shipping for magento 2Multi flat shipping for magento 2
Multi flat shipping for magento 2
 

Kürzlich hochgeladen

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Kürzlich hochgeladen (20)

SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 

Issues and solutions for Magento upgrade(1.8.0.1)

  • 1. Upgrading MAGENTO Through Magento Connect Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014
  • 2. Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014 1/2/12 About Me M70 101 – Magento Certified Developer Skills: PHP, Magento Connect Me: - Facebook : https://www.facebook.com/sammanita.pattnayak LinkedIn : www.linkedin.com/profile/view?id=92225339 Contact Me: Email: sammanita.pattnayak@mindfiresolutions.com Skype: mfsi_sammanita.pattnayak
  • 3. 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 Solutions Date: 31/03/2014
  • 4. 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 Solutions Date: 31/03/2014
  • 5. Why to UPGRADE 1/2/12 MAGENTO  Significant TAX calculation updates  VAT,FPT.  Functional Improvements  Shipping,Checkout.  Admin area changes  Order Cancellation  Bug Fixes Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014
  • 6. Care should be taken Before Upgradation Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014 1/2/12  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.
  • 7. Common Issues faced During Upgradation  Current stable version does not show up on magento connect. 1/2/12  File permission.  Add the following snippet of code in downloader/lib/Mage/Connect/Validator.php to fix magento connect issue. Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014
  • 8. Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014 1/2/12 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"); }
  • 9. Different methods for 1/2/12 Upgradation Using Command Prompt: STEP 1: Enable maintenance mode cd /magento_folder #for example: cd /var/www/magento touch maintenance.flag Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014
  • 10. STEP 2: Backup your database and folders mysqldump [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 Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014 1/2/12
  • 11. Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014 1/2/12 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
  • 12. 1/2/12 The last command should list the expected Magento modules as follows: Installed package for channel 'community' : Lib_Js_Ext 1.7.0.0 stable Lib_LinLibertineFont 2.8.14.1 stable Lib_Js_TinyMCE 3.4.7.0 stable Lib_Js_Calendar 1.51.1.1 stable Lib_Phpseclib 1.5.0.0 stable Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014
  • 13. If modules were not listed, you’ll need to upgrade using: ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest –force If your Magento modules were listed - use the following commands: ./mage list-upgrades ./mage upgrade-all Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014 1/2/12
  • 14. When the process is complete you’ll see a list of modules saying ‘already installed’, ’package upgraded’ etc...), make sure your permissions are set back to normal: Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014 1/2/12 php shell/indexer.php reindexall chmod -R 644 ./* find . -type d -exec chmod 755 {} ; chmod 550 ./mage STEP 4: Go live cd /magento_folder rm -f maintenance.flag
  • 15. Testing the Magento Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014 1/2/12 Upgrade  Browse through the complete site.  Check each and every functionality.  Do a complete QA after upgrade.  Revert back the file permission
  • 16. 1/2/12 Pros  Avail bug fixes.  Avail new added functionality.  Performance increase.  Security. Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014
  • 17. 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 Solutions Date: 31/03/2014
  • 18. Questions & Answers Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014
  • 19. Thank You Presenter: Sammanita Pattnayak, Mindfire Solutions Date: 31/03/2014