Table of Contents
- Internal Server Error
- server problems
- Error establishing database connection
- The White Screen of Death
- Connection timeout
- Error 403 Forbidden
- Scheduled posts are not published at the correct time
- RSS Feed Error
- error 404
- Error 502 – Bad Gateway
- Syntax Error
- HTTP error
- Site marked as unsafe by Google
- Error during automatic update
- Error 503 – Service Unavailable
- Problem with the sidebar
- Login redirect loop
- Error uploading images
- WordPress does not send emails
- Destination folder already exists
- Admin password recovery
- PHP Warning: Unable to modify header information
- maintenance mode stuck
- Maintenance mode after update
- Error 404 – Permalinks and images not working
- Upload: Failed to Write File to Disk
- error 28
- error 145
- Call to undefined function
- error 13
O Wordpress became the platform CMS (Content Management System, meaning Content Management System) most widely used in the world, especially in the field of content marketing. However, despite being a powerful tool open source, developed by a collaborative community, is not immune to errors that can cause problems for its users.
In this post, we will address the 30 most common WordPress mistakes and provide practical solutions for each of them. Check out some tips below:
Internal Server Error
An internal server error in WordPress, also known as “Error 500 – Internal Server Error”, is an HTTP status code that indicates a problem with the server hosting the website. When an internal error occurs, the server is unable to complete the browser request and displays a generic error message.
This type of error can be frustrating as it doesn't provide specific information about the exact cause of the problem. However, it is usually an indication that something is not working correctly on the server side.
Here are some solutions you can try:
- Check the ..htaccess: Access the site root using FTP or your hosting panel's File Manager and rename the .htaccess file to .htaccess_old. Then try to access the website again and check if the error is fixed. If so, go to Settings > Permalinks in the WordPress dashboard and click “Save Changes” to generate a new .htaccess file;
- Disable plugins: go to WordPress admin panel, disable all plugins. Then check if the error is gone. If this resolves the issue, re-enable the plugins one by one to identify which one is causing the error;
- Change Theme: Change the theme to a standard WordPress theme such as Twenty Twenty-One. This will help determine if the current theme is causing the error;
- Increase PHP memory limit: In some cases, internal server errors may occur due to insufficient memory limits in PHP. You can try increasing the memory limit by adding the following line of code to the file “wp-config.php” of the website, just before the line that says “/* That's all, stop editing! Happy blogging. */”: define('WP_MEMORY_LIMIT', '256M'); This sets the memory limit to 256MB, but you can adjust this value as needed;
- If the error persists, try resending the folders “wp-admin” e “wp-includes” of WordPress from a fresh WordPress installation. This will ensure that essential files in those folders are correct and not corrupted.
server problems
A WordPress server issue refers to issues that occur on the server side where the website is hosted. These wordpress issues can affect your site's performance, availability, or proper functioning.
slow response time
If your website is loading slowly or taking time to respond, it could be due to limited server resources or improper configuration. Among the possible solutions are:
- Contact your hosting provider to verify that your hosting plan is adequate for the traffic and resources required by your website. Consider upgrading to a more robust plan if needed;
- Optimize your site to improve performance. This can include image compression, caching, minifying CSS and JavaScript files, and other optimization best practices.
permission errors
Permission issues occur when the server does not have proper permissions to access certain files or directories. This can result in access errors or resource loading failures. To resolve this issue:
- Check your WordPress site's file and directory permissions and make sure they are set correctly. Typical permissions are 755 for directories and 644 for files. You can adjust permissions using an FTP client or a hosting control panel.
Database connection errors
If WordPress is unable to establish a database connection, you may receive database-related error messages or the site may become inaccessible. To resolve this issue:
- Check the database credentials in the file “wp-config.php” to ensure they are correct;
- Make sure the database server is working properly;
- In some cases, it may be necessary to repair or optimize database tables. This can be done using a tool like phpMyAdmin.
It is important to remember that in many cases WordPress server issues are related to the configuration or hosting environment. Keep reading to know how to fix wordpress errors.
Error establishing database connection
This error occurs when WordPress is unable to connect to the database it needs to function properly. This can be caused by a number of reasons including misconfigurations, permission issues, invalid database credentials, or database server failures.
How to fix this error:
- Open your WordPress site's “wp-config.php” file and verify that the database name, username and password information is correct. Make sure they match those provided by your hosting provider;
- Check the permissions of the “wp-config.php” file: The correct permissions must be assigned to the “wp-config.php” file. Typically, proper permissions are 644. You can adjust the permissions using a hosting control panel;
- :If database tables are corrupted or damaged, you can try to repair or optimize them. This can be done using a tool like phpMyAdmin;
- In some cases, the database host might not be configured correctly. Generally, the default value is “localhost”. However, depending on your hosting provider's configuration, you may need to provide a specific host. Check with your hosting provider support that the database host is correct.
If you've tried all these steps and you're still facing the database connection error, then it's recommended that you contact your hosting provider's support. They will have direct access to the server environment and can help identify and resolve your site's specific issue.
The White Screen of Death
The “white screen of death” or “White Screen of Death“, in English is a term used to describe a problem in WordPress where the screen is completely blank, without displaying any error message or content. This can happen due to many reasons like code errors, plugin conflicts or server resource issues. Here are some solutions you can try to resolve the white screen of death:
- Access the directory “/wp-content/plugins/” from your WordPress site via FTP and rename the “plugins” folder to “plugins_old”. Then try to access your site again. If the white screen disappears, then one or more plugins are causing the problem. You can re-enable the plugins one by one until you find what is causing the problem. Then remove or update the problematic plugin;
- Change the theme to a default theme;
- Increase the PHP memory limit: Add the following line of code in the “wp-config.php” file of your WordPress site, just before “/* That's all, stop editing! Happy blogging. */”: define( 'WP_MEMORY_LIMIT', '64M' ); This will increase the memory limit to 256MB. If this resolves the issue, then the previous memory limit was too low;
- Activate Debug: Access your domain's FTP and open the “wp-config-php” file. Find the code ( 'WP_DEBUG', false) and replace “false” with “true” to start the debugging process.
Connection timeout
The error “Connection timeout” or “Connection Timeout”, in English, occurs when the server takes a long time to respond to a request, resulting in the termination of the connection. This can happen for many reasons, such as network issues, insufficient server resources, or script execution timeout exceeded. Here are some solutions you can try to resolve this error:
- Check your internet connection: Sometimes the problem can be with your own internet connection. Make sure you are connected to the internet in a stable and reliable way;
- Turn off all plugins and go back to the default platform theme. Reconnect the plugins, to see which plugin is causing the problem;
- The PHP execution timeout defines how long the server waits before terminating the execution of a script. If your site or a specific part of it is taking a long time to load, you can increase the PHP execution time limit. Add the following line of code to your WordPress site's “wp-config.php” file, just before “/* That's all, stop editing! Happy blogging. */”: set_time_limit(300); this will set the runtime limit to 300 seconds (5 minutes). Adjust the value as needed;
- A large or poorly optimized database can cause your site to load slowly and result in connection timeout errors. Consider optimizing your database to improve performance. This can be done using database optimization plugins available in the WordPress plugin directory such as “WP-Optimize” or “WP-Sweep”;
It is important to note that in some cases the connection timeout error may be beyond your control, especially if it is related to restrictions placed by your hosting provider.
Error 403 Forbidden
This error occurs when the server denies access to a certain resource or webpage. This means that the server understands the request, but access to the requested resource is prohibited. It can occur for a variety of reasons, such as incorrect permissions settings, security restrictions, or authentication issues. Here are some solutions you can try to fix the error:
- Make sure file and folder permissions are set correctly. In WordPress, most files should have permissions of 644 and folders should have permissions of 755. You can adjust permissions using a hosting control panel;
- Locate the File Manager from the hosting control panel. In the public_html directory, look for .htaccess file. Go to Settings and enable the option Show hidden files (dotfiles). Download the file to your computer to have a backup of it and then delete the file;
- Make sure your site's relevant directories have the proper permissions. Directories that typically need special permissions include the wp-content/uploads folder and the wp-content/plugins folder. Make sure these directories have proper permissions set.
Scheduled posts are not published at the correct time
If you are facing the issue that scheduled posts are not publishing properly at the scheduled time in WordPress, here are some solutions you can try to fix this issue:
- Make sure your site's time zone is set correctly. Access the WordPress admin panel and go to “Settings” > “General”. Make sure the selected time zone matches your correct location. This will ensure that appointments are based on the correct time zone;
- In some cases, the problem may be related to server settings. Contact your hosting provider's support and report the issue. They will be able to check if there are any restrictions or settings that may be interfering with WordPress schedules;
- Disable conflicting plugins: Some plugins can cause conflicts and interfere with publishing schedules. Disable all plugins and check that scheduled posts work correctly. If so, it indicates that one of the plugins is causing the problem. Re-enable the plugins one by one and test again until you find the plugin causing the conflict;
- Check WordPress cron: WordPress uses a function called “cron” to schedule tasks, including publishing scheduled posts. Make sure your WordPress cron is working properly. You can use plugins like “WP Crontrol” to check and manage your website's cron jobs.
- Test with a default theme;
- Check WordPress Integrity: Lastly, make sure all your WordPress files are intact. Take a backup of your website and reinstall the latest version of WordPress.
RSS Feed Error
If you are experiencing an error on your WordPress site's RSS feed, where the feed is not displaying properly or is generating error messages, here are some solutions you can try to resolve the issue:
- Use an online tool, such as the W3C RSS Feed Validator, to verify that your RSS feed is valid. Enter your feed URL and check for any errors or warnings reported;
- Disable conflicting plugins: Some plugins may cause conflicts and interfere with RSS feed generation. Disable all plugins and check if the feed starts working properly. If so, it indicates that one of the plugins is causing the problem. Re-enable the plugins one by one and test again until you find the plugin causing the conflict;
- Switch to the default theme;
- Check for encoding issues: Encoding errors in your content can cause problems in the RSS feed. Make sure all your content is encoded correctly, especially special characters and HTML tags;
- Check the .htaccess file: Problems with the .htaccess file can affect the display of the RSS feed. Make sure the .htaccess file is correct and does not contain any rules that could interfere with accessing the feed;
- Check the RSS feed settings: In the WordPress admin panel, go to “Settings” > “Reading” and check the settings related to the RSS feed. Make sure the options are set correctly to display the content you want in the feed.
error 404
Error 404 is one of the most common WordPress errors. It is displayed when a specific file or page cannot be found on the server. This usually occurs when the URL entered is incorrect, the page has been removed or moved to another location.
- Update Permalink URLs: In the WordPress admin panel, go to “Settings” > “Permalinks” and click “Save Changes”. This will update your permanent URLs settings and may fix the 404 error if there is a problem with your site's URL structure;
- Make sure the file or page you are trying to access actually exists on the server. Check if the file was accidentally deleted or moved to a different location. If necessary, restore the file or move it back to its correct location;
- Clear browser cache: Sometimes error 404 can be caused by an outdated browser cache;
- Redirect broken URLs: If you've changed your site's URL structure or moved pages, it's good practice to set up redirects to prevent visitors from encountering 404 errors. “Redirection”, to set up 301 redirects for old URLs to the corresponding new URLs;
- Use error handling plugins: Plugins like 404page – your smart custom 404 error page allow you to create a custom 404 error page with useful information and relevant links to help visitors navigate your site;
Error 502 – Bad Gateway
Error 502 occurs when a server acting as a gateway or proxy receives an invalid response from an upstream server. This can happen due to many reasons, including temporary network issues, server overload, server-to-server communication failures, or incorrect settings. Here are some solutions you can try to resolve error 502 – Bad Gateway in WordPress:
- Clear your browser's cache or try accessing the site in a different browser to see if the error persists.
- Disable the firewall;
- Make sure your internet connection is working properly;
- Restart your router/modem;
- Check plugins and themes: Temporarily disable all plugins and switch to a default WordPress theme;
- Check the proxy server settings: If you are using a proxy server or CDN (Content Delivery Network), check that the settings are correct;
Syntax Error
Syntax error in WordPress usually occurs when there is a typo or incorrect code structure somewhere on your website. This can happen when editing theme files, function files, or adding custom code to your site. Here are some steps you can take to resolve the syntax error:
- Identify the file or location of the error. Usually, WordPress displays an error message that indicates the file and line where the problem occurred;
- Open the file indicated in the error message and carefully check the code in the mentioned line. Look for typos such as missing parentheses, misplaced quotation marks, missing semicolons, unclosed braces, or other common syntax errors. Make sure the structure and formatting of the code is correct;
- Check plugins and themes;
- Backup and restore files: If you are unable to identify or fix the syntax error, back up the problematic file and replace it with the original file of a default WordPress theme or plugin.
HTTP error
The HTTP error in WordPress usually occurs when there is a communication problem between the browser and the web server. There are different types of HTTP errors such as error 404 (Page not found), error 500 (Internal Server Error) and so on. Each error has a specific cause and requires different solutions.
Here are some general solutions that can help fix HTTP errors in WordPress:
- Sometimes the HTTP error can be caused by a corrupted browser cache. Clearing your browser's cache may resolve the issue. You can do this in browser settings or use a keyboard shortcut such as “Ctrl + Shift + Delete” on Windows or “Command + Shift + Delete” on macOS;
- If you're getting a 404 error, make sure the URL you entered is correct. Make sure the page or post exists and the URL is formatted correctly;
- Certain incompatible plugins or themes may cause HTTP errors. Try disabling all plugins and switching to a default theme to see if the issue is resolved. If the error disappears, you can re-enable the plugins one by one to identify the culprit;
- The .htaccess file is used to configure redirect rules and other settings on the web server. An error in this file can cause HTTP issues. Try renaming the .htaccess file to .htaccess_old and check if the error persists. If the error disappears, you can generate a new .htaccess file in the WordPress admin panel or by contacting your hosting service support;
- Make sure the file and folder permissions are correct. Inappropriate permissions can prevent the server from accessing necessary files and result in HTTP errors. The recommended permissions for files in WordPress are generally 644, and for folders, 755;
- If you've tried all of the solutions above and you're still experiencing HTTP issues on WordPress, you may need to contact your hosting provider's support. They can help investigate specific server issues or provide additional guidance.
It is important to remember that each HTTP error can have different causes, so the solution may vary. If you have a specific error message, providing more details may help identify the cause of the problem and provide a more accurate solution.
Site marked as unsafe by Google
When your site is marked as unsecure by Google, it usually means that it has been identified as a potential source of security threats to users, such as malware, phishing or other malicious activity. This tagging can have a negative impact on visitor confidence and ranking in search results.
To resolve this issue, follow these steps:
- Go to the Google Search Console tool and check for warnings or notifications about your site's security. Google generally provides specific information about the security issues it encounters;
- Check your site for malware: Use a malware scanner to scan your site and identify any malicious code. There are several tools available, such as Sucuri SiteCheck e VirusTotal. If malware is found, remove it immediately;
- Make sure all plugins, themes and scripts used on your site are updated to the latest versions. Frequent updates often contain important security fixes;
- Consider implementing additional security measures, such as using an SSL certificate to encrypt communication between the server and visitors, installing a trusted security plugin, setting up restrictions on access to sensitive directories, and creating passwords strong for all user accounts;
- Carefully review your site's content for links, advertisements or any other element that may be considered suspicious. Remove any unauthorized or malicious content found;
- After taking all the necessary steps to fix the security issues, go to Google Search Console and request a review of your site. Google will double-check your site for security issues and remove the unsafe flag if everything is OK;
- Additionally, it is important to ensure that you have an ongoing process in place for monitoring and maintaining the security of your WordPress site. This includes keeping all components up to date, performing regular security checks, periodically backing up your site, and implementing good security practices such as strong passwords and proper user permissions.
Error during automatic update
When an error occurs during the automatic WordPress update, there can be several possible causes. See what to do to solve this problem:
- Check Upgrade Requirements: Make sure your server meets the minimum WordPress system requirements for the version you are trying to upgrade. Make sure your PHP version, MySQL version and other server settings are up to date as per WordPress requirements.
- Deactivate all plugins and go back to a default WordPress theme;
- If you are using any cache plugins, clear the cache before trying the update again;
- If the automatic update still fails, you can try manually updating WordPress. Completely back up your website before proceeding. Download the latest version of WordPress from the official website (wordpress.org), extract the files and replace the existing files on your server with the new ones. Make sure you don't overwrite or delete the content files (like uploads, custom plugins, etc.) or the wp-config.php file;
- Check that file and directory permissions are set correctly. Generally, permissions should be set to 755 for directories and 644 for files. If necessary, change the permissions in your hosting provider's control panel;
- Check the server's error logs for more information about the specific error that occurred during the upgrade. Error logs are usually available in your hosting provider's control panel or can be accessed via FTP.
Error 503 – Service Unavailable
Error 503 – Service Unavailable is an HTTP status code that indicates that the server is temporarily unavailable to handle the client's request due to overload or maintenance.
What can you do to try to resolve this error:
- Visit other websites to check if the 503 error occurs only on your website or on all websites you visit;
- If you are aware that the server is undergoing scheduled maintenance, wait for the maintenance period to end and try again later. During maintenance, the server may return a 503 error to indicate that it is unavailable for use;
- If you have access to your server's control panel or your hosting provider's admin panel, check to see if your site is exceeding allocated resource limits such as CPU usage, memory or bandwidth. If so, you may need to optimize your site or consider upgrading to a hosting plan with more features;
- In some cases, restarting the web server may resolve the 503 error. If you have access to the server, try restarting it to see if this resolves the issue. However, keep in mind that restarting the web server may temporarily stop access to all websites hosted on it;
- If the 503 error persists and you are unable to resolve it yourself, contact your hosting provider's technical support. They will be able to check the status of the server, investigate the cause of the error, and provide assistance in resolving the issue.
Remembering that the 503 error is usually temporary and can be resolved without the need for direct intervention in the WordPress code or configuration.
Problem with the sidebar
If your WordPress site's sidebar is appearing below the content instead of next to it, this usually indicates a layout or code issue.
Here are some steps to try to resolve this issue:
- Make sure the theme you are using is compatible with the version of WordPress you have installed;
- If you've made modifications to the theme's code or added plugins that affect the layout, make sure there are no code errors or conflicts that could be causing the problem;
- Check your theme or page builder settings to ensure the sidebar is set correctly to appear next to the content;
- If you are using widgets in the sidebar, check to see if any of them contain content or code that is interfering with the layout;
- Some plugins can cause layout conflicts and interfere with the sidebar displaying correctly. Temporarily disable all plugins and see if the sidebar returns to its correct location. If this resolves the issue, re-enable the plugins one by one, checking the sidebar each time, until you identify the plugin causing the conflict.
Login redirect loop
This error occurs when the system enters an endless loop of redirects when trying to access the login page. This is usually caused by configuration issues or conflicts with plugins or themes.
- Start by clearing your browser's cache and cookies;
- Deactivate all plugins on your site by renaming the plugin folder via FTP or using your hosting provider's file manager. Then try to access the login page again;
- The problem could also be related to incorrect settings in the .htaccess file. Back up the .htaccess file and then delete it from your WordPress site's root directory. Try accessing the login page again. If the issue is resolved, you can recreate the .htaccess file by going to Settings > Permalinks in your WordPress dashboard and clicking “Save Changes”. This will generate a new .htaccess file with the correct settings;
- Access your website's database using a tool like phpMyAdmin or through your hosting provider's control panel. In the “wp_options” table, check the values of the “siteurl” and “home” rows to ensure they match the correct URL for your site;
- Open your WordPress site's wp-config.php file and make sure there are no extra lines or blank spaces added inadvertently. Make sure the URL definitions are correct. The relevant lines are:
define('WP_SITEURL', 'http://example.com');
define('WP_HOME', 'http://example.com');
Replace “example.com” with the correct URL for your website;
- Temporarily change to default WordPress theme.
Error uploading images
WordPress image upload error can have many causes and can be frustrating. Here are some common solutions to fix this issue:
- Make sure the size of the images you are trying to upload is within the limit allowed by WordPress;
- Make sure the folder permissions on the upload directory are set correctly. The default upload folders are “wp-content/uploads”. The correct permissions are usually 755 for folders and 644 for files. You can change permissions using your hosting provider's control panel;
- See if there is enough storage space on the server to upload new images. If space is exhausted, you will need to free up space by deleting unnecessary files or contacting your hosting provider to increase your storage limit;
- Temporarily disable the security plugins to see if that resolves the issue;
- Make a backup of the .htaccess file and then rename it to test if the issue is related to it. If the image upload works correctly after renaming the .htaccess file, you will need to review the file's contents and check for any rules that are blocking the upload;
- Switch to default WordPress theme.
WordPress does not send emails
- Make sure the email settings on your WordPress site are correct. Access the WordPress admin panel and go to “Settings” -> “Reading”. Make sure that the email address set as “Administrator Email” is valid and configured correctly;
- Contact your hosting provider and verify that your email server settings are correct. They can provide you with email server information and the settings needed to send emails from your WordPress site. Make sure the port, host, username and password settings are correct;
- See if the email server is working properly. Send a test email from another email account to the email address configured in WordPress. If you receive the test email, the email server is working properly. If not, contact your hosting provider's support for email server troubleshooting;
- If you are using email-related plugins in WordPress, temporarily disable those plugins to see if any of them are causing the problem.
- Check your email provider's spam folder to ensure emails from WordPress are not being misclassified as spam. If you find emails from WordPress in your spam folder, please mark them as “not spam” to help improve future delivery of emails;
Destination folder already exists
This error occurs when you are trying to create or move a folder to a location where a folder with the same name already exists. This can happen when installing a WordPress theme or plugin.
- Check if one of the previously installed plugins has the same name as the one you are trying to install. Afterwards, just rename the file or delete;
- To delete you will need to connect to your WordPress site using the Panel File Manager. After connecting, you need to go to the wp-content/plugins or /wp-content/themes folder and look for the folder with the name of the plugin or theme you were trying to install, then delete it.
Admin password recovery
If you lost your WordPress admin password, there are a few ways to recover it:
Using email password reset option
- Access the WordPress login page;
- Click on the link “Forgot password?” or “Lost your password?”;
- Enter your username or email address associated with the administrator account and click "Recover Password";
- Check your email inbox associated with the admin account;
- Look for an email with the subject “Password Reset” or similar;
- Open the email and follow the instructions to reset your password;
- After resetting the password, login to WordPress using the new password.
Using the database reset password option
- Access your hosting provider's control panel;
- Access phpMyAdmin or any other database management tool provided by your provider;
- Select your WordPress site database from the list;
- Find the table prefixed with “wp_users” or similar;
- Locate the line corresponding to the administrator user (generally, the ID is 1) and click on “Edit” or “Edit Registry”;
- In the “user_pass” column, delete the existing value and enter a new password in MD5 or SHA1 hash format.
- Click “Save” or “Update” to save the changes;
- Try logging into WordPress using the new password you set.
PHP Warning: Unable to modify header information

The warning message “PHP Warning: Unable to modify header information” usually occurs when WordPress or a plugin is trying to modify or send HTTP headers after they have already been sent. This may cause compatibility issues or conflicts with other scripts or plugins.
Here are some possible solutions to fix this warning:
- Temporarily disable all plugins and revert to a default WordPress theme;
- Make sure all your plugins and themes are updated to the latest versions;
- Check for errors or inappropriate changes to HTTP headers. Make sure that no attempt is being made to modify the headers after they have already been sent;
- Check the .htaccess and wp-config.php files in the root of your WordPress site to ensure there are no conflicting instructions or settings related to HTTP headers. Make a backup of the file before making any changes and test the site after each modification;
maintenance mode stuck
If you are having trouble disabling WordPress maintenance mode, follow the steps below to resolve the issue:
- WordPress creates a file called “.maintenance” in the root of your site's directory when maintenance mode is enabled. Make sure this file has been deleted correctly. If the .maintenance file is still present, manually delete it;
- Clear cache;
- Check your active theme's functions.php file for code that is turning on maintenance mode. Open the functions.php file in the WordPress theme editor and check for any code related to maintenance mode. If you find any related code, remove it and save your changes;
- Temporarily disable all plugins and make sure maintenance mode is turned off. If disabled, re-enable the plugins one by one, testing maintenance mode on each activation to identify which plugin is causing the problem;
- The “options” table in the WordPress database contains an entry called “maintenance_mode” which can be used to enable or disable maintenance mode. Access the database using a tool like phpMyAdmin and check the value of this entry. If it is set to “true” or “1”, change it to “false” or “0” to disable maintenance mode.
Maintenance mode after update
If your WordPress site is stuck in maintenance mode after an update, you may need to clear the cache and reset the .maintenance file.
- Clear the cache: If you are using a caching plugin or caching service on your site, clear the cache to ensure recent changes are reflected. Caching may be preventing maintenance mode from being disabled correctly;
- Verify that this .maintenance file was properly deleted after the upgrade. If the .maintenance file is still present, manually delete it;
- Access the database using a tool like phpMyAdmin and check the entry value “maintenance_mode”. If it is set to “true” or “1”, change it to “false” or “0” to disable maintenance mode;
- Some plugins or themes may be causing conflicts after the update and keeping the site in maintenance mode. Temporarily disable all plugins and go back to a default WordPress theme. Then check if maintenance mode is turned off. If it is disabled, re-enable the plugins and theme one by one, testing maintenance mode after each activation to identify which one is causing the problem.
After performing these steps, refresh your site and verify that maintenance mode has been disabled correctly.
Error 404 – Permalinks and images not working
Error 404 is displayed when the server cannot find the requested page. This can happen with permalinks and WordPress images. Here are some solutions to fix these issues:
- Go to Settings > Permalinks in the WordPress admin panel and make sure your permalink structure is set up correctly. Select a different option and save your changes. Then verify that the links are working properly. If they are, you can go back to the original structure or choose a custom option if you prefer;
- Sometimes the rewrite rules can become outdated or corrupted, resulting in 404 errors. To update the rewrite rules, go to Settings > Permalinks and simply click the “Save Changes” button without making any changes. This will force WordPress to update the rewrite rules and may resolve the issue.
- Make sure the file permissions are set correctly for the images and the folder where they are stored. Typical permissions for files are 644 and for folders are 755. Make sure the permissions are set correctly using your hosting provider's control panel;
- If the images are not displaying correctly, check that the image paths are correct where they are referenced. Make sure that the path is valid and that the images are actually present in the specified locations;
- Some plugins or themes can cause conflicts that lead to 404 errors. Try temporarily disabling all plugins and switching to a default WordPress theme.
Upload: Failed to Write File to Disk
This error occurs when WordPress is unable to save the file uploaded to the server. This can be caused by several reasons. Here are some solutions:
- Make sure the write permissions are set correctly for the directory where the files are being uploaded. Typical permissions for directories are 755. Use your hosting provider's control panel to check and adjust directory permissions if necessary;
- Check if there is enough disk space on the server to upload the files. If disk space is exhausted, WordPress will not be able to write files correctly. Contact your hosting provider's support to check available disk space;
- The error can also occur if the file size exceeds the upload limit set on your server. You can increase the upload limit by editing the file php.ini or by contacting your hosting provider's support to make this change;
- Try temporarily disabling all plugins and switching to a default WordPress theme such as Twenty Twenty-One;
- Some security settings on the server may restrict the upload of certain file types. Check with your hosting provider's support to see if there are any security restrictions in place that could be causing the issue.
error 28
WordPress error 28 is commonly related to insufficient disk space issues on the hosting server. This error occurs when there is a failure to write data to the database due to lack of available space.
To resolve error 28 in WordPress, you can try the following solutions:
- Clear cache;
- Remove unnecessary files: Check your server for unnecessary files such as old backups, log files or temporary files. Delete these files to free up disk space;
- Use a database optimization plugin to clean up and optimize WordPress database tables. This can reduce the size of the database and free up disk space;
It is important to remember that the error 28 could be an indication that you are reaching the storage limits of your hosting plan. In that case, considering upgrading to a plan with more disk space could be a long-term solution.
error 145
Error 145 is related to problems with the MySQL database. This error occurs when a database table is corrupted or damaged, preventing WordPress from properly accessing required information.
To resolve error 145 in WordPress, you can follow these steps:
- Before carrying out any changes, it is essential to make a complete backup of your WordPress database to ensure that you do not lose any important data;
- Use a database management tool such as phpMyAdmin to verify the integrity of the corrupted table. Select the affected table and choose the option “Repair table” or “Repair table and optimize”;
- In phpMyAdmin, select the database of your WordPress site and choose the option “Verify database” or “Verify all tables”. This will run a full database scan for errors and try to fix them automatically;
- There are plugins available in the WordPress repository that can help repair tables and fix database errors. Some popular examples include the WP-DBManager and WP-Optimize. Install and activate one of these plugins and follow the instructions provided to perform database repair.
Call to undefined function
This error occurs when you are trying to use a function that is not defined or not available in your WordPress code. This can happen for different reasons such as an outdated plugin or theme, compatibility issues or programming errors.
- Check that the function is correctly written and that it exists in your code. Make sure the function name is correct, including uppercase and lowercase letters, as well as the correct syntax for calling the function;
- If the function is defined in a separate file, check that the file is loading correctly in your code. Verify that the file path is correct and that the file is being added or required in the proper location;
- If the error occurred after installing or updating a plugin or theme, there may be compatibility issues. Make sure the plugin or theme is updated to the latest version and is compatible with the version of WordPress you are using. In some cases, you may need to temporarily disable the plugin or switch to a default theme to see if the error goes away;
- It is possible that two plugins are trying to define the same function or there are conflicts between them. Deactivate all plugins and then activate them one by one, checking if the error occurs again after activating each plugin;
- If you are developing or modifying the theme or plugin yourself, make sure there are no programming errors causing the problem. Check that all functions are correctly defined, including correct declaration of parameters and return values.
error 13
Error 13 occurs when MySQL is unable to create or write to a temporary file. This could be due to incorrect setting of the variable “tmpdir” in MySQL, which points to a non-writable directory. To fix this error, follow these steps:
- Locate the MySQL configuration file, called my.cnf (on *nix systems) or my.ini (on Windows). It is usually located in /etc/ on Linux or in the MySQL installation folder on Windows; Open the files in a simple text editor;
- Search the section [mysqld];
- Find the line that defines the variable “tmpdir”. If the line is commented out (beginning with “#”), remove the “#” character to remove it;
- Edit the “tmpdir” line to point to a writable directory on your system, such as / Tmp, / var / tmp or any other directory of your choice. Make sure the directory has correct write permissions;
- Save the configuration file and close it;
- Restart the MySQL server to apply the changes. This can be done by running the command “mysqlshutdown -u -p shutdown” to shutting down MySQL and then starting it again using the command “./bin/safe_mysqld &” (in the MySQL installation directory).
Make sure you follow the steps carefully and make a backup of your MySQL configuration file before making any changes.
WordPress errors can be frustrating, but it's important to remember that they are common on any software platform.
While wordpress problems may seem daunting, most of them have solutions. Also, the WordPress community is rich with resources, support forums and documentation where you can find more step-by-step wordpress tips and solutions to common problems. If necessary, you can enlist the help of experienced developers or the support of your hosting provider to troubleshoot more complex issues.
Do you need help with a WordPress error? Leave it in the comments!
LEARN MORE
WordPress: 5 tips to use to improve your blog
Discover more about Showmetech
Sign up to receive our latest news via email.