Emergency WordPress Troubleshooting

Emergency 

WordPress
Troubleshooting
WordPress DC Meetup
November 20, 2018
1
Tiffany Bridge

Automattic
Who am I?
Who Are You?
Session Goals
• Understand the use of basic technical tools for
troubleshooting
• Understand the basic components of WordPress
• Identify emergency troubleshooting techniques
• Identify basic preventative maintenance items
• Anticipate current WordPress issues
Your Emergency
Toolkit
Browser Developer Tools
Text Editor
FTP Client
PHP MyAdmin
And finally, your friend
and mine…
WordPress 101
The Best Thing About
WordPress…
The Worst Thing About
WordPress…
WordPress.com
WordPress.org
WordPress.com
WordPress.org
Anatomy of a WordPress
Site
Core
WordPress
Theme

(CSS/HTML/

PHP/JS)
Database

(Usually MySQL)
Plugins
Key WordPress Files
Emergency WordPress Troubleshooting
wp-config.php
Common WordPress
Emergencies
Oh $#&^, I’ve Been
Hacked!
“But what would a hacker
want with my site?”
Photo Credits: 

Bitcoin Image courtesy Andre Francois via unsplash.com

Bot image courtesy Alex Knight vis unsplash.com

Spam Wall via Flickr user freezelight, via Creative Commons License
And now… statistics!
Small business websites are attacked 

on average 58 times per day
Source: SiteLock Security
70% of WordPress sites have an exploitable vulnerability
Source: Sucuri
How do I know I’ve been
hacked?
Cleaning Up a Hack
Scan for Malware
Clean Infected Files
By Hand
…or Restore From Backup
You do have backups, don’t you?
Then Lock ‘em Out!
Remember our old friend, wp-config.php?
(We call this the White Screen of Death.)
Causes of the WSOD
• PHP has run out of memory
• Failed core/plugins update has caused instability
• Database errors
• Theme problems
First Things First
Is WordPress able to load?
yourdomain.com/wp-admin/
What were you doing
when the WSOD started?
Try the easy stuff first.
• Migrating the site? Check the database for
references to the development URL. (phpMyAdmin
or a DB search-and-replace plugin)
• Updating plugins/themes? Disable the ones you just
updated.
• Editing a file? Check your syntax, or undo your
change.
• Caching plugin? Try dumping cache.
If your /wp-admin/ looks
like this:
Emergency WordPress Troubleshooting
Enable Debug Mode
Find/set in your wp-config.php 

and see ALL THE ERROR MESSAGES
What do we do with error
messages?
On-Page Errors
Try the easy stuff first.
• Migrating the site? Check the database for
references to the development URL. (phpMyAdmin
or a DB search-and-replace plugin)
• Updating plugins/themes? Disable the ones you just
updated.
• Editing a file? Check your syntax, or undo your
change.
• Caching plugin? Try dumping cache.
Developer Tools
Other Things to Check
• Are your plugins still being supported/updated?
(Especially the free ones)
• Check PHP version compatibility
Preventative
Maintenance
An ounce of prevention is worth hours of Googling error messages.
- Ancient WordPress Proverb
Above all else…
WordPress Backups
And then…
• Security/malware scanning plugin
• Caching plugin
• Regular update schedule
• WordPress hardening techniques
• 2-Factor Authentication
Security Plugins
Caching Plugins
A Word About

Plugin Hygiene
• Is it regularly updated/
tested?
• How does the plugin
creator make money?
(Free is often expensive)
Update on a Schedule
Hardening WordPress
• Move wp-config.php to one level above web root
and CHMOD 600
• Use .htaccess to deny access to files in install
directory, /wp-includes/, and /wp-content/
directories
• Use a plugin to move the location of the login and
wp-admin pages
• Make sure all users have nicknames set and no
actual usernames are displayed on the site
Two-Factor
Authentication
1. Decide on your second factor: Google, Yubikey,
Authy, SMS, phone call, or user’s choice?
2. Pick the 2FA plugin that supports it
3. Install it
Choosing a Host
Friends don’t let friends use cheap shared
hosting
Key Features
• Regular, automatic backups (you should still do your
own)
• One-click staging sites
• Automatic WordPress core updates
• Let’s Encrypt SSL support included
• BONUS: Automated migration tools
This Year’s
Emergencies
All the (foreseeable) ways your site can break in
2018
NEXT WEEK: 

WordPress 5.0 & Gutenberg
Current/“Classic” Editor
WordPress 2.1, 2007
Blocks Editor - “Gutenberg”
Solution: 

Start Testing Now
• Install Gutenberg plugin on a staging site and start
checking posts and pages
• Pay particular attention to any plugins that augment
the native editor- they may break
• Install the Classic Editor plugin to be sure you’re
covered while you work on a migration plan
December 2018: PHP 5
Support Ends
Solution: Start Testing on
PHP 7
• Plugin: PHP Compatibility Checker
• Update your staging site’s PHP version, if possible
• Or, set up a local staging environment to test
Have the Cavalry on
Speed-Dial
Know Who To Call
• Specialist hosts (Pressable, WP Engine, SiteGround)
• Maintenance companies (WP Buffs, GoWP)
• WordPress Consultants
Questions?
Where to find me
• Twitter: @tiffany
• Email: tiffany@baxbridge.com
• Blog: tiff.is
• LinkedIn: https://www.linkedin.com/in/tbaxbridge/
• WordPress Slack: @baxbridge
1 of 68

Recommended

WordPress Security Basics - Melbourne WordPress User Meetup by
WordPress Security Basics - Melbourne WordPress User MeetupWordPress Security Basics - Melbourne WordPress User Meetup
WordPress Security Basics - Melbourne WordPress User MeetupChris Burgess
4.6K views34 slides
FL Blog Con 2015: How To Find The Best WordPress Plugins For You by
FL Blog Con 2015: How To Find The Best WordPress Plugins For YouFL Blog Con 2015: How To Find The Best WordPress Plugins For You
FL Blog Con 2015: How To Find The Best WordPress Plugins For YouAdam Soucie
811 views22 slides
10 Ways to Speed Up and Secure your WP Site by
10 Ways to Speed Up and Secure your WP Site10 Ways to Speed Up and Secure your WP Site
10 Ways to Speed Up and Secure your WP SiteFLBlogCon
678 views14 slides
Let’s write a plugin by
Let’s write a pluginLet’s write a plugin
Let’s write a pluginBrian Layman
912 views17 slides
Blog World 2010 - How to Keep Your Blog from Being Hacked by
Blog World 2010 - How to Keep Your Blog from Being HackedBlog World 2010 - How to Keep Your Blog from Being Hacked
Blog World 2010 - How to Keep Your Blog from Being HackedBrian Layman
923 views22 slides
Neo word press meetup ehermits - how to keep your blog from being hacked 2012 by
Neo word press meetup   ehermits - how to keep your blog from being hacked 2012Neo word press meetup   ehermits - how to keep your blog from being hacked 2012
Neo word press meetup ehermits - how to keep your blog from being hacked 2012Brian Layman
962 views22 slides

More Related Content

What's hot

WordPress Security by
WordPress SecurityWordPress Security
WordPress SecurityNathan Platt
61 views17 slides
WordPress Server Security by
WordPress Server SecurityWordPress Server Security
WordPress Server SecurityPeter Baylies
2K views18 slides
Setup and run wordpress: 201 by
Setup and run wordpress: 201Setup and run wordpress: 201
Setup and run wordpress: 201wordpresswebmaster
385 views94 slides
Staying Connected: Securing Your WordPress Website by
Staying Connected: Securing Your WordPress WebsiteStaying Connected: Securing Your WordPress Website
Staying Connected: Securing Your WordPress WebsiteRaymund Mitchell
1.9K views24 slides
Managing WordPress by
Managing WordPressManaging WordPress
Managing WordPressSteven Watts
463 views30 slides
WebHosting Performance / WordPress - Pubcon Vegas - Hendison by
WebHosting Performance / WordPress  - Pubcon Vegas - HendisonWebHosting Performance / WordPress  - Pubcon Vegas - Hendison
WebHosting Performance / WordPress - Pubcon Vegas - HendisonSearch Commander, Inc.
827 views38 slides

What's hot(20)

Staying Connected: Securing Your WordPress Website by Raymund Mitchell
Staying Connected: Securing Your WordPress WebsiteStaying Connected: Securing Your WordPress Website
Staying Connected: Securing Your WordPress Website
Raymund Mitchell1.9K views
WebHosting Performance / WordPress - Pubcon Vegas - Hendison by Search Commander, Inc.
WebHosting Performance / WordPress  - Pubcon Vegas - HendisonWebHosting Performance / WordPress  - Pubcon Vegas - Hendison
WebHosting Performance / WordPress - Pubcon Vegas - Hendison
A Beginner's Guide to WordPress - WordCamp Toronto 2012 by Kathryn Presner
A Beginner's Guide to WordPress - WordCamp Toronto 2012A Beginner's Guide to WordPress - WordCamp Toronto 2012
A Beginner's Guide to WordPress - WordCamp Toronto 2012
Kathryn Presner3.5K views
WordPress Security Basics by Ryan Plas
WordPress Security BasicsWordPress Security Basics
WordPress Security Basics
Ryan Plas171 views
WordPress Site Management - Keeping Your Creation Happy, Healthy and Secure by Meagan Hanes
WordPress Site Management - Keeping Your Creation Happy, Healthy and SecureWordPress Site Management - Keeping Your Creation Happy, Healthy and Secure
WordPress Site Management - Keeping Your Creation Happy, Healthy and Secure
Meagan Hanes630 views
WordPress for Beginners - West Island Women's Centre by Kathryn Presner
WordPress for Beginners - West Island Women's CentreWordPress for Beginners - West Island Women's Centre
WordPress for Beginners - West Island Women's Centre
Kathryn Presner3.8K views
A Beginner's Guide to WordPress - Podcamp Toronto 2012 by Kathryn Presner
A Beginner's Guide to WordPress - Podcamp Toronto 2012A Beginner's Guide to WordPress - Podcamp Toronto 2012
A Beginner's Guide to WordPress - Podcamp Toronto 2012
Kathryn Presner3.3K views
WordPress Security Essentials by Angela Bowman
WordPress Security EssentialsWordPress Security Essentials
WordPress Security Essentials
Angela Bowman947 views
Securing your WordPress site in 5 easy pieces by Kevin Koehler
Securing your WordPress site in 5 easy piecesSecuring your WordPress site in 5 easy pieces
Securing your WordPress site in 5 easy pieces
Kevin Koehler995 views
WordPress Setup and Security (Please look for the newer version!) by Michael Carnell
WordPress Setup and Security (Please look for the newer version!)WordPress Setup and Security (Please look for the newer version!)
WordPress Setup and Security (Please look for the newer version!)
Michael Carnell724 views
WordPress Essentials for Beginners - YES Montreal December 2014 by Kathryn Presner
WordPress Essentials for Beginners - YES Montreal December 2014WordPress Essentials for Beginners - YES Montreal December 2014
WordPress Essentials for Beginners - YES Montreal December 2014
Kathryn Presner1.2K views
Passionate About Plugins - WordCamp Montreal 2012 by Kathryn Presner
Passionate About Plugins - WordCamp Montreal 2012Passionate About Plugins - WordCamp Montreal 2012
Passionate About Plugins - WordCamp Montreal 2012
Kathryn Presner1.2K views
8 Ways to Hack a WordPress website by SiteGround.com
8 Ways to Hack a WordPress website8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website
SiteGround.com204.8K views
A Beginner’s Guide to Wordpress - WordCamp Toronto 2011 by Kathryn Presner
A Beginner’s Guide to Wordpress - WordCamp Toronto 2011A Beginner’s Guide to Wordpress - WordCamp Toronto 2011
A Beginner’s Guide to Wordpress - WordCamp Toronto 2011
Kathryn Presner3.8K views

Similar to Emergency WordPress Troubleshooting

WordPress Security and Best Practices by
WordPress Security and Best PracticesWordPress Security and Best Practices
WordPress Security and Best PracticesRobert Vidal
1.1K views25 slides
I Have My WordPress Site Now What? by
I Have My WordPress Site Now What?I Have My WordPress Site Now What?
I Have My WordPress Site Now What?Michele Butcher-Jones
595 views44 slides
WordPress Resources Nov 2014 by
WordPress Resources Nov 2014WordPress Resources Nov 2014
WordPress Resources Nov 2014Judy Wilson
447 views20 slides
WordPress Intermediate Workshop by
WordPress Intermediate WorkshopWordPress Intermediate Workshop
WordPress Intermediate WorkshopThe Toolbox, Inc.
2K views29 slides
Demystifying WordPress by
Demystifying WordPressDemystifying WordPress
Demystifying WordPressMykl Roventine
777 views117 slides
From WordPress With Love by
From WordPress With LoveFrom WordPress With Love
From WordPress With LoveUp2 Technology
2.7K views36 slides

Similar to Emergency WordPress Troubleshooting(20)

WordPress Security and Best Practices by Robert Vidal
WordPress Security and Best PracticesWordPress Security and Best Practices
WordPress Security and Best Practices
Robert Vidal1.1K views
WordPress Resources Nov 2014 by Judy Wilson
WordPress Resources Nov 2014WordPress Resources Nov 2014
WordPress Resources Nov 2014
Judy Wilson447 views
WordCamp Boston WordPress plugins-8-2014 by The Toolbox, Inc.
WordCamp Boston WordPress plugins-8-2014WordCamp Boston WordPress plugins-8-2014
WordCamp Boston WordPress plugins-8-2014
The Toolbox, Inc.1.4K views
Battling the WSOD - A Tech Support Tale by Kayleigh Thorpe
Battling the WSOD - A Tech Support TaleBattling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support Tale
Kayleigh Thorpe127 views
How to create a WordPress Site by MuhammadUsaid2
How to create a WordPress Site How to create a WordPress Site
How to create a WordPress Site
MuhammadUsaid232 views
15 Essential WordPress Plugins by Mykl Roventine
15 Essential WordPress Plugins15 Essential WordPress Plugins
15 Essential WordPress Plugins
Mykl Roventine1.9K views
WordPress Security by Ivan Storck
WordPress SecurityWordPress Security
WordPress Security
Ivan Storck528 views
Up and Running with WordPress - Site Shack Nashville Web Design by Judy Wilson
Up and Running with WordPress - Site Shack Nashville Web DesignUp and Running with WordPress - Site Shack Nashville Web Design
Up and Running with WordPress - Site Shack Nashville Web Design
Judy Wilson770 views
Maintaining Retainers as a WordPress Developer by DevinVinson
Maintaining Retainers as a WordPress DeveloperMaintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress Developer
DevinVinson1.3K views

Recently uploaded

Marketing and Community Building in Web3 by
Marketing and Community Building in Web3Marketing and Community Building in Web3
Marketing and Community Building in Web3Federico Ast
15 views64 slides
hamro digital logics.pptx by
hamro digital logics.pptxhamro digital logics.pptx
hamro digital logics.pptxtupeshghimire
11 views36 slides
Amine el bouzalimi by
Amine el bouzalimiAmine el bouzalimi
Amine el bouzalimiAmine EL BOUZALIMI
5 views38 slides
cis5-Project-11a-Harry Lai by
cis5-Project-11a-Harry Laicis5-Project-11a-Harry Lai
cis5-Project-11a-Harry Laiharrylai126
9 views11 slides
How to think like a threat actor for Kubernetes.pptx by
How to think like a threat actor for Kubernetes.pptxHow to think like a threat actor for Kubernetes.pptx
How to think like a threat actor for Kubernetes.pptxLibbySchulze1
7 views33 slides
Affiliate Marketing by
Affiliate MarketingAffiliate Marketing
Affiliate MarketingNavin Dhanuka
20 views30 slides

Recently uploaded(10)

Emergency WordPress Troubleshooting