SlideShare a Scribd company logo
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

More Related Content

Similar to Upgrading to Drupal 7 (20)

PDF
Drupal upgrades and migrations. BAD Camp 2013 version
David Lanier
 
PPTX
Resources for Navigating Drupal Upgrades: Versions 6 Through 8 And What It Me...
Steve Kessler
 
ZIP
Staging and Deployment
heyrocker
 
PDF
Phase2 Large Drupal Multisites (gta case study)
Phase2
 
PDF
Drupal 8 deeper dive
Amazee Labs
 
PDF
Everything You Need to Know About the Top Changes in Drupal 8
Acquia
 
PDF
Upgrading to SharePoint 2010
C/D/H Technology Consultants
 
PDF
Things Every Oracle DBA Needs to Know about the Hadoop Ecosystem
Zohar Elkayam
 
KEY
Drupalmonitor.com - Drupal User Group Meetup Basel
NETNODE AG
 
PDF
Drupal, git and sanity
Charlie Morris
 
PDF
Migrate all the things!
Dave Vasilevsky
 
PPTX
Drupal content editing ux
Sergei Sorokin
 
PDF
Things Every Oracle DBA Needs To Know About The Hadoop Ecosystem
Zohar Elkayam
 
KEY
Top modules
jhamiltoorion
 
PDF
Absolute Beginners Guide to Drupal
Rod Martin
 
PDF
Upgrading to Drupal 8: Benefits and Gotchas
Suzanne Dergacheva
 
PDF
Last Call Media Drupal 8 Case Study
Design for Drupal, Boston
 
PPTX
Drupal Overview For Techies
Robert Carr
 
PPTX
Drupal 8 Initiatives
Angela Byron
 
PDF
How Not to Be Conned by Your Drupal Vendor!
pixelonion
 
Drupal upgrades and migrations. BAD Camp 2013 version
David Lanier
 
Resources for Navigating Drupal Upgrades: Versions 6 Through 8 And What It Me...
Steve Kessler
 
Staging and Deployment
heyrocker
 
Phase2 Large Drupal Multisites (gta case study)
Phase2
 
Drupal 8 deeper dive
Amazee Labs
 
Everything You Need to Know About the Top Changes in Drupal 8
Acquia
 
Upgrading to SharePoint 2010
C/D/H Technology Consultants
 
Things Every Oracle DBA Needs to Know about the Hadoop Ecosystem
Zohar Elkayam
 
Drupalmonitor.com - Drupal User Group Meetup Basel
NETNODE AG
 
Drupal, git and sanity
Charlie Morris
 
Migrate all the things!
Dave Vasilevsky
 
Drupal content editing ux
Sergei Sorokin
 
Things Every Oracle DBA Needs To Know About The Hadoop Ecosystem
Zohar Elkayam
 
Top modules
jhamiltoorion
 
Absolute Beginners Guide to Drupal
Rod Martin
 
Upgrading to Drupal 8: Benefits and Gotchas
Suzanne Dergacheva
 
Last Call Media Drupal 8 Case Study
Design for Drupal, Boston
 
Drupal Overview For Techies
Robert Carr
 
Drupal 8 Initiatives
Angela Byron
 
How Not to Be Conned by Your Drupal Vendor!
pixelonion
 

More from DesignHammer (20)

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

Recently uploaded (20)

PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Learn Computer Forensics, Second Edition
AnuraShantha7
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Learn Computer Forensics, Second Edition
AnuraShantha7
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Ad

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