SlideShare une entreprise Scribd logo
1  sur  43
Upgrading to Drupal 7
                                           NCTech4Good
                                        April 15, 2011
                                  Kosta Harlan @dh_kosta
Notes:                                Jay Roberts @dh_jay
                               Developer @DesignHammer
http://designhammer.com/blog      http://designhammer.com



                         1
A bit about us

• DesignHammer is a web design and
  development firm based in Durham
• We do Drupal
• Themes, modules, information architecture,
  mobile, 3rd party integration



                     2
What is Drupal 7?



        3
What is Drupal 7?

• Powerful content management system
• D7 has a great number of usability,
  performance, security, and API
  improvements
• Drupal 7 currently used by NPR, The
  Examiner, Drupal Gardens


                     4
Why you shouldn’t
upgrade to Drupal 7


         5
Drupal is an
          eco-system
• Modules
• Themes
• Install Profiles
• People!

                    6
Modules & Themes

• Many important contributed modules
  (Nodewords) are not ported
• Many others (Views) don’t have stable
  releases
• Lots of others have major/critical bugs

                      7
Modules & Themes
6000



4500



3000



1500


                           Drupal 6   Drupal 7
   0
        Modules   Themes



                   8
More reasons not to
          upgrade?
• There are bugs in Drupal 7 (1 critical, 200
  major, 800+ normal)
• Upgrading is a major investment of time
  and resources
• Drupal 6 still has at least 2-3 years of
  support


                       9
Good reasons to
        upgrade
• Preparing for an overhaul of your website
  structure / design
• Currently running Drupal 5 or hacked core
• Preparing for a presentation on how to
  upgrade Drupal 6 to Drupal 7!


                       10
Let’s upgrade!



      11
Site inventory
• Figure out what you have, what you need,
  and what you can get rid of.

• Modules, themes, custom code
• Configuration and content


                     12
Module inventory




  admin/build/modules

           13
Use Drush
          http://drupal.org/project/drush




• Drush is a command-line tool to interact
  with the Drupal shell
• Essential for managing sites
• drush    site-upgrade @d7




                        14
Drush inventory




drush pml --type=module --status=enabled --no-core


                        15
drush pml --type=module --status=enabled --no-core
--pipe

                        16
Drush inventory



drush pml --type=module --status=enabled --no-core
--package=designhammer




                        17
Content type inventory




          18
Field inventory




       19
Theme inventory
            Won’t work in D7




       20
Theme work




    21
Other configuration

• Views
• Panels
• Menu structure
• Block placement

                    22
Content inventory

• Get to know your database
•SHOW TABLES;
•SELECT COUNT(*) FROM users;
•SELECT COUNT(*) FROM node;
• Use Views to help with content inventory
                    23
Inventory complete?
  Not if you didn’t take lots of notes!




                   24
Migration environments



          25
Development
        environments

• Production (http://designhammer.com)
• Staging (http://stage.designhammer.com)
• Development (http://designhammer.local)

                    26
Migration environments

• Staging (http://d7stage.designhammer.com)
• Development (http://dh7.local)
• Don’t attempt an upgrade on your live site!


                     27
Source control

• We use Git
• Branches for develop-7.x and master-7.x
• Branches for features and issues


                    28
Which migration path?
   How frequently is your site updated?




                    29
Drupal’s update.php
             http://yoursite.org/update.php

            Pros                               Cons

•   Standard, community            •   The remaining 10% can
    supported upgrade path             cause big headaches

•   Easy!                          •   Field migration not quite
                                       there yet
•   Migrates configuration
                                   •   No ability for ongoing data
    settings
                                       migration
•   Will get you 90% of the
    way there

                              30
Migrate module
            http://drupal.org/project/migrate

           Pros                              Cons

•   Extremely flexible and        •   More complicated to set
    powerful                         up

•   Excellent for ongoing        •   Time consuming
    data migration
                                 •   Not great for Drupal to
•   Integrates with issue            Drupal migrations
    trackers
                                 •   No configuration settings
                                     migrated

                            31
Migrate module
• Write code for each entity you want to
  import
• Run imports and roll back
• Supports pulling data from the production
  database




                     32
Migrate module




      33
Migrate module




      34
35
Drupal 7 update.php
•    Follow the 18 step guide in UPGRADE.txt
    • Disable all modules, themes, set core
      theme
• When you are done, download cck-3.x-dev
    and enable the content_migrate module
• Start migrating your fields
                       36
Data migrated!
 Now comes the hard work




           37
Configuration and code

• Upgrade your theme(s)
• Upgrade your custom code
• Upgrade all your contributed modules
• Reset your blocks & configuration settings
• Report bugs and contribute patches!
                     38
DesignHammer
   A Case Study




        39
DH Migration Path

• We tried the standard update.php process,
  and failed
• Tried Migrate module
• Then went with the update.php process
  again



                    40
Pain points
• Converting the theme
• Fixing broken Views
• Resetting configuration (blocks, tokens,
  menu items)
• Learning D7 from a migration process
  instead of starting fresh


                      41
Conclusions

• Plan carefully
• Have a good reason to upgrade
• Think about your migration path
• Study D7 before attempting to upgrade to
  D7!


                    42
Kosta Harlan
   Jay Roberts
Developers @DesignHammer
   @dh_kosta @dh_jay
  www.designhammer.com


           43

Contenu connexe

Similaire à Upgrading to Drupal 7

Drupal content editing ux
Drupal content editing uxDrupal content editing ux
Drupal content editing ux
Sergei Sorokin
 

Similaire à Upgrading to Drupal 7 (20)

Drupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 versionDrupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 version
 
Resources for Navigating Drupal Upgrades: Versions 6 Through 8 And What It Me...
Resources for Navigating Drupal Upgrades: Versions 6 Through 8 And What It Me...Resources for Navigating Drupal Upgrades: Versions 6 Through 8 And What It Me...
Resources for Navigating Drupal Upgrades: Versions 6 Through 8 And What It Me...
 
Staging and Deployment
Staging and DeploymentStaging and Deployment
Staging and Deployment
 
Phase2 Large Drupal Multisites (gta case study)
Phase2   Large Drupal Multisites (gta case study)Phase2   Large Drupal Multisites (gta case study)
Phase2 Large Drupal Multisites (gta case study)
 
Drupal 8 deeper dive
Drupal 8 deeper diveDrupal 8 deeper dive
Drupal 8 deeper dive
 
Everything You Need to Know About the Top Changes in Drupal 8
Everything You Need to Know About the Top Changes in Drupal 8Everything You Need to Know About the Top Changes in Drupal 8
Everything You Need to Know About the Top Changes in Drupal 8
 
Upgrading to SharePoint 2010
Upgrading to SharePoint 2010Upgrading to SharePoint 2010
Upgrading to SharePoint 2010
 
Things Every Oracle DBA Needs to Know about the Hadoop Ecosystem
Things Every Oracle DBA Needs to Know about the Hadoop EcosystemThings Every Oracle DBA Needs to Know about the Hadoop Ecosystem
Things Every Oracle DBA Needs to Know about the Hadoop Ecosystem
 
Drupalmonitor.com - Drupal User Group Meetup Basel
Drupalmonitor.com - Drupal User Group Meetup BaselDrupalmonitor.com - Drupal User Group Meetup Basel
Drupalmonitor.com - Drupal User Group Meetup Basel
 
Drupal, git and sanity
Drupal, git and sanityDrupal, git and sanity
Drupal, git and sanity
 
Migrate all the things!
Migrate all the things!Migrate all the things!
Migrate all the things!
 
Drupal content editing ux
Drupal content editing uxDrupal content editing ux
Drupal content editing ux
 
Things Every Oracle DBA Needs To Know About The Hadoop Ecosystem
Things Every Oracle DBA Needs To Know About The Hadoop EcosystemThings Every Oracle DBA Needs To Know About The Hadoop Ecosystem
Things Every Oracle DBA Needs To Know About The Hadoop Ecosystem
 
Top modules
Top modulesTop modules
Top modules
 
Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to Drupal
 
Upgrading to Drupal 8: Benefits and Gotchas
Upgrading to Drupal 8: Benefits and GotchasUpgrading to Drupal 8: Benefits and Gotchas
Upgrading to Drupal 8: Benefits and Gotchas
 
Last Call Media Drupal 8 Case Study
Last Call Media Drupal 8 Case StudyLast Call Media Drupal 8 Case Study
Last Call Media Drupal 8 Case Study
 
Drupal Overview For Techies
Drupal Overview For TechiesDrupal Overview For Techies
Drupal Overview For Techies
 
Drupal 8 Initiatives
Drupal 8 InitiativesDrupal 8 Initiatives
Drupal 8 Initiatives
 
How Not to Be Conned by Your Drupal Vendor!
How Not to Be Conned by Your Drupal Vendor!How Not to Be Conned by Your Drupal Vendor!
How Not to Be Conned by Your Drupal Vendor!
 

Plus de DesignHammer

Plus de DesignHammer (20)

DrupalGovCon - Taming Your Data 2023.pdf
DrupalGovCon - Taming Your Data 2023.pdfDrupalGovCon - Taming Your Data 2023.pdf
DrupalGovCon - Taming Your Data 2023.pdf
 
Central NJ Web Developers Meetup - Google Analytics 4.pdf
Central NJ Web Developers Meetup - Google Analytics 4.pdfCentral NJ Web Developers Meetup - Google Analytics 4.pdf
Central NJ Web Developers Meetup - Google Analytics 4.pdf
 
Increasing Traffic to your Drupal Blog with Automated RSS Email Campaigns
Increasing Traffic to your Drupal Blog with Automated RSS Email CampaignsIncreasing Traffic to your Drupal Blog with Automated RSS Email Campaigns
Increasing Traffic to your Drupal Blog with Automated RSS Email Campaigns
 
How to take the stress out of writing case studies
How to take the stress out of writing case studiesHow to take the stress out of writing case studies
How to take the stress out of writing case studies
 
Classic Website Blunders
Classic Website BlundersClassic Website Blunders
Classic Website Blunders
 
Classic Website Blunders
Classic Website BlundersClassic Website Blunders
Classic Website Blunders
 
Classic Website Blunders
Classic Website BlundersClassic Website Blunders
Classic Website Blunders
 
Google Tag Manager for actionable metrics - Beyond basic Google Analytics
Google Tag Manager for actionable metrics - Beyond basic Google AnalyticsGoogle Tag Manager for actionable metrics - Beyond basic Google Analytics
Google Tag Manager for actionable metrics - Beyond basic Google Analytics
 
10 Classic Website Blunders
10 Classic Website Blunders10 Classic Website Blunders
10 Classic Website Blunders
 
Successful Project Estimation: How to Get Your Weekends Back
Successful Project Estimation: How to Get Your Weekends BackSuccessful Project Estimation: How to Get Your Weekends Back
Successful Project Estimation: How to Get Your Weekends Back
 
Access Not Denied: Accessible Websites for All
Access Not Denied: Accessible Websites for AllAccess Not Denied: Accessible Websites for All
Access Not Denied: Accessible Websites for All
 
How to take the stress out of writing case studies
How to take the stress out of writing case studiesHow to take the stress out of writing case studies
How to take the stress out of writing case studies
 
Google Tag Manager for actionable metrics - Beyond basic Google Analytics
Google Tag Manager for actionable metrics - Beyond basic Google AnalyticsGoogle Tag Manager for actionable metrics - Beyond basic Google Analytics
Google Tag Manager for actionable metrics - Beyond basic Google Analytics
 
Newsletters in an Hour a Week
Newsletters in an Hour a WeekNewsletters in an Hour a Week
Newsletters in an Hour a Week
 
Website Accessibility: It’s the Right Thing to do
Website Accessibility: It’s the Right Thing to doWebsite Accessibility: It’s the Right Thing to do
Website Accessibility: It’s the Right Thing to do
 
How to Use Website Strategy to Rise to New Heights
How to Use Website Strategy to Rise to New HeightsHow to Use Website Strategy to Rise to New Heights
How to Use Website Strategy to Rise to New Heights
 
Get It Right the First Time Through Cheap and Easy DIY Usability Testing - Dr...
Get It Right the First Time Through Cheap and Easy DIY Usability Testing - Dr...Get It Right the First Time Through Cheap and Easy DIY Usability Testing - Dr...
Get It Right the First Time Through Cheap and Easy DIY Usability Testing - Dr...
 
Website Redesign in Drupal: are you planning to succeed or succeeding to fail...
Website Redesign in Drupal: are you planning to succeed or succeeding to fail...Website Redesign in Drupal: are you planning to succeed or succeeding to fail...
Website Redesign in Drupal: are you planning to succeed or succeeding to fail...
 
Get it right the first time through cheap and easy DIY usability testing
Get it right the first time through cheap and easy DIY usability testingGet it right the first time through cheap and easy DIY usability testing
Get it right the first time through cheap and easy DIY usability testing
 
Website Redesign: Are You Planning To Succeed Or Succeeding To Fail? It All S...
Website Redesign: Are You Planning To Succeed Or Succeeding To Fail? It All S...Website Redesign: Are You Planning To Succeed Or Succeeding To Fail? It All S...
Website Redesign: Are You Planning To Succeed Or Succeeding To Fail? It All S...
 

Dernier

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Upgrading to Drupal 7

  • 1. Upgrading to Drupal 7 NCTech4Good April 15, 2011 Kosta Harlan @dh_kosta Notes: Jay Roberts @dh_jay Developer @DesignHammer http://designhammer.com/blog http://designhammer.com 1
  • 2. A bit about us • DesignHammer is a web design and development firm based in Durham • We do Drupal • Themes, modules, information architecture, mobile, 3rd party integration 2
  • 4. What is Drupal 7? • Powerful content management system • D7 has a great number of usability, performance, security, and API improvements • Drupal 7 currently used by NPR, The Examiner, Drupal Gardens 4
  • 6. Drupal is an eco-system • Modules • Themes • Install Profiles • People! 6
  • 7. Modules & Themes • Many important contributed modules (Nodewords) are not ported • Many others (Views) don’t have stable releases • Lots of others have major/critical bugs 7
  • 8. Modules & Themes 6000 4500 3000 1500 Drupal 6 Drupal 7 0 Modules Themes 8
  • 9. More reasons not to upgrade? • There are bugs in Drupal 7 (1 critical, 200 major, 800+ normal) • Upgrading is a major investment of time and resources • Drupal 6 still has at least 2-3 years of support 9
  • 10. Good reasons to upgrade • Preparing for an overhaul of your website structure / design • Currently running Drupal 5 or hacked core • Preparing for a presentation on how to upgrade Drupal 6 to Drupal 7! 10
  • 12. Site inventory • Figure out what you have, what you need, and what you can get rid of. • Modules, themes, custom code • Configuration and content 12
  • 13. Module inventory admin/build/modules 13
  • 14. Use Drush http://drupal.org/project/drush • Drush is a command-line tool to interact with the Drupal shell • Essential for managing sites • drush site-upgrade @d7 14
  • 15. Drush inventory drush pml --type=module --status=enabled --no-core 15
  • 16. drush pml --type=module --status=enabled --no-core --pipe 16
  • 17. Drush inventory drush pml --type=module --status=enabled --no-core --package=designhammer 17
  • 20. Theme inventory Won’t work in D7 20
  • 22. Other configuration • Views • Panels • Menu structure • Block placement 22
  • 23. Content inventory • Get to know your database •SHOW TABLES; •SELECT COUNT(*) FROM users; •SELECT COUNT(*) FROM node; • Use Views to help with content inventory 23
  • 24. Inventory complete? Not if you didn’t take lots of notes! 24
  • 26. Development environments • Production (http://designhammer.com) • Staging (http://stage.designhammer.com) • Development (http://designhammer.local) 26
  • 27. Migration environments • Staging (http://d7stage.designhammer.com) • Development (http://dh7.local) • Don’t attempt an upgrade on your live site! 27
  • 28. Source control • We use Git • Branches for develop-7.x and master-7.x • Branches for features and issues 28
  • 29. Which migration path? How frequently is your site updated? 29
  • 30. Drupal’s update.php http://yoursite.org/update.php Pros Cons • Standard, community • The remaining 10% can supported upgrade path cause big headaches • Easy! • Field migration not quite there yet • Migrates configuration • No ability for ongoing data settings migration • Will get you 90% of the way there 30
  • 31. Migrate module http://drupal.org/project/migrate Pros Cons • Extremely flexible and • More complicated to set powerful up • Excellent for ongoing • Time consuming data migration • Not great for Drupal to • Integrates with issue Drupal migrations trackers • No configuration settings migrated 31
  • 32. Migrate module • Write code for each entity you want to import • Run imports and roll back • Supports pulling data from the production database 32
  • 35. 35
  • 36. Drupal 7 update.php • Follow the 18 step guide in UPGRADE.txt • Disable all modules, themes, set core theme • When you are done, download cck-3.x-dev and enable the content_migrate module • Start migrating your fields 36
  • 37. Data migrated! Now comes the hard work 37
  • 38. Configuration and code • Upgrade your theme(s) • Upgrade your custom code • Upgrade all your contributed modules • Reset your blocks & configuration settings • Report bugs and contribute patches! 38
  • 39. DesignHammer A Case Study 39
  • 40. DH Migration Path • We tried the standard update.php process, and failed • Tried Migrate module • Then went with the update.php process again 40
  • 41. Pain points • Converting the theme • Fixing broken Views • Resetting configuration (blocks, tokens, menu items) • Learning D7 from a migration process instead of starting fresh 41
  • 42. Conclusions • Plan carefully • Have a good reason to upgrade • Think about your migration path • Study D7 before attempting to upgrade to D7! 42
  • 43. Kosta Harlan Jay Roberts Developers @DesignHammer @dh_kosta @dh_jay www.designhammer.com 43