Skip to content
xYnta
Go to websitexynta.com
Search
EN

Troubleshooting problems with your WordPress website

Updated on

Is your WordPress website no longer working properly, or are you seeing unexpected error messages? With this step-by-step plan you investigate the problem systematically. Work through the steps in order: if a step solves the problem, you do not need to do the next ones.

  1. Scan your website

    Start with a scan in the website check. It immediately shows problems with availability, SSL, DNS and the server, and tells you for each finding whether you can fix it yourself or whether something is going on at our end. Enter your domain name, start the Quick scan and look at the findings. If nothing remains, go to the next step.

  2. Check the log files

    Error messages in the log files often point straight to what is going wrong. For a PHP error, look at the text after PHP, such as PHP Fatal error or PHP Parse error, not at the level in brackets at the start of the line: a PHP error can appear there as [NOTICE]. See Viewing the log files of a domain name and My website isn't working, how do I fix it?.

  3. Switch on WP_DEBUG

    If the log files give no answer, have WordPress tell you more with its debug mode. Open wp-config.php in the folder of your website, via the file manager of your control panel (see Managing files) or via FTP. Find the line with WP_DEBUG, for example define( 'WP_DEBUG', false );, and replace it with these three lines. If the line is not there, add them before the line /* That's all, stop editing! Happy publishing. */.

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );

    WordPress now writes error messages to the wp-content/debug.log file, not to the front end of your website. View that file via the file manager or FTP, not in your browser.

  4. Check the PHP version

    Many problems arise because WordPress, a theme or a plugin does not work with the current PHP version. WordPress and most plugins work best on PHP 8.1 or higher. See Changing the PHP version. Older websites or outdated plugins sometimes do not work straight away on a new PHP version: test thoroughly after a change and switch the version back if the problem gets worse.

  5. Clear the cache

    Sometimes an old version of your website stays visible because of caching.

    • Clear the cache in the settings of your caching plugin, such as LiteSpeed Cache or W3 Total Cache.
    • Refresh the page in your browser with Ctrl + F5 (Windows) or Cmd + Shift + R (macOS).

    Until the cache has been rebuilt, your website may be a little slower.

  6. Reset .htaccess to the default

    A damaged .htaccess file can take your website down, cause a redirect loop or break permalinks. First make a copy of the current .htaccess: rename it to .htaccess-backup or download it. Then open the file via the file manager or FTP and replace the entire contents with the WordPress default:

    # BEGIN WordPress
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    If WordPress is in a folder, replace RewriteBase / with RewriteBase /<folder>/ and /index.php in the last line with /<folder>/index.php. Save the file and check whether your website works again.

  7. Switch off the plugins

    A plugin is often the cause, especially after an update. Switch off all plugins and then switch them back on one by one.

    If you can still log in:

    1. In the WordPress dashboard, under Plugins, click Installed Plugins.
    2. Select all plugins, choose Deactivate at Bulk actions and click Apply.
    3. Refresh your website. Has the problem gone?
    4. Activate the plugins one by one and refresh your website each time. If the problem comes back, you have found the cause.

    If you can no longer log in:

    1. Open the file manager or connect via FTP.
    2. Go to the wp-content folder of your website: usually domains/yourdomain.nl/public_html/wp-content/ with Web Hosting and Reseller Hosting, and usually httpdocs/wp-content/ with WordPress Hosting.
    3. Rename the plugins folder to, for example, plugins-off. All plugins are now switched off.
    4. Is your website working again? Rename the folder back to plugins and activate the plugins one by one in the WordPress dashboard.
  8. Check the PHP settings

    Websites that use a lot of memory, for example with many plugins or a WooCommerce shop, can run into PHP limits. It often helps to increase memory_limit to 512M and max_input_vars to 5000.

    • With Web Hosting and Reseller Hosting you change them yourself: see Changing PHP settings.
    • With WordPress Hosting, memory_limit is already set to 512M. If max_input_vars (1000 by default) is too low, contact us.

    See also Optimising your WordPress website.

  9. Switch debug mode off again

    If you switched on debug mode in step 3, open wp-config.php again, set WP_DEBUG back to false and remove the lines with WP_DEBUG_LOG and WP_DEBUG_DISPLAY. Then delete the wp-content/debug.log file via the file manager or FTP.

Need help?

The steps above solve most WordPress problems, but every problem is different.

  • With WordPress Hosting: contact us; the WordPress support of your package takes a look with you, up to a maximum of 30 minutes per month.
  • With the other packages: through our support services you engage a specialist to investigate your website.