How to Fix Common WordPress Errors on Hostinger
Is your WordPress website showing an error, refusing to load, or preventing you from accessing the admin dashboard? This guide walks you through practical troubleshooting steps using Hostinger hPanel, WordPress settings, File Manager, and database tools.
WordPress errors can appear after installing a plugin, updating a theme, changing PHP settings, migrating a website, or modifying configuration files. Sometimes the issue is caused by the hosting environment, DNS settings, or a database connection rather than WordPress itself.
The best way to fix a problem is to identify its cause before changing files or restoring a backup. In this tutorial, you will learn how to troubleshoot common WordPress errors on Hostinger without making unnecessary changes to your website.
Before you begin: If your website is still accessible, create a backup before changing plugins, themes, configuration files, or database settings. If you are locked out, use an available Hostinger backup or download a copy of your website files and database before attempting major repairs.
1. What to Check Before Fixing WordPress Errors
Before editing your WordPress installation, check whether the problem is temporary or related to a recent change. These basic checks can help you avoid unnecessary troubleshooting.
Check whether the problem affects the entire website
Open your homepage, a few internal pages, and the WordPress login page. If only one page is affected, the issue may involve its URL, permalink, content, or redirect settings. If the entire website is unavailable, investigate hosting, PHP, database, or configuration problems.
Check your Hostinger hosting dashboard
Log in to your Hostinger hPanel and select the affected website. Review the hosting status, available resources, security notices, and any visible error information.
Think about what changed recently
Consider whether you recently:
- Installed or updated a WordPress plugin.
- Changed your active theme or edited theme files.
- Updated WordPress core or changed the PHP version.
- Moved your website from another hosting provider.
- Changed domain nameservers, DNS records, or SSL settings.
- Edited the
wp-config.phpor.htaccessfile.
A recent change is often a useful clue when identifying the cause of an error.
Important: Do not delete WordPress core files, database tables, or configuration files just because an error appears. First identify the problem and make a backup whenever possible.
2. Common WordPress Errors on Hostinger
Different error messages point toward different problems. Use the following table to identify the issue and find the relevant troubleshooting section.
| Error | Possible Cause | First Thing to Check |
|---|---|---|
| 500 Internal Server Error | Plugin, theme, PHP, or server configuration issue | PHP error logs and recent changes |
| 403 Forbidden | Permissions, security rules, firewall, or blocked access | File permissions and security settings |
| 404 Not Found | Incorrect URL, permalink, missing file, or rewrite rules | WordPress permalink settings |
| Error Establishing a Database Connection | Incorrect database name, username, password, or host | wp-config.php and database details |
| There has been a critical error | Fatal PHP error, plugin conflict, or theme problem | Recovery email and PHP error logs |
| White Screen of Death | PHP fatal error, memory issue, or incompatible extension | Debug log and recent plugin changes |
| WordPress login unavailable | DNS, security protection, plugin, or redirect issue | Domain configuration and login URL |
3. How to Fix the 500 Internal Server Error
A 500 Internal Server Error means the server encountered a problem while processing your website request. The message does not identify the exact cause, so you may need to check PHP errors, plugins, themes, and configuration files.
Step 1: Check the error information
Open your Hostinger website dashboard and look for available PHP error logs or website error information. If the error appeared after a recent change, start by investigating that change.
Step 2: Check plugins and themes
A faulty plugin or incompatible theme can trigger a server error. If you can access WordPress Admin, deactivate recently installed or updated plugins one at a time. If the dashboard is unavailable, use File Manager to temporarily rename the suspected plugin folder.
Step 3: Check the .htaccess file
An incorrect rewrite rule in .htaccess can prevent WordPress pages from loading.
- Open Hostinger hPanel and navigate to your website's File Manager.
- Open the WordPress installation directory, commonly
public_html. - Locate the
.htaccessfile. Enable hidden-file visibility if it is not shown. - Download a copy, then rename the file to
.htaccess-old. - Test your website. If it loads, create a fresh default WordPress rewrite file through Settings → Permalinks by saving the settings.
Note: Renaming .htaccess can temporarily affect redirects, security rules, and other custom settings. Keep your original copy and restore or recreate any required rules after testing.
Step 4: Check your PHP version
If the problem started after a migration or PHP change, check whether your plugins and theme support the selected PHP version. Hostinger's PHP configuration tools can help you review and change the version. Use a version supported by your WordPress installation and extensions rather than permanently switching to an outdated version.
If the 500 error continues, review the PHP error details and consider restoring a known-good backup. Hostinger's guide explains additional troubleshooting steps: How to fix a 500 Internal Server Error.
4. How to Fix the 403 Forbidden Error
A 403 Forbidden error means the server understood the request but is refusing access. It may affect the whole website or only a specific page, folder, or WordPress admin area.
Check file and folder permissions
Incorrect permissions can prevent the server from reading WordPress files. Review the permissions in Hostinger File Manager. Common WordPress defaults are:
- Directories:
755 - Files:
644
These are common defaults, not a reason to change every file blindly. Avoid setting permissions to 777, which can expose files to unnecessary access.
Check .htaccess rules
Custom access restrictions or incorrect rewrite rules can block visitors. Back up the file, temporarily disable the relevant custom rules, and test again. Restore the required rules after identifying the issue.
Check security protection
A security plugin, firewall rule, or hosting-level protection may block a request. If the error affects only your IP address or WordPress admin, check whether your IP has been blocked. Contact Hostinger support if you suspect a hosting-level restriction.
Check WordPress core files
If core files are damaged or missing, reinstalling a clean copy of the same WordPress version may help. Back up the site first and avoid overwriting wp-content or wp-config.php. Do not replace files without understanding which parts of the installation are affected.
5. How to Fix the 404 Not Found Error
A 404 error means the requested page or resource could not be found. If your homepage works but individual WordPress pages return 404, permalink settings are a good place to start.
Step 1: Refresh your permalink settings
- Log in to your WordPress Admin dashboard.
- Go to Settings → Permalinks.
- Keep your preferred permalink structure selected.
- Click Save Changes, even if you do not change the selected option.
- Open the affected page again.
Step 2: Check the page URL
Make sure the page slug and URL are correct. Confirm that the page has not been deleted, moved, or set to private or draft status.
Step 3: Check redirect and rewrite rules
Incorrect redirect rules in .htaccess or a redirection plugin may send visitors to an unavailable URL. Temporarily test the relevant rules after taking a backup.
Step 4: Check domain and DNS settings
If the entire new website shows a 404 page, confirm that the domain is added to the correct hosting plan and points to Hostinger. Recent DNS changes may take time to propagate. Hostinger notes that propagation can take up to 24 hours in some cases.
For more troubleshooting details, see Hostinger's 404 error guide.
6. How to Fix the WordPress Database Connection Error
The message "Error Establishing a Database Connection" means WordPress cannot connect to its MySQL database. Common causes include incorrect database credentials, a changed password, a database issue, or an incorrect database configuration.
Step 1: Open wp-config.php
In Hostinger File Manager, open your WordPress installation directory and locate wp-config.php. Download a copy before editing it.
Step 2: Check the database credentials
Find the database configuration values in the file:
Your actual values may look different. Do not copy the example values above into your live configuration. They are placeholders showing which settings to check.
Step 3: Compare the details in hPanel
- Open Hostinger hPanel and select the affected website.
- Go to Databases → Management, or the database management area shown in your dashboard.
- Find the database name and username associated with the WordPress installation.
- Compare them with the values in
wp-config.php. - If the password was changed, update the configuration with the current password and save the file.
Step 4: Check the database host
The correct database host depends on the hosting environment. Do not assume that every installation uses the same hostname. Keep the value provided by your hosting configuration or confirm it with Hostinger support.
Security reminder: Never share your database password or complete wp-config.php file publicly. It contains sensitive connection information.
Step 5: Restore a backup if necessary
If the credentials are correct but the database is damaged or unavailable, check the database status and available backups. Restoring a database can replace newer content, orders, comments, and other recent changes. Make a separate backup before restoration whenever possible.
Read Hostinger's dedicated guide for more details: How to fix the WordPress database connection error.
7. How to Fix the WordPress Critical Error
The message "There has been a critical error on this website" usually indicates that WordPress encountered a fatal PHP error. A plugin, theme, custom code snippet, or incompatible PHP component may be responsible.
Check the WordPress recovery email
WordPress may send an administrator an email explaining that a technical problem has occurred. If recovery mode is available, the email can include a special link that lets you access the dashboard and investigate the component causing the error.
Deactivate the suspected plugin
If you cannot access WordPress Admin, use Hostinger File Manager:
- Open the WordPress directory and navigate to
wp-content/plugins. - Find the plugin you recently installed or updated.
- Rename its folder, for example from
plugin-nametoplugin-name-disabled. - Refresh your website and check whether it loads.
- If the site works, investigate the plugin's compatibility or reinstall a clean copy.
Check the theme
If the error began after a theme update, temporarily switch to an available default WordPress theme. If you cannot access the dashboard, you may need to use the database or another recovery method. Take a backup before making database changes.
Review PHP error logs
Look for a fatal error that identifies the plugin, theme, or PHP file involved. The file path and error message can help you narrow down the problem rather than disabling components at random.
Hostinger provides a troubleshooting guide for common website errors, including WordPress critical errors.
8. How to Fix a Blank Page or White Screen
The WordPress White Screen of Death occurs when the website displays a blank page instead of its normal content. It may be caused by a fatal PHP error, an incompatible plugin, a theme issue, or exhausted server resources.
Try these troubleshooting steps
- Open the website in a private or incognito browser window to rule out a local cache issue.
- Check whether the WordPress admin area loads even if the public website is blank.
- Disable recently installed or updated plugins one at a time.
- Temporarily test with a default WordPress theme.
- Review PHP error logs or enable WordPress debugging to identify the fatal error.
- Check available hosting resources if the problem occurs during heavy activity.
If the blank screen appeared immediately after editing a PHP file, review the recent code changes. A missing bracket, syntax error, or unsupported function can prevent the page from rendering.
9. How to Find Plugin and Theme Conflicts
Plugins and themes extend WordPress, but incompatible updates or overlapping functionality can cause errors. If you are unsure which component is responsible, use a controlled troubleshooting process.
Use the plugin isolation method
- Back up your website.
- Deactivate all plugins if you can access WordPress Admin.
- Check whether the error disappears.
- Reactivate plugins one at a time.
- Test the affected page after each activation.
- When the error returns, investigate the last plugin you activated.
Test the active theme
If disabling plugins does not resolve the problem, temporarily activate a default WordPress theme. If the error disappears, check the theme's compatibility, custom code, and recent updates.
Check recently updated components
If the issue began after an update, review the plugin or theme changelog and compatibility information. Update WordPress, plugins, themes, and PHP in a controlled way. Avoid updating everything simultaneously when troubleshooting an existing error because that makes it harder to identify the cause.
Useful tip: Hostinger's guide to WordPress plugin and theme errors covers common issues after migrations and updates.
10. How to Fix WordPress Admin Login Problems
If your WordPress login page does not open, returns a 403 or 404 error, or repeatedly redirects, the problem may involve DNS, security settings, plugins, or login protection.
Check the login URL
For a standard WordPress installation, try opening:
Replace yourdomain.com with your own domain. If your website uses a custom login URL, use the configured address instead.
Check the domain configuration
Make sure your domain points to the correct Hostinger hosting account. If the domain was recently connected or moved, confirm that its nameservers or A record are configured correctly.
Check security and login protection
A security plugin, IP restriction, or additional password protection can block access to wp-admin. Review any recent security changes. If you cannot identify the cause, ask Hostinger support to check whether a hosting-level restriction is involved.
Check redirects and SSL
Incorrect HTTP-to-HTTPS rules or conflicting redirect settings can create login loops. Confirm that SSL is active and that the WordPress Address and Site Address use the intended domain and protocol.
For more help, see Hostinger's WordPress admin login troubleshooting guide.
11. How to Enable WordPress Debugging on Hostinger
If the error message does not explain what is wrong, WordPress debugging can help identify PHP warnings, notices, and fatal errors. It is particularly useful when a plugin or theme causes a critical error.
Step 1: Open wp-config.php
Log in to Hostinger hPanel, open the website's File Manager, and locate wp-config.php in the WordPress installation directory. Download a copy before editing it.
Step 2: Locate the debugging setting
Find the line that defines WP_DEBUG. If it is not present, add the configuration before the line that says "That's all, stop editing!" or the equivalent comment in your file.
This configuration enables debugging, writes supported debug messages to the WordPress debug log, and prevents debug messages from being displayed directly on public pages.
Step 3: Reproduce the problem
Visit the page or perform the action that causes the error. Then check the log file at:
Look for entries marked as fatal errors and note the file path, plugin name, or theme name. These details can help identify the component responsible.
Step 4: Turn debugging off
After troubleshooting, disable debugging by changing WP_DEBUG back to false and removing temporary debugging settings if they are no longer needed. Keep debug logs private because they can reveal file paths and technical information about your website.
Do not leave public error display enabled on a live website. Visitors should not see PHP errors or internal server details. Use logging instead and protect or remove diagnostic files when finished.
For Hostinger-specific instructions, read How to enable WP_DEBUG at Hostinger.
12. How to Prevent WordPress Errors on Hostinger
Not every WordPress error can be prevented, but regular maintenance can reduce the chances of compatibility problems, data loss, and avoidable downtime.
Keep WordPress updated
Install supported WordPress core, plugin, and theme updates. Review compatibility information and back up the website before major changes.
Use trusted plugins and themes
Install extensions from reputable developers and sources. Remove plugins and themes that are no longer used, and avoid installing multiple tools that perform the same function without a clear reason.
Create regular backups
Keep backups of both website files and the database. A backup stored separately from your hosting account can provide an additional recovery option.
Monitor website resources
Check your hosting resource usage in hPanel. High traffic, inefficient plugins, large processes, or poorly optimized scripts can contribute to slow responses and service errors.
Use secure configuration settings
Use appropriate file permissions, strong administrator passwords, SSL, and reputable security tools. Do not expose configuration files, database credentials, or debug logs.
Test major changes carefully
When available, use a staging website to test plugin, theme, and WordPress updates before applying them to your live site. This helps identify compatibility problems before visitors encounter them.
Quick WordPress troubleshooting checklist
- ☐ Check the exact error message and affected pages.
- ☐ Review recent plugin, theme, and WordPress changes.
- ☐ Check the Hostinger dashboard and error logs.
- ☐ Confirm the domain and DNS configuration.
- ☐ Check database credentials if a database error appears.
- ☐ Test plugins and themes for compatibility issues.
- ☐ Create a backup before major repairs.
- ☐ Disable debugging after troubleshooting.
- ☐ Test the website on desktop and mobile after fixing it.
13. Frequently Asked Questions
Why is my WordPress website not working on Hostinger?
Your WordPress website may stop working because of a plugin or theme conflict, PHP error, database connection problem, incorrect DNS settings, damaged configuration file, or hosting resource issue. Check the exact error message and recent website changes before choosing a fix.
How do I fix a 500 error on Hostinger WordPress?
Start by checking PHP error logs. Then investigate recent plugin or theme changes, review the .htaccess file, and verify PHP compatibility. Restore a backup if the problem cannot be safely resolved.
How do I fix the WordPress database connection error?
Open wp-config.php and compare the database name, username, password, and host with the actual database details in Hostinger hPanel. Correct any mismatch and check whether the database is available.
Can a WordPress plugin cause a website error?
Yes. An outdated, incompatible, or faulty plugin can cause fatal PHP errors, blank pages, login problems, and other issues. Deactivate plugins one at a time to identify the component responsible.
How can I fix WordPress if I cannot access wp-admin?
Check your domain configuration, security settings, and login URL. If a plugin or theme is blocking access, you may be able to deactivate it through Hostinger File Manager. Create a backup before changing website files.
Where can I find WordPress error logs on Hostinger?
You can review available PHP or website error information through Hostinger's website management tools. If WordPress debugging is enabled, its debug log is commonly stored at wp-content/debug.log. The exact available tools and dashboard labels can vary.
Will restoring a backup fix WordPress errors?
Restoring a backup can fix errors caused by recent file or database changes if the backup was created before the problem started. However, restoration may overwrite newer content and data. Back up the current website first and understand which files or databases will be replaced.
Should I contact Hostinger support for WordPress errors?
Contact Hostinger support if the problem appears to involve server availability, hosting-level security restrictions, database services, or resource limits. Share the error message and relevant timestamps, but never send passwords or private configuration details through an unsecured channel.
Get Your WordPress Website Working Again
Start with the exact error message, check recent changes, and use the relevant troubleshooting steps in this guide. If the issue appears to be related to your hosting environment, Hostinger's support team can help investigate it.
Visit Hostinger SupportEditorial note: Hostinger dashboard labels and available troubleshooting tools may change over time and can vary by hosting plan. Always create a backup before making significant changes to WordPress files or databases. This guide is for general troubleshooting and does not replace a website-specific diagnosis.





