WordPress Bug Fixing

WordPress Bug Fixing

The most widely used open-source, free content management system (CMS) is WordPress. PHP is the coding language used to create WordPress. It is far more advanced than the widely used web language, “HTML”.

Why do you need a WordPress developer?

A “WordPress developer” is an expert in the ecosystem and infrastructure of the WordPress platform. They might focus on improving the WordPress software itself or creating new plugins and themes. Additionally, they could help clients with WordPress site design, customization, and maintenance.To effectively and efficiently optimize the developed website, you must hire specialized WordPress developers.

Some WordPress developers work directly on the platform by creating blocks, plugins, themes, and other tools that improve it, or by making improvements to the WordPress Core. Others help clients create and maintain websites. Many developers combine the two.

If you need a general bug fix, try pasting any WordPress error messages into Google to see if anyone else is experiencing the same problem. You might get lucky and find the solution to fix the bug’s solution very quickly.

WordPress Common Issues:

  • WordPress Parse or Syntax Error
  • 500 Internal Server Error
  • WordPress not sending email issue
  • WordPress Images Not Uploading
  • Website Connection Timed Out
  • Error Establishing A Database Connection
  • Fatal error: WordPress’s maximum execution time is exceeded
  • WordPress Maintenance Mode Stuck
  • Are you sure you Themedev visit want to do this
  • Error too many redirects issue in WordPress
  • WordPress Failed Auto-Upgrade
  • Locked Out of the WordPress Admin Area
  • WordPress White Screen of Death
  • experiencing technical difficulties
  • 404 Errors and Missing Images on WordPress

The WordPress community is massive and very helpful in resolving these problems. If you need more guidance, you can look here.

FAQ Troubleshooting

The most typical WordPress errors experienced by users include.

  • The White Screen
  • Internal Server Error
  • Error Establishing Database Connection
  • Failed Auto-Upgrade
  • Connection Timed Out
  • Maintenance Mode Following Upgrade
  • PHP errors or MySQL DB errors

How can all plugins be deactivated when the administrative menus are inaccessible?

Occasionally it might be necessary to disable all plugins, but you can’t do that without access to the Administration Screens. There are two options for deactivating all plugins.

Use phpMyAdmin to deactivate all plugins:

  1. Find the active_plugin’s row in the wp_options table’s option_name column (field).
  2. Change the option_value field to a:0:{}

Alternatively, you can restore your plugins folder using FTP or the file manager accessible through your host’s control panel. This method preserves plugin options but requires plugins to be manually reactivated.

  1. Via FTP or your host’s file manager, navigate to the wp-contents folder (directory)
  2. Using FTP or the file manager on your host, rename the folder “plugins” to “plugins. hold” or any other name.
  3. To disable any plugin that is “missing,” log in to your WordPress administration plugins page (/wp-admin/plugins.php).
  4. Using FTP or the file manager on your host, rename “plugins. hold” to “plugins”

After performing an automatic upgrade, how do I remove the “Briefly unavailable for scheduled maintenance” message? 

WordPress automatically upgrades your blog and adds a file called “maintenance” to the blog base folder (a folder that contains the wp-admin folder). Visitors will see the message Briefly unavailable for scheduled maintenance if that file is present. Check back in a minute.

Simply delete the .maintenance file to prevent visitors from seeing that message. Just in case, the automatic upgrade should be run once more, if it failed.

Why does my blog not recognize when there is an update available? 

When an update is made available, a notice stating that WordPress x.x.x is available is displayed at the top of the administration screens! Please do update now. That message won’t appear on every blog at the same time. Every 12 hours, your blog is programmed to check for updates, but the exact time that it does so is completely random. As a result, if your blog checked for updates just moments before an update was made available, you won’t see the update notification until 12 hours have passed since the last check., but the timing of that check is purely random.

In your wp options table, you can delete the update_core option name record if you want your blog to check for updates immediately. Keep in mind that the records named by update_plugins and update_themes in wp_options control, separate check and update cycles for plugins and themes, respectively.

Relevant discussion thread: https://wordpress.org/support/topic/242485

Why did I lose custom changes to the WordPress default theme during the last automatic upgrade? 

If you changed any existing files in the WordPress default theme (for example, wp-content/themes/twentysixteen/style.css), those changes were overwritten with the new version of that file during a core upgrade, which copies all new files from the distribution over the old ones.

Please note that a core upgrade removes files from a list of “old files” as defined in wp-admin/includes/update-core.php. All files that are not listed or included in the distribution are preserved.

Keep in mind that, as described in WordPress Backups, both the WordPress files and database should be backed up before upgrades, whether automatic or manual. 

Using a child theme is a better method than changing the default theme. Setting it up requires a little more work, but it’s worthwhile because your customizations will be safe in the child theme when the main theme is updated.

How do you repair a MySQL database table? 

One or more MySQL database tables may occasionally need to be repaired. There are many reasons to repair a table, including errors like “tbl name. from are locked against change,” “Can’t find file tbl name.MYI (Errcode: nnn),” “Unexpected end of file,” “Record file is crashed,” or “Got error nnn from table handler.

Using phpMyAdmin, follow these steps to fix a table in a MySQL database:

  1. Login to hosting account.
  2. Login to phpMyAdmin.
  3. Choose the affected database. If you only have one database, it should select it automatically so you won’t have to do.
  4. The main panel should include a list of your database tables. Check the boxes by the tables that require repair.
  5. There is a drop-down menu at the bottom of the window, directly beneath the list of tables. Select “Repair Table.”

Keep in mind that it is recommended to always have a current backup of your database. See also WordPress Backups

How do I empty a database table? 

Refer to Emptying a Database Table

Emailed passwords are not being received 

Description: WordPress indicates that a user’s password has been emailed to them when they attempt to register with your blog or change it by entering their username and/or email, but they never receive it.

WordPress uses the standard PHP mail() function, which uses Sendmail. No account information is needed. If you are using a hosting service, this is typically not a problem, but if you are using your own box and don’t have an SMTP server, the mail won’t ever send. Either postfix or SendMail should already be installed on your *NIX box; you just need to set them up (look online for instructions). If you do not want to go through setting up a complete mail server on your *NIX box, you may find SMTP useful — it provides “A secure, effective, and easy way to get mail from a system to your mail hub.”. On a Windows machine, try a Sendmail emulator like Glob SendMail. 

  • Windows Host Server Specific: Check your “Relay” settings on the SMTP Virtual Server if you are using a Windows Host Server. Grant access to Then in your PHP. The SMTP setting was changed by inifile to the same IP address. Also set smtp_port to 25.
  • Make Sure to Use the Correct Return Address: By default, the WordPress mailer enters wordpress@yourdomain.com and WordPress as the From: name in the From field.
  • If this is a valid email address, this is acceptable. For example, If your real email address is wordpress@yourdomain.com, for instance, your host should forward the message for delivery. WordPress will likely send your mail even if it is not a valid mail box as long as yourdomain.com is configured to send and receive mail. However, the message might not be sent if you use your actual email address as the From address, such as wpgod@gmail.com, because the mail server is unable to handle the gmail.com domain.
  • Considered Spam: Your email may have been marked as spam or, worse yet, completely deleted for being malicious.
  • SPF: (Sender Policy Framework)
  • is the most widely used anti-spam measure. There is a good chance that your host has already configured this for the mail server you are using. if you are using a hosted system. Send yourself an email from WordPress, and look for confirmation in the message headers that the message passed the SPF check. By clicking the Forgot Password link on the login page, you can send a message to yourself. Do not click the link in the message if you want to keep using your old password.
  • If you have access to your DNS records and own the domain for your mail server, you can set up the credentials if your system email failed the SPF check. Verify the email your system sent’s return path. You can set up SPF credentials if the mail server listed there has your domain name. On the Internet, there are many how-to articles.
  • DKIM: (Domain Key Identified Mail) is Also employed in this system. In a single message, SPF and DKIM can both be used. As with SPF, you can check the mail header to see if the receiving mail server verified your host’s domain key. There’s a good chance that the absence of a signature key indicates your host decided against using this protocol. Similar to SPF, setting up DKIM credentials by yourself is possible if you belong to your domain, and are able to edit DNS records and the mail server.

Why can’t I see my posts? All I see is Sorry, no posts match your criteria

Clearing your browser cache and cookies may resolve this problem. See also I Make Changes and Nothing Happens

How do I solve the Headers already sent warning problem? 

Description: You get a warning message on your browser that says:

Warning: Cannot modify header information - headers already sent by
(output started at

Reason and Solution:

It is usually because there are spaces, new lines, or other stuff before an opening <?php tag or after a closing ?>  tag, typically in wp-config.php. This could be true about some other files too, so please check the error message, as it will list the specific file name where the error occurred (see “Interpreting the Error Message” below). Replacing the faulty file with one from your most recent backup or one from a fresh WordPress download is your best bet, but if neither of those is an option, please follow the steps below.

Just because you cannot see anything does not mean that PHP sees the same.

  1. Download the file mentioned in the error message via FTP or the file manager provided in your host’s control panel.
  2. Open that file in a plain text editor (NOT Microsoft Word or similar. Notepad or BB Edit are fine).
  3. Check that the very first characters are with no blank lines or spaces after them.
  4. Before saving, or using the Save as dialog, ensure the file encoding is not UTF-8 BOM but plain UTF-8 or any without the BOM suffix.

To confirm that the file has been closed, do this:

  1. Place the cursor between the ? and >
  2. Now press the DELETE key on your computer Note to MAC users: The “DELETE” key on a PC deletes characters to the right of the cursor. That is the key note here.
  3. Keep that key pressed
  4. For at least 15 seconds
  5. Now type > and
  6. No need to press any other keys to save..
  7. If you press another key, you will bring the problem back.


<?php some code; ?> <?php some other codes; ?> 


<?php code; some other code; ?> 

After editing and saving the file, upload it again to your server.

Note: Additionally, check the file’s encoding. The BOM is recognized as the output’s first character when a file is encoded as UTF-8 with a BOM.

Interpreting the Error Message:

If the error message states: Warning: Cannot modify header information - headers already sent by (output started at /path/blog/wp-config.php:34) in /path/blog/wp-login.php on line 42, then the problem is at line #34 of wp-config.php, not line #42 of wp-login.php. In this scenario, line #42 of wp-login.php is the victim. It is being affected by the excess whitespace at line #34 of wp-config.php.

If the error message states: Warning: Cannot modify header information - headers already sent by (output started at /path/wp-admin/admin-header.php:8) in /path/wp-admin/post.php on line 569, then the problem is at line #8 of admin-header.php, not line #569 of post.php. In this scenario, line #569 of post.php is the victim. It is being affected by the excess whitespace at line #8 of admin-header.php.

Why doesn’t my “Publish” or “Save Draft” button work? 

Disable each of your plugins individually until you identify the cause of the problem to fix this and related problems. Usually, this is the result of multiple plugins attempting to use the same resources (for example, JQuery or other Java-based tools).

Furthermore, there could be an issue with your browser. The most common solution is to clear the browser’s cache. To learn how to do this, please refer to the documentation for your preferred browser.

If an error 404 appears when using the Pretty Permalink options, such as Day and Name in Administration > Settings > Settings Permalinks Screen, the mod rewrite module may not be activated or installed. The mod rewrite module of the Apache web server needs to be enabled as a fix. Check the apache\conf\httpd.conf file for the line # LoadModule rewrites_module modules/mod_rewrite and removes the front #from the line’s front. The next step is to stop and restart Apache. 
Note: Your host might need to enable mod-rewrite.

See also Using Permalinks. The relevant discussion thread is https://wordpress.org/support/topic/234726

Why does the administrator user not appear as an author when editing posts?

Not sure why this problem occurs, Before selecting one of these two fixes, try a few of the following.

This usually fixes the problem:

  1. Create a new admin user (e.g. newadmin) with Administrator Role
  2. Login as ‘newadmin’
  3. Change the former “admin” user’s role to “subscriber” and save.
  4. Promote the old ‘admin’ back to Administrator Role and Save
  5. Login as the old ‘admin’

If that doesn’t work, try:

  1. Create a new admin user (e.g. newadmin) with Administrator Role
  2. Login as ‘newadmin’
  3. Delete the old ‘admin’ user and assign any posts to ‘newadmin’
  4. Create ‘admin’ user with Administrator Role
  5. Login as ‘admin’
  6. Consider removing the “new admin” user and assigning posts to “admin”.

Why does a blog post’s incorrect author name appear?

This problem is usually solved by the same solution as is presented in the question right before this one:

How do I find more help? 

There are various resources that will help you find more help with WordPress, in addition to these FAQ.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

William Jhonson
Written by

William Jhonson

William is a technology enthusiast who enjoys writing WordPress-related articles. He enjoys watching movies and sports in his spare time. He has a strong desire to go all around the world.

Table of Content

Table of Contents