SlideShare a Scribd company logo
1
2
Helpful links:
● WPCampus - Video Presentation on WordPress Troubleshooting
Today we will cover the following topics:
● How to Backup Your Site
● Changing WordPress Passwords
● Enable WordPress Debugging
● Testing Plugins
● Testing Themes
● Troubleshooting Email Issues
● Why Is My Site Slow?
● Troubleshooting Database Errors
● 404 Errors, Redirect Problems, URL Issues
● Exhausted Memory, Memory Limit Errors
3
4
● Backup using a plugin
○ All-in-One WP Migration
○ Updraft Plus
○ Total Upkeep
● Backup using hosting tool
○ cPanel
○ Softaculous
● Backup manually
○ Files
○ Database
● Backup with web host service
How to Backup Your Site
Helpful links:
● WordPress Backups – Protect Your WordPress Website
5
6
● Reset via email
○ Using the “Lost your password” link on the login page.
● Reset in database
○ wp_users table
■ Can change password using MD5
■ Can change user email then request the “Lost password” email
● Reset via FTP
○ wp_set_password function (advanced users)
How to Change Passwords
Helpful links:
● How to Reset your WordPress Admin Password
7
8
1. Edit wp-config.php file
2. Add the following lines to your wp-config.php file:
define( 'WP_DEBUG', true );
define( 'SCRIPT_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
● 1st line will cause WordPress to display any errors from PHP
functions that are built into WordPress.
● 2nd line will display any errors for WordPress' built-in JavaScript
and CSS.
● 3rd line will save errors to a debug.log file in the “/wp-content”
folder.
Note: There are also plugins for enabling debugging
How to Enable WordPress Debugging
9
Keep in mind that your web host may have other error logs that
you can check. These can provide additional evidence and clues
into the cause of your issues. Here are some examples:
● cPanel Error Log
● MySQL Error Log
● NGINX Error Log
Helpful links:
● How to Enable WordPress Debugging
Other Error Logs
Helpful links:
● How to Enable WordPress Debugging
10
11
A wide range of problems can be caused by plugin/theme issues.
Since they are created by different 3rd party developers there can
be compatibility issues.
Some developers may not update their plugin/theme often, or at
all. This can cause them to deprecate over time as WordPress
updates are released. Since they may no longer be compatible with
new feature releases or coding changes.
Why Test Plugins/Themes?
12
● Check that plugins are up-to-date.
● Disable one-by-one in the Dashboard. Plugins->Deactivate
○ Time-consuming
○ Requires Dashboard access
or
● Rename the /wp-content/plugins folder
○ Fast since it immediately disables all plugins
○ Some plugins may not re-enable when naming the folder back
How to Test Plugins
13
How to Rename the Plugins folder
1. Open /wp-content folder
a. Rename /plugins folder to plugins.bak
b. or open the /plugins folder and rename the specific plugin folder
Note: You may have to manually enable the plugins after performing this test.
Helpful links:
● How to Update WordPress Plugins
● How to Disable WordPress Plugins
14
15
How to Test Themes
● Check for theme updates
● Change to a default WordPress theme in the dashboard
○ Appearance->Themes->Activate
● Default themes, include:
○ Twenty Twenty One, Twenty Twenty
● Don’t have Dashboard access?
○ Rename the current theme in the /wp-content/themes/XXXX folder should
cause it to revert to a default theme.
Helpful links:
● How to Update a WordPress Theme
● How to Change a WordPress Theme
16
17
How to Troubleshoot Email
If you are missing form submissions or other WordPress related
alerts that should be sent over email, here are some things you can
check:
● Admin Email setting in the Dashboard
● Server’s Mail logs
○ Can check the EXIM log directly with SSH
○ Can check with a plugin such as WP Mail Logging
18
Other Email Tests
● Install an SMTP plugin.
● Verify the settings are correct by accessing email/Webmail with
them.
Helpful links:
● View full summary of mail activity from the Exim mail log
● How to Use the WP Mail Logging Plugin for WordPress
● Learn How to Install and Use the WP Mail SMTP Plugin
19
20
Bad User Experience!
If a site takes too long to load, a potential customer will probably
bounce.
Bounce (loosely defined): to leave a slow website in frustration and
never return.
Visitor may get the impression the site is not properly optimized
and (possibly) less secure.
A customer getting a bad impression of your site can be disastrous
for e-commerce.
Why Is a Slow Site Bad?
21
Things That Can Slow Down a Site
● No Site Caching
● Slow Scripts loading
● Large Images
● Outdated Plugin
● Outdated Theme
● Hack/Attack (DDOS)
● Routing Issues (Network outage)
● Large sudden influx of traffic
● Hosting environment that is not optimized for WordPress sites
22
Site Optimization Best Practices
● Utilize site caching
● Move slow scripts to the bottom of the page
● Optimize Images
● Test Plugins
● Test Themes
● Use security best practices
● Address routing issues with host or ISP
● Use a CDN (or servers that are closer to your visitors)
● Upgrade your hosting plan
● Get WordPress Optimized Hosting plan
23
24
Error Establishing a Database Connection
● Verify your database settings are accurate
○ Database name - DB_NAME
○ Database user - DB_USER
○ Database password - DB_PASSWORD
○ Database hostname - DB_HOST
● Does database user have permission to access the database?
● Create a new user and give permission to access the database
Helpful links:
● WordPress - “Error Establishing a Database Connection”
25
Corrupt Database
● Repair it via SSH using WP-CLI
● Repair it using mysqlcheck
● Repair it via hosting tool
○ cPanel
Helpful links:
● Check and Repair Database with WP-CLI
● How to Check and Repair a Database in phpMyAdmin
26
27
Reset Permalinks
Why?
404 errors, redirect problems, URL issues
What does it do?
Adds the rules back to the .htaccess file
28
How to Reset Permalinks
1. Click Settings then Permalinks in the Dashboard.
2. Remember or save the current setting.
3. Choose a different setting, then click the Save Changes button.
4. Now select your original setting, and click the Save Changes
button again.
Note: You may have to clear your browser cache before testing.
Helpful links:
● How to Reset WordPress Permalinks
29
About .htaccess
● What is an .htaccess file?
○ Hidden file that handles rewrites and redirects
● Some common uses of the .htaccess file would be restricting
access to certain files or redirecting URLs.
● WordPress relies on .htaccess rules, so adding rules directly can
interfere with how it works.
● Plugins can add rules to .htaccess file
● How to test an .htaccess file?
○ Rename it!
30
How to rename an .htaccess file
● Locate and rename the .htaccess to .htaccess.old and reload the
website. If the site loads you know the issue is caused by a rule in
the .htaccess file.
Keep in mind there may be other .htaccess files in a parent
directory (can inherit rules).
Helpful links:
● Reset the .htaccess File to Troubleshoot WordPress PHP Errors
31
32
1. Create a file such as: phpinfo.php
2. Enter the following code and save:
<? phpinfo(); ?>
3. Visit the file in your browser:
example.com/phpinfo.php
View PHP Settings with phpinfo Page
Helpful links:
● How to Create a phpinfo Page to View Your PHP Settings
33
● Change settings in php.ini file -
○ Edit the php.ini file and adjust the value for:
■ max_execution_time
■ max_input_time
■ memory_limit
■ upload_max_filesize
● Change settings with a plugin
Change PHP Settings
Helpful links:
● How to Change PHP Settings in your Hosting Account
34
35
36
37

More Related Content

What's hot

JS digest. Decemebr 2017
JS digest. Decemebr 2017JS digest. Decemebr 2017
JS digest. Decemebr 2017
ElifTech
 
Magento Performance Improvements with Client Side Optimizations
Magento Performance Improvements with Client Side OptimizationsMagento Performance Improvements with Client Side Optimizations
Magento Performance Improvements with Client Side Optimizations
PINT Inc
 
WordPress Performance optimization
WordPress Performance optimizationWordPress Performance optimization
WordPress Performance optimization
Brecht Ryckaert
 
Magento 2 performance - a benchmark
Magento 2 performance - a benchmarkMagento 2 performance - a benchmark
Magento 2 performance - a benchmark
Byte
 
Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!
WordCamp Cape Town
 
How to set up a Wordpress Blog
How to set up a Wordpress BlogHow to set up a Wordpress Blog
How to set up a Wordpress Blog
kichu
 
Piecing Together the WordPress Puzzle
Piecing Together the WordPress PuzzlePiecing Together the WordPress Puzzle
Piecing Together the WordPress Puzzle
Business Vitality LLC
 
Web Browsers - Their Main working
Web Browsers - Their Main workingWeb Browsers - Their Main working
Web Browsers - Their Main working
Yougourta AIT SAADA
 
Phpworld.2015 scaling magento
Phpworld.2015 scaling magentoPhpworld.2015 scaling magento
Phpworld.2015 scaling magento
Mathew Beane
 
I Can Haz More Performanz?
I Can Haz More Performanz?I Can Haz More Performanz?
I Can Haz More Performanz?
Andy Melichar
 
How to Clear WordPress Cache?
How to Clear WordPress Cache?How to Clear WordPress Cache?
How to Clear WordPress Cache?
HTS Hosting
 
Magento Performance Optimization 101
Magento Performance Optimization 101Magento Performance Optimization 101
Magento Performance Optimization 101
Angus Li
 
Introduction to WordPress Security
Introduction to WordPress SecurityIntroduction to WordPress Security
Introduction to WordPress Security
Nile Flores
 
Automatic testing and quality assurance for WordPress plugins and themes
Automatic testing and quality assurance for WordPress plugins and themesAutomatic testing and quality assurance for WordPress plugins and themes
Automatic testing and quality assurance for WordPress plugins and themes
Otto Kekäläinen
 
Drupal Development Tips
Drupal Development TipsDrupal Development Tips
Drupal Development Tips
Chris Tankersley
 
Introduction to PhoneGap and PhoneGap Build
Introduction to PhoneGap and PhoneGap BuildIntroduction to PhoneGap and PhoneGap Build
Introduction to PhoneGap and PhoneGap Build
Martin de Keijzer
 
Getting the most out of WebPageTest
Getting the most out of WebPageTestGetting the most out of WebPageTest
Getting the most out of WebPageTest
Patrick Meenan
 
Speeding up your WordPress Site - WordCamp Toronto 2015
Speeding up your WordPress Site - WordCamp Toronto 2015Speeding up your WordPress Site - WordCamp Toronto 2015
Speeding up your WordPress Site - WordCamp Toronto 2015
Alan Lok
 
Meet The Family
Meet The FamilyMeet The Family
Meet The Family
Beau Lebens
 

What's hot (20)

JS digest. Decemebr 2017
JS digest. Decemebr 2017JS digest. Decemebr 2017
JS digest. Decemebr 2017
 
Magento Performance Improvements with Client Side Optimizations
Magento Performance Improvements with Client Side OptimizationsMagento Performance Improvements with Client Side Optimizations
Magento Performance Improvements with Client Side Optimizations
 
WordPress Performance optimization
WordPress Performance optimizationWordPress Performance optimization
WordPress Performance optimization
 
Magento 2 performance - a benchmark
Magento 2 performance - a benchmarkMagento 2 performance - a benchmark
Magento 2 performance - a benchmark
 
Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!Anthony Somerset - Site Speed = Success!
Anthony Somerset - Site Speed = Success!
 
Presentation1
Presentation1Presentation1
Presentation1
 
How to set up a Wordpress Blog
How to set up a Wordpress BlogHow to set up a Wordpress Blog
How to set up a Wordpress Blog
 
Piecing Together the WordPress Puzzle
Piecing Together the WordPress PuzzlePiecing Together the WordPress Puzzle
Piecing Together the WordPress Puzzle
 
Web Browsers - Their Main working
Web Browsers - Their Main workingWeb Browsers - Their Main working
Web Browsers - Their Main working
 
Phpworld.2015 scaling magento
Phpworld.2015 scaling magentoPhpworld.2015 scaling magento
Phpworld.2015 scaling magento
 
I Can Haz More Performanz?
I Can Haz More Performanz?I Can Haz More Performanz?
I Can Haz More Performanz?
 
How to Clear WordPress Cache?
How to Clear WordPress Cache?How to Clear WordPress Cache?
How to Clear WordPress Cache?
 
Magento Performance Optimization 101
Magento Performance Optimization 101Magento Performance Optimization 101
Magento Performance Optimization 101
 
Introduction to WordPress Security
Introduction to WordPress SecurityIntroduction to WordPress Security
Introduction to WordPress Security
 
Automatic testing and quality assurance for WordPress plugins and themes
Automatic testing and quality assurance for WordPress plugins and themesAutomatic testing and quality assurance for WordPress plugins and themes
Automatic testing and quality assurance for WordPress plugins and themes
 
Drupal Development Tips
Drupal Development TipsDrupal Development Tips
Drupal Development Tips
 
Introduction to PhoneGap and PhoneGap Build
Introduction to PhoneGap and PhoneGap BuildIntroduction to PhoneGap and PhoneGap Build
Introduction to PhoneGap and PhoneGap Build
 
Getting the most out of WebPageTest
Getting the most out of WebPageTestGetting the most out of WebPageTest
Getting the most out of WebPageTest
 
Speeding up your WordPress Site - WordCamp Toronto 2015
Speeding up your WordPress Site - WordCamp Toronto 2015Speeding up your WordPress Site - WordCamp Toronto 2015
Speeding up your WordPress Site - WordCamp Toronto 2015
 
Meet The Family
Meet The FamilyMeet The Family
Meet The Family
 

Similar to WPCampus Presentation - WordPress Troubleshooting Techniques | InMotion Hosting

WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s  | WordPress TrivandrumWordPress Hosting Best Practices - Do's and Don't s  | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
WordPress Trivandrum
 
8 Ways to Backup and Restore Your WordPress Website
8 Ways to Backup and Restore Your WordPress Website8 Ways to Backup and Restore Your WordPress Website
8 Ways to Backup and Restore Your WordPress Website
WPWhiteBoard
 
Web hosting Free Hosting
Web hosting Free HostingWeb hosting Free Hosting
Web hosting Free Hosting
Laurence Svekis ✔
 
Web hosting get start online
Web hosting get start onlineWeb hosting get start online
Web hosting get start online
Laurence Svekis ✔
 
It4k12 wordpress
It4k12 wordpressIt4k12 wordpress
wp-config Tips and Tricks
wp-config Tips and Trickswp-config Tips and Tricks
wp-config Tips and Tricks
Josh Harrison
 
Battling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support TaleBattling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support Tale
Kayleigh Thorpe
 
WordPress 101 Saturday Session
WordPress 101 Saturday SessionWordPress 101 Saturday Session
WordPress 101 Saturday Sessionpamselle
 
Troubleshooting WordPress
Troubleshooting WordPressTroubleshooting WordPress
Troubleshooting WordPress
Nile Flores
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website Speed
Nile Flores
 
The WordPress Hosting Decision: It All Starts Here
The WordPress Hosting Decision: It All Starts HereThe WordPress Hosting Decision: It All Starts Here
The WordPress Hosting Decision: It All Starts Here
Business Vitality LLC
 
How to Boost the performance of your Wordpress powered websites
How to Boost the performance of your Wordpress powered websitesHow to Boost the performance of your Wordpress powered websites
How to Boost the performance of your Wordpress powered websites
Pratik Jagdishwala
 
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
ResellerClub
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
Micky Metts
 
15 Most Common WordPress Errors and Solution
15 Most Common WordPress Errors and Solution15 Most Common WordPress Errors and Solution
15 Most Common WordPress Errors and Solution
kethyjewel
 
Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPress
Johannes Siipola
 
Word Press Website Tips
Word Press Website TipsWord Press Website Tips
Word Press Website Tips
Enuke Software Pvt Ltd
 
WordCamp RI 2015 - Beginner WordPress Workshop
WordCamp RI 2015 - Beginner WordPress Workshop   WordCamp RI 2015 - Beginner WordPress Workshop
WordCamp RI 2015 - Beginner WordPress Workshop
Ella J Designs
 
Word camp2011 introwordpresssecurity
Word camp2011 introwordpresssecurityWord camp2011 introwordpresssecurity
Word camp2011 introwordpresssecurityDavid Wilemski
 

Similar to WPCampus Presentation - WordPress Troubleshooting Techniques | InMotion Hosting (20)

WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s  | WordPress TrivandrumWordPress Hosting Best Practices - Do's and Don't s  | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
 
8 Ways to Backup and Restore Your WordPress Website
8 Ways to Backup and Restore Your WordPress Website8 Ways to Backup and Restore Your WordPress Website
8 Ways to Backup and Restore Your WordPress Website
 
Web hosting Free Hosting
Web hosting Free HostingWeb hosting Free Hosting
Web hosting Free Hosting
 
Web hosting get start online
Web hosting get start onlineWeb hosting get start online
Web hosting get start online
 
It4k12 wordpress
It4k12 wordpressIt4k12 wordpress
It4k12 wordpress
 
wp-config Tips and Tricks
wp-config Tips and Trickswp-config Tips and Tricks
wp-config Tips and Tricks
 
Battling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support TaleBattling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support Tale
 
WordPress 101 Saturday Session
WordPress 101 Saturday SessionWordPress 101 Saturday Session
WordPress 101 Saturday Session
 
Troubleshooting WordPress
Troubleshooting WordPressTroubleshooting WordPress
Troubleshooting WordPress
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website Speed
 
The WordPress Hosting Decision: It All Starts Here
The WordPress Hosting Decision: It All Starts HereThe WordPress Hosting Decision: It All Starts Here
The WordPress Hosting Decision: It All Starts Here
 
How to Boost the performance of your Wordpress powered websites
How to Boost the performance of your Wordpress powered websitesHow to Boost the performance of your Wordpress powered websites
How to Boost the performance of your Wordpress powered websites
 
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
 
15 Most Common WordPress Errors and Solution
15 Most Common WordPress Errors and Solution15 Most Common WordPress Errors and Solution
15 Most Common WordPress Errors and Solution
 
WordPress 101
WordPress 101WordPress 101
WordPress 101
 
Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPress
 
Word Press Website Tips
Word Press Website TipsWord Press Website Tips
Word Press Website Tips
 
WordCamp RI 2015 - Beginner WordPress Workshop
WordCamp RI 2015 - Beginner WordPress Workshop   WordCamp RI 2015 - Beginner WordPress Workshop
WordCamp RI 2015 - Beginner WordPress Workshop
 
Word camp2011 introwordpresssecurity
Word camp2011 introwordpresssecurityWord camp2011 introwordpresssecurity
Word camp2011 introwordpresssecurity
 

Recently uploaded

Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
Jen Stirrup
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
Globus
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
UiPathCommunity
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 

Recently uploaded (20)

Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 

WPCampus Presentation - WordPress Troubleshooting Techniques | InMotion Hosting

  • 1. 1
  • 2. 2 Helpful links: ● WPCampus - Video Presentation on WordPress Troubleshooting
  • 3. Today we will cover the following topics: ● How to Backup Your Site ● Changing WordPress Passwords ● Enable WordPress Debugging ● Testing Plugins ● Testing Themes ● Troubleshooting Email Issues ● Why Is My Site Slow? ● Troubleshooting Database Errors ● 404 Errors, Redirect Problems, URL Issues ● Exhausted Memory, Memory Limit Errors 3
  • 4. 4
  • 5. ● Backup using a plugin ○ All-in-One WP Migration ○ Updraft Plus ○ Total Upkeep ● Backup using hosting tool ○ cPanel ○ Softaculous ● Backup manually ○ Files ○ Database ● Backup with web host service How to Backup Your Site Helpful links: ● WordPress Backups – Protect Your WordPress Website 5
  • 6. 6
  • 7. ● Reset via email ○ Using the “Lost your password” link on the login page. ● Reset in database ○ wp_users table ■ Can change password using MD5 ■ Can change user email then request the “Lost password” email ● Reset via FTP ○ wp_set_password function (advanced users) How to Change Passwords Helpful links: ● How to Reset your WordPress Admin Password 7
  • 8. 8
  • 9. 1. Edit wp-config.php file 2. Add the following lines to your wp-config.php file: define( 'WP_DEBUG', true ); define( 'SCRIPT_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); ● 1st line will cause WordPress to display any errors from PHP functions that are built into WordPress. ● 2nd line will display any errors for WordPress' built-in JavaScript and CSS. ● 3rd line will save errors to a debug.log file in the “/wp-content” folder. Note: There are also plugins for enabling debugging How to Enable WordPress Debugging 9
  • 10. Keep in mind that your web host may have other error logs that you can check. These can provide additional evidence and clues into the cause of your issues. Here are some examples: ● cPanel Error Log ● MySQL Error Log ● NGINX Error Log Helpful links: ● How to Enable WordPress Debugging Other Error Logs Helpful links: ● How to Enable WordPress Debugging 10
  • 11. 11
  • 12. A wide range of problems can be caused by plugin/theme issues. Since they are created by different 3rd party developers there can be compatibility issues. Some developers may not update their plugin/theme often, or at all. This can cause them to deprecate over time as WordPress updates are released. Since they may no longer be compatible with new feature releases or coding changes. Why Test Plugins/Themes? 12
  • 13. ● Check that plugins are up-to-date. ● Disable one-by-one in the Dashboard. Plugins->Deactivate ○ Time-consuming ○ Requires Dashboard access or ● Rename the /wp-content/plugins folder ○ Fast since it immediately disables all plugins ○ Some plugins may not re-enable when naming the folder back How to Test Plugins 13
  • 14. How to Rename the Plugins folder 1. Open /wp-content folder a. Rename /plugins folder to plugins.bak b. or open the /plugins folder and rename the specific plugin folder Note: You may have to manually enable the plugins after performing this test. Helpful links: ● How to Update WordPress Plugins ● How to Disable WordPress Plugins 14
  • 15. 15
  • 16. How to Test Themes ● Check for theme updates ● Change to a default WordPress theme in the dashboard ○ Appearance->Themes->Activate ● Default themes, include: ○ Twenty Twenty One, Twenty Twenty ● Don’t have Dashboard access? ○ Rename the current theme in the /wp-content/themes/XXXX folder should cause it to revert to a default theme. Helpful links: ● How to Update a WordPress Theme ● How to Change a WordPress Theme 16
  • 17. 17
  • 18. How to Troubleshoot Email If you are missing form submissions or other WordPress related alerts that should be sent over email, here are some things you can check: ● Admin Email setting in the Dashboard ● Server’s Mail logs ○ Can check the EXIM log directly with SSH ○ Can check with a plugin such as WP Mail Logging 18
  • 19. Other Email Tests ● Install an SMTP plugin. ● Verify the settings are correct by accessing email/Webmail with them. Helpful links: ● View full summary of mail activity from the Exim mail log ● How to Use the WP Mail Logging Plugin for WordPress ● Learn How to Install and Use the WP Mail SMTP Plugin 19
  • 20. 20
  • 21. Bad User Experience! If a site takes too long to load, a potential customer will probably bounce. Bounce (loosely defined): to leave a slow website in frustration and never return. Visitor may get the impression the site is not properly optimized and (possibly) less secure. A customer getting a bad impression of your site can be disastrous for e-commerce. Why Is a Slow Site Bad? 21
  • 22. Things That Can Slow Down a Site ● No Site Caching ● Slow Scripts loading ● Large Images ● Outdated Plugin ● Outdated Theme ● Hack/Attack (DDOS) ● Routing Issues (Network outage) ● Large sudden influx of traffic ● Hosting environment that is not optimized for WordPress sites 22
  • 23. Site Optimization Best Practices ● Utilize site caching ● Move slow scripts to the bottom of the page ● Optimize Images ● Test Plugins ● Test Themes ● Use security best practices ● Address routing issues with host or ISP ● Use a CDN (or servers that are closer to your visitors) ● Upgrade your hosting plan ● Get WordPress Optimized Hosting plan 23
  • 24. 24
  • 25. Error Establishing a Database Connection ● Verify your database settings are accurate ○ Database name - DB_NAME ○ Database user - DB_USER ○ Database password - DB_PASSWORD ○ Database hostname - DB_HOST ● Does database user have permission to access the database? ● Create a new user and give permission to access the database Helpful links: ● WordPress - “Error Establishing a Database Connection” 25
  • 26. Corrupt Database ● Repair it via SSH using WP-CLI ● Repair it using mysqlcheck ● Repair it via hosting tool ○ cPanel Helpful links: ● Check and Repair Database with WP-CLI ● How to Check and Repair a Database in phpMyAdmin 26
  • 27. 27
  • 28. Reset Permalinks Why? 404 errors, redirect problems, URL issues What does it do? Adds the rules back to the .htaccess file 28
  • 29. How to Reset Permalinks 1. Click Settings then Permalinks in the Dashboard. 2. Remember or save the current setting. 3. Choose a different setting, then click the Save Changes button. 4. Now select your original setting, and click the Save Changes button again. Note: You may have to clear your browser cache before testing. Helpful links: ● How to Reset WordPress Permalinks 29
  • 30. About .htaccess ● What is an .htaccess file? ○ Hidden file that handles rewrites and redirects ● Some common uses of the .htaccess file would be restricting access to certain files or redirecting URLs. ● WordPress relies on .htaccess rules, so adding rules directly can interfere with how it works. ● Plugins can add rules to .htaccess file ● How to test an .htaccess file? ○ Rename it! 30
  • 31. How to rename an .htaccess file ● Locate and rename the .htaccess to .htaccess.old and reload the website. If the site loads you know the issue is caused by a rule in the .htaccess file. Keep in mind there may be other .htaccess files in a parent directory (can inherit rules). Helpful links: ● Reset the .htaccess File to Troubleshoot WordPress PHP Errors 31
  • 32. 32
  • 33. 1. Create a file such as: phpinfo.php 2. Enter the following code and save: <? phpinfo(); ?> 3. Visit the file in your browser: example.com/phpinfo.php View PHP Settings with phpinfo Page Helpful links: ● How to Create a phpinfo Page to View Your PHP Settings 33
  • 34. ● Change settings in php.ini file - ○ Edit the php.ini file and adjust the value for: ■ max_execution_time ■ max_input_time ■ memory_limit ■ upload_max_filesize ● Change settings with a plugin Change PHP Settings Helpful links: ● How to Change PHP Settings in your Hosting Account 34
  • 35. 35
  • 36. 36
  • 37. 37