SlideShare a Scribd company logo
1 of 30
Debugging
WordPress
Andrew Wikel
@slash1andy
My Background
• I love WordPress
• I’ve been working with it since 2008
• I worked for a non-profit for 7 years before
coming to WooThemes, and then Automattic
• I work in support for WooCommerce at
Automattic
- Robert Burns
“…The best-laid
schemes o' mice an
‘men…”
Debugging
- Lord Melbourne
“…the possession of great
power necessarily implies
great responsibility.”
Your face when your site white
screens
It’s going to be OK. Breathe.
Calm
Your first instinct will be to panic, but
you’re not doing anyone favors with that.
Find the problem
It’s often buried *just* under the surface
Questions to ask
• When exactly did you first notice the problem?
• Have any updates been applied to your website recently?
• Have you changed themes or made any design changes?
• Have you installed any new plugins?
• Is your problem happening in one browser, or all of them?
• Do you see any specific error messages?
Sometimes the problem
is right here.
Still not seeing
anything?
• Go to the page and use Firebug/Chrome Dev
tools to look for anything out of the ordinary.
• WP_DEBUG
WP_DEBUG
• This constant is an amazing tool that can really clue you in
to what’s going on in your site. You’ll start seeing PHP
notices and also WordPress-generated debug messages,
particularly deprecated function usage.
• There’s also WP_DEBUG_DISPLAY and
WP_DEBUG_LOG, which enable you to log these to a wp-
content/debug.log file.
• WP_DEBUG will often reveal potential problems in your
code, such as unchecked indexes and undefined variables.
The Log
• You can see that there is a lot of info here that
looks daunting, but it can be broken down
fairly simply.
• It’s found in your wp-content folder.
• The error messages will spell out where the
error is coming from, so you can figure out
your next steps.
Fix the problem
Get to it!
Don’t do any of this
live
• Make sure you have a backup of your site
• Perform all debugging (and updates and
everything else) on a staging site.
Undo how you broke it
• If you did something to break it, undo it
• This is why you should have a backup to roll
back to (if an update went awry, or your theme
has outdated templates, etc.)
Start in a vacuum
• Deactivate everything (all plugins except the
one that you have the issue with)
• Change the theme to the default WordPress
theme (currently 2016)
• Try to break it again
If it works
• Start reactivating plugins/theme until you find
the culprit, and leave that deactivated while
you contact the dev, etc.
If it doesn’t
• Try the exact setup on a completely different
site to narrow it down to server configurations
Google
• It’s not cheating. It’s how I know 95% of what I
do.
Prevent It
You don’t have to fix something that isn’t
broken.
Known Issues
• There are sometimes issues you will run into
that a lot of other people have experienced.
• Sometimes this is due to a bug that is fixed
fairly quickly by the developers.
Possibly Probable
• Some plugins and themes tend to cause a lot
of conflicts with other plugins or themes.
• The conflicting plugins aren’t necessarily
because they are badly written.
• A lot of times this happens because the
themes or plugins do a lot of things.
Use Good Code
• Pick plugins/themes with good support behind
them.
• A lot of times, this means premium code (you
might have to pay for it)
Hosting
• Never pick a host that starts you out on a PHP
version that is lower than 5.6
• This can cause a lot of issues.
@slash1andy
@WooCommerce
@Automattic

More Related Content

What's hot

Making WooCommerce Your Own
Making WooCommerce Your OwnMaking WooCommerce Your Own
Making WooCommerce Your OwnLeo Gopal
 
How to Install WordPress 2014 in cPanel
How to Install WordPress 2014 in cPanelHow to Install WordPress 2014 in cPanel
How to Install WordPress 2014 in cPanelKim Muellner
 
Hour 4
Hour 4Hour 4
Hour 4dpd
 
Blogging in Business Sector
Blogging in Business SectorBlogging in Business Sector
Blogging in Business Sectorcraig ross
 
Designing with Gutenberg - Las Lajas WordPress Meetup 2020
Designing with Gutenberg - Las Lajas WordPress Meetup 2020Designing with Gutenberg - Las Lajas WordPress Meetup 2020
Designing with Gutenberg - Las Lajas WordPress Meetup 2020Shanta Nathwani
 
How WPMaintain Improved Page Speed by 16%
How WPMaintain Improved Page Speed by 16%How WPMaintain Improved Page Speed by 16%
How WPMaintain Improved Page Speed by 16%WP Engine UK
 
5 unspoke rules of contributing to open source software
5 unspoke rules of contributing to open source software5 unspoke rules of contributing to open source software
5 unspoke rules of contributing to open source softwareMike Nelson
 
WordCamp Ottawa 2016: Updates
WordCamp Ottawa 2016: UpdatesWordCamp Ottawa 2016: Updates
WordCamp Ottawa 2016: Updatesthe___miked
 
DevoxxUK: Learning programming through osmosis
DevoxxUK: Learning programming through osmosisDevoxxUK: Learning programming through osmosis
DevoxxUK: Learning programming through osmosisMaaret Pyhäjärvi
 
Webinar: You Are Too Cheap!
Webinar: You Are Too Cheap! Webinar: You Are Too Cheap!
Webinar: You Are Too Cheap! WP Engine
 
Use Powershell to make your life easy.
Use Powershell to make your life easy.Use Powershell to make your life easy.
Use Powershell to make your life easy.Aman Dhally
 
WordPress Best Practices / Sh*t You Shouldn't Do
WordPress Best Practices / Sh*t You Shouldn't DoWordPress Best Practices / Sh*t You Shouldn't Do
WordPress Best Practices / Sh*t You Shouldn't DoKai Armstrong
 
Prototype that first
Prototype that first Prototype that first
Prototype that first Luxoft
 
How to use to build a website using WordPress: For normal people
How to use to build a website using WordPress: For normal peopleHow to use to build a website using WordPress: For normal people
How to use to build a website using WordPress: For normal peopleTris Hussey
 
Webinar: Myths, Mistakes and Management of WooCommerce at Scale
Webinar: Myths, Mistakes and Management of WooCommerce at ScaleWebinar: Myths, Mistakes and Management of WooCommerce at Scale
Webinar: Myths, Mistakes and Management of WooCommerce at ScaleWP Engine
 
15 Essential WordPress Plugins (and 5 That Will Just Blow Your Mind)
15 Essential WordPress Plugins (and 5 That Will Just Blow Your Mind)15 Essential WordPress Plugins (and 5 That Will Just Blow Your Mind)
15 Essential WordPress Plugins (and 5 That Will Just Blow Your Mind)Mykl Roventine
 
AJ Klein Capstone Presentation
AJ Klein Capstone PresentationAJ Klein Capstone Presentation
AJ Klein Capstone PresentationAlexander Klein
 
WordCamp Sac '16 - a full stack workflow
WordCamp Sac '16 - a full stack workflowWordCamp Sac '16 - a full stack workflow
WordCamp Sac '16 - a full stack workflowJonathan Trujillo
 

What's hot (20)

AgileTD Scandia: Mob Testing
AgileTD Scandia: Mob TestingAgileTD Scandia: Mob Testing
AgileTD Scandia: Mob Testing
 
Making WooCommerce Your Own
Making WooCommerce Your OwnMaking WooCommerce Your Own
Making WooCommerce Your Own
 
How to Install WordPress 2014 in cPanel
How to Install WordPress 2014 in cPanelHow to Install WordPress 2014 in cPanel
How to Install WordPress 2014 in cPanel
 
Hour 4
Hour 4Hour 4
Hour 4
 
Blogging in Business Sector
Blogging in Business SectorBlogging in Business Sector
Blogging in Business Sector
 
Designing with Gutenberg - Las Lajas WordPress Meetup 2020
Designing with Gutenberg - Las Lajas WordPress Meetup 2020Designing with Gutenberg - Las Lajas WordPress Meetup 2020
Designing with Gutenberg - Las Lajas WordPress Meetup 2020
 
How WPMaintain Improved Page Speed by 16%
How WPMaintain Improved Page Speed by 16%How WPMaintain Improved Page Speed by 16%
How WPMaintain Improved Page Speed by 16%
 
5 unspoke rules of contributing to open source software
5 unspoke rules of contributing to open source software5 unspoke rules of contributing to open source software
5 unspoke rules of contributing to open source software
 
WordCamp Ottawa 2016: Updates
WordCamp Ottawa 2016: UpdatesWordCamp Ottawa 2016: Updates
WordCamp Ottawa 2016: Updates
 
DevoxxUK: Learning programming through osmosis
DevoxxUK: Learning programming through osmosisDevoxxUK: Learning programming through osmosis
DevoxxUK: Learning programming through osmosis
 
Webinar: You Are Too Cheap!
Webinar: You Are Too Cheap! Webinar: You Are Too Cheap!
Webinar: You Are Too Cheap!
 
Use Powershell to make your life easy.
Use Powershell to make your life easy.Use Powershell to make your life easy.
Use Powershell to make your life easy.
 
WordPress Best Practices / Sh*t You Shouldn't Do
WordPress Best Practices / Sh*t You Shouldn't DoWordPress Best Practices / Sh*t You Shouldn't Do
WordPress Best Practices / Sh*t You Shouldn't Do
 
Prototype that first
Prototype that first Prototype that first
Prototype that first
 
How to use to build a website using WordPress: For normal people
How to use to build a website using WordPress: For normal peopleHow to use to build a website using WordPress: For normal people
How to use to build a website using WordPress: For normal people
 
Webinar: Myths, Mistakes and Management of WooCommerce at Scale
Webinar: Myths, Mistakes and Management of WooCommerce at ScaleWebinar: Myths, Mistakes and Management of WooCommerce at Scale
Webinar: Myths, Mistakes and Management of WooCommerce at Scale
 
From Zero To WordPress
From Zero To WordPressFrom Zero To WordPress
From Zero To WordPress
 
15 Essential WordPress Plugins (and 5 That Will Just Blow Your Mind)
15 Essential WordPress Plugins (and 5 That Will Just Blow Your Mind)15 Essential WordPress Plugins (and 5 That Will Just Blow Your Mind)
15 Essential WordPress Plugins (and 5 That Will Just Blow Your Mind)
 
AJ Klein Capstone Presentation
AJ Klein Capstone PresentationAJ Klein Capstone Presentation
AJ Klein Capstone Presentation
 
WordCamp Sac '16 - a full stack workflow
WordCamp Sac '16 - a full stack workflowWordCamp Sac '16 - a full stack workflow
WordCamp Sac '16 - a full stack workflow
 

Similar to Debugging WordPress for Site Owners

Troubleshooting WordPress
Troubleshooting WordPressTroubleshooting WordPress
Troubleshooting WordPressNile Flores
 
Getting Help With Your WordPress Site
Getting Help With Your WordPress SiteGetting Help With Your WordPress Site
Getting Help With Your WordPress SiteAndrew Wikel
 
Becoming A WordPress Beta Tester
Becoming A WordPress Beta TesterBecoming A WordPress Beta Tester
Becoming A WordPress Beta TesterKim Parsell
 
WordPress Plugins and Security
WordPress Plugins and SecurityWordPress Plugins and Security
WordPress Plugins and SecurityThink Media Inc.
 
Learning Joomla! in a weekend (for developers)
Learning Joomla! in a weekend (for developers)Learning Joomla! in a weekend (for developers)
Learning Joomla! in a weekend (for developers)Valentin Despa
 
WordCamp Pokhara - Contributing to the WordPress Repository in a smart Way
WordCamp Pokhara - Contributing to the WordPress Repository in a smart WayWordCamp Pokhara - Contributing to the WordPress Repository in a smart Way
WordCamp Pokhara - Contributing to the WordPress Repository in a smart WayMizanur Rahaman Mizan
 
3 Steps to Maintain & Cleanse your WordPress site
3 Steps to Maintain & Cleanse your WordPress site3 Steps to Maintain & Cleanse your WordPress site
3 Steps to Maintain & Cleanse your WordPress sitePaul Cook
 
Your first word press site
Your first word press siteYour first word press site
Your first word press siteMarc Gratch
 
11 rules for programmer should live by
11 rules for programmer should live by11 rules for programmer should live by
11 rules for programmer should live byYe Win
 
WordPress Security Essentials
WordPress Security EssentialsWordPress Security Essentials
WordPress Security EssentialsAngela Bowman
 
Bootstrap + Drupal Commerce in less than 45 minutes!
Bootstrap + Drupal Commerce in less than 45 minutes!Bootstrap + Drupal Commerce in less than 45 minutes!
Bootstrap + Drupal Commerce in less than 45 minutes!Jorge Diaz
 
Keeping Your Joomla! Site Secure
Keeping Your Joomla! Site SecureKeeping Your Joomla! Site Secure
Keeping Your Joomla! Site Securejoomladayhouston
 
Good WordPress Gone Bad – How To Troubleshoot WordPress When Things Go Wrong
Good WordPress Gone Bad – How To Troubleshoot WordPress When Things Go WrongGood WordPress Gone Bad – How To Troubleshoot WordPress When Things Go Wrong
Good WordPress Gone Bad – How To Troubleshoot WordPress When Things Go WrongDamon Schopen
 
Maintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress DeveloperMaintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress DeveloperDevinVinson
 

Similar to Debugging WordPress for Site Owners (20)

Troubleshooting WordPress
Troubleshooting WordPressTroubleshooting WordPress
Troubleshooting WordPress
 
I Have My WordPress Site Now What?
I Have My WordPress Site Now What?I Have My WordPress Site Now What?
I Have My WordPress Site Now What?
 
Getting Help With Your WordPress Site
Getting Help With Your WordPress SiteGetting Help With Your WordPress Site
Getting Help With Your WordPress Site
 
Git Makes Me Angry Inside
Git Makes Me Angry InsideGit Makes Me Angry Inside
Git Makes Me Angry Inside
 
Blogging basics 101.pptx
Blogging basics 101.pptxBlogging basics 101.pptx
Blogging basics 101.pptx
 
Becoming A WordPress Beta Tester
Becoming A WordPress Beta TesterBecoming A WordPress Beta Tester
Becoming A WordPress Beta Tester
 
WordPress Plugins and Security
WordPress Plugins and SecurityWordPress Plugins and Security
WordPress Plugins and Security
 
Learning Joomla! in a weekend (for developers)
Learning Joomla! in a weekend (for developers)Learning Joomla! in a weekend (for developers)
Learning Joomla! in a weekend (for developers)
 
WordCamp Pokhara - Contributing to the WordPress Repository in a smart Way
WordCamp Pokhara - Contributing to the WordPress Repository in a smart WayWordCamp Pokhara - Contributing to the WordPress Repository in a smart Way
WordCamp Pokhara - Contributing to the WordPress Repository in a smart Way
 
3 Steps to Maintain & Cleanse your WordPress site
3 Steps to Maintain & Cleanse your WordPress site3 Steps to Maintain & Cleanse your WordPress site
3 Steps to Maintain & Cleanse your WordPress site
 
Your first word press site
Your first word press siteYour first word press site
Your first word press site
 
11 rules for programmer should live by
11 rules for programmer should live by11 rules for programmer should live by
11 rules for programmer should live by
 
Creating a
Creating a Creating a
Creating a
 
WordPress Security Essentials
WordPress Security EssentialsWordPress Security Essentials
WordPress Security Essentials
 
Bootstrap + Drupal Commerce in less than 45 minutes!
Bootstrap + Drupal Commerce in less than 45 minutes!Bootstrap + Drupal Commerce in less than 45 minutes!
Bootstrap + Drupal Commerce in less than 45 minutes!
 
Blogging presentation
Blogging presentationBlogging presentation
Blogging presentation
 
Keeping Your Joomla! Site Secure
Keeping Your Joomla! Site SecureKeeping Your Joomla! Site Secure
Keeping Your Joomla! Site Secure
 
Good WordPress Gone Bad – How To Troubleshoot WordPress When Things Go Wrong
Good WordPress Gone Bad – How To Troubleshoot WordPress When Things Go WrongGood WordPress Gone Bad – How To Troubleshoot WordPress When Things Go Wrong
Good WordPress Gone Bad – How To Troubleshoot WordPress When Things Go Wrong
 
Best practices 101
Best practices 101Best practices 101
Best practices 101
 
Maintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress DeveloperMaintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress Developer
 

Recently uploaded

定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 

Recently uploaded (20)

定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 

Debugging WordPress for Site Owners

  • 2.
  • 3. My Background • I love WordPress • I’ve been working with it since 2008 • I worked for a non-profit for 7 years before coming to WooThemes, and then Automattic • I work in support for WooCommerce at Automattic
  • 4. - Robert Burns “…The best-laid schemes o' mice an ‘men…”
  • 6. - Lord Melbourne “…the possession of great power necessarily implies great responsibility.”
  • 7. Your face when your site white screens It’s going to be OK. Breathe.
  • 8. Calm Your first instinct will be to panic, but you’re not doing anyone favors with that.
  • 9. Find the problem It’s often buried *just* under the surface
  • 10. Questions to ask • When exactly did you first notice the problem? • Have any updates been applied to your website recently? • Have you changed themes or made any design changes? • Have you installed any new plugins? • Is your problem happening in one browser, or all of them? • Do you see any specific error messages?
  • 12. Still not seeing anything? • Go to the page and use Firebug/Chrome Dev tools to look for anything out of the ordinary. • WP_DEBUG
  • 13.
  • 14. WP_DEBUG • This constant is an amazing tool that can really clue you in to what’s going on in your site. You’ll start seeing PHP notices and also WordPress-generated debug messages, particularly deprecated function usage. • There’s also WP_DEBUG_DISPLAY and WP_DEBUG_LOG, which enable you to log these to a wp- content/debug.log file. • WP_DEBUG will often reveal potential problems in your code, such as unchecked indexes and undefined variables.
  • 15.
  • 16. The Log • You can see that there is a lot of info here that looks daunting, but it can be broken down fairly simply. • It’s found in your wp-content folder. • The error messages will spell out where the error is coming from, so you can figure out your next steps.
  • 18. Don’t do any of this live • Make sure you have a backup of your site • Perform all debugging (and updates and everything else) on a staging site.
  • 19. Undo how you broke it • If you did something to break it, undo it • This is why you should have a backup to roll back to (if an update went awry, or your theme has outdated templates, etc.)
  • 20. Start in a vacuum • Deactivate everything (all plugins except the one that you have the issue with) • Change the theme to the default WordPress theme (currently 2016) • Try to break it again
  • 21. If it works • Start reactivating plugins/theme until you find the culprit, and leave that deactivated while you contact the dev, etc.
  • 22. If it doesn’t • Try the exact setup on a completely different site to narrow it down to server configurations
  • 23. Google • It’s not cheating. It’s how I know 95% of what I do.
  • 24. Prevent It You don’t have to fix something that isn’t broken.
  • 25. Known Issues • There are sometimes issues you will run into that a lot of other people have experienced. • Sometimes this is due to a bug that is fixed fairly quickly by the developers.
  • 26. Possibly Probable • Some plugins and themes tend to cause a lot of conflicts with other plugins or themes. • The conflicting plugins aren’t necessarily because they are badly written. • A lot of times this happens because the themes or plugins do a lot of things.
  • 27. Use Good Code • Pick plugins/themes with good support behind them. • A lot of times, this means premium code (you might have to pay for it)
  • 28. Hosting • Never pick a host that starts you out on a PHP version that is lower than 5.6 • This can cause a lot of issues.
  • 29.

Editor's Notes

  1. It’s also a requirement that you include cat pictures, but that’s not really my style, so here is a picture of my Airedale.
  2. Ask about people using free plugins Free themes paid plugin free plugins Ask them about a site that might be having issues
  3. I feel your pain, Ben.
  4. You are in your best state of mind, and will do the most good while calm.
  5. The list above seems rather extensive, but typically if you think about it for a little bit, one or 2 will stick out at you.
  6. Tell them the story of the social blocker and submitting a ticket over the sharing feature not working on a news site.
  7. So once you have your site all backed up, and you’re working and testing on the staging site, we can move to next step.
  8. If you didn’t do anything/can’t find anything easy like that.
  9. An Ounce of prevention is worth a pound of cure
  10. This is fairly broad, and I’m really not going to get a whole lot into this, but use good code. The most important part of this is making sure that the plugins are supported well, and especially have regular updates. If a plugin is not updated regularly, then you run risks with security, as well as compatibility. Premium code means that the authors have a very good reason (money) to provide support/updates, and stay on top of security vulnerabilities, etc. This is not disparaging the many awesome themes and plugins out there that are free, but just make sure that you vet the code.
  11. Well this is about the end of the presentation. Thanks for joining me.