{"id":10845615,"date":"2018-11-04T05:50:23","date_gmt":"2018-11-04T05:50:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=10845615"},"modified":"2023-08-31T11:02:35","modified_gmt":"2023-08-31T11:02:35","slug":"faq-troubleshooting","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/faq-troubleshooting\/","title":{"rendered":"FAQ Troubleshooting"},"content":{"rendered":"\n
Important:<\/strong> Please note that this is not a support page. If you seek help with your specific problem, please refer to the Support forums<\/a>.<\/p>\n\n\n\n Also refer Common WordPress Errors<\/a> for the most common WordPress errors experienced by WordPress users such as<\/p>\n\n\n\n Sometimes it may be necessary to deactivate all plugins, but you can’t access the Administration Screens to do so. One of two methods are available to deactivate all plugins.<\/p>\n\n\n\n Use phpMyAdmin<\/a> to deactivate all plugins.<\/p>\n\n\n\n Or reset your plugins folder via FTP<\/a> or the file manager provided in your host’s control panel. This method preserves plugin options but requires plugins be manually reactivated.<\/p>\n\n\n\n As part of the automatic upgrade WordPress places a file named To stop that message from being displayed to vistors, just delete the When an update is released, notification of that release is displayed at the top administration screens saying WordPress x.x.x is available! Please update now.<\/strong> Not every blog will see that message at the same time. Your blog is programmed to check for updates every 12 hours, but the timing of that check is purely random. So if your blog just checked for updates minutes before an update was released, you won’t see the update message until your blog checks for updates 12 hours later.<\/p>\n\n\n\n If you want your blog to check right now for updates, you can delete the update_core<\/strong> option name record in your wp_options<\/em> table. Note that plugins and themes each have their own check and update cycle, controlled by the records update_plugins<\/strong> and update_themes<\/strong>, in wp_options<\/em>.<\/p>\n\n\n\n Relevant discussion thread:<\/p>\n\n\n\n A core upgrade copies all the new files from the distribution over the old ones, so if you changed existing files in the WordPress default theme (e.g. wp-content\/themes\/twentysixteen\/style.css<\/em>), those changes got overwritten with the new version of that file.<\/p>\n\n\n\n Please note, a core upgrade goes through a list of “old files”, as defined in wp-admin\/includes\/update-core.php<\/em>, and deletes those files. Any files not on the list, and not in the distribution, are preserved.<\/p>\n\n\n\n Remember, that before upgrades, whether automatic or manual, both the WordPress Files and database should be backed-up as explained in WordPress Backups<\/a>.<\/strong><\/p>\n\n\n\n A better way to modify the default theme is by using a child theme<\/a>. It’s a little more work to set up, but worth the effort because your customizations will be safe when the main theme is updated.<\/p>\n\n\n\n Every once in a while, it may be necessary to repair one or more MySQL database tables. According to the How to Repair MyISAM Tables at dev.mysql.com<\/a> there are a number of reasons to repair a table including errors such as “tbl_name.frm is 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”.<\/p>\n\n\n\n Here are the steps to repair a table in a MySQL database using phpMyAdmin<\/a>:<\/p>\n\n\n\n Remember, that it is advisable to have a current backup of your database at all times. See also WordPress Backups<\/a><\/p>\n\n\n\n Refer Emptying a Database Table<\/a><\/p>\n\n\n\n Description:<\/strong> When users try to register with your blog or change their passwords by entering their username and\/or email, WordPress indicates that their password has been emailed to them, but it is never received.<\/p>\n\n\n\n Reason and Solutions:<\/strong> WordPress uses the standard PHP mail() function, which uses sendmail. No account information is needed. This is not generally a problem if you are using a hosting service, but if you are using your own box and do not have an SMTP server, the mail will never send. If you are using a *NIX box, you should have either postfix or sendmail on your machine; you will just need to set them up (search the Internet for how-to\u2019s). If you do not want to go through setting up a complete mail server on your *NIX box you may find msmtp useful \u2014 it provides \u201cA secure, effective and simple way of getting mail off a system to your mail hub\u201d<\/em>. On a Windows machine, try a sendmail emulator like Glob SendMail<\/a>.<\/p>\n\n\n\n More help can be found on this thread of the WordPress Support Forums: https:\/\/wordpress.org\/support\/topic.php?id=24981<\/a>.<\/p>\n\n\n\n Windows Host Server Specific:<\/strong> Check your \u201cRelay\u201d settings on the SMTP Virtual Server. Grant access to Ensure Proper Return Address is Used:<\/strong> By default, the WordPress mailer fills in the From: field with wordpress@yourdomain.com<\/em> and the From: name as WordPress<\/em>.<\/p>\n\n\n\n This is fine if this is a valid e-mail address. For example, if your real e-mail is wordpress@yourdomain.com<\/em>, your host should pass the email on for delivery. It will probably send your mail as long as yourdomain.com<\/em> is setup to send and receive mail, even if wordpress<\/em> is not a valid mail box. But if you set you real email as the From: address and it\u2019s something like wpgod@gmail.com<\/em>, the mail may not send because gmail.com<\/em> is not a domain handled by the mail server.<\/p>\n\n\n\n Treated as Spam:<\/strong> Your email message may have been routed to a spam folder or even worse, simply discarded as malicious. There are a couple measures you can use to convince recipient\u2019s mail servers that your message is legitimate and should be delivered as addressed.<\/p>\n\n\n\n SPF:<\/strong> (Sender Policy Framework) This is the most common anti-spam measure used. If you are on a hosted system, there is a good chance your host has set this up for the mail server you are using. Have WordPress email you and check the message headers for evidence that the message passed the SPF check. You can get a message sent by following the Forgot Password link on the login page. To keep your old password, do not follow the link in the message. DKIM:<\/strong> (Domain Key Identified Mail) This system is also used. You can use both SPF and DKIM in the same message. Again, just as with SPF, you can check if your receiving mailserver verified your host\u2019s domain key by examining the mail header. There is a fair chance no signature key was provided, indicating your host chose to not use this protocol. Also as with SPF, if you can edit your DNS records and the mail server belongs to your domain, you can set up DKIM credentials yourself. Some how-tos exist if you search the Internet.<\/p>\n\n\n\n Clearing your browser cache and cookies may resolve this problem. See also I Make Changes and Nothing Happens<\/a><\/p>\n\n\n\n Description:<\/strong> You got a warning message on your browser that says:<\/p>\n\n\n\n Reason and Solution:<\/strong><\/p>\n\n\n\n It is usually because there are spaces, new lines, or other stuff before an opening Just because you cannot see anything does not mean that PHP sees the same.<\/p>\n\n\n\n To be sure about the end of the file, do this:<\/p>\n\n\n\n Wrong:<\/p>\n\n\n\n Correct:<\/p>\n\n\n\n Upload the file back to your server after editing and saving the file.<\/p>\n\n\n\n Note<\/strong>: Also check the encoding of the file. If the file is encoded as UTF-8 with BOM, the BOM is seen as a character which starts the output.<\/p>\n\n\n\n Interpreting the Error Message:<\/strong><\/p>\n\n\n\n If the error message states: If the error message states: To resolve this and similar issues, disable your plugins one at a time until you find the source of the issue. Generally, this will be due to two or more plugins trying to use the same resources (for example, JQuery or other Java-based tools).<\/p>\n\n\n\n In addition, it could be that there is a problem with your browser. A common resolution is to empty the browser’s cache. Please consult the documentation for your preferred browser to learn how to do this.<\/p>\n\n\n\n If an error 404 occurs when using the Pretty Permalink<\/a> choices such as Day and Name<\/strong> in Administration<\/a> > Settings<\/a> > Settings_Permalinks_Screen<\/a> it could be a result of the mod_rewrite<\/strong> module not being activated\/installed. The solution is to activate mod_rewrite<\/strong> for the Apache web-server. Check the apache\\conf\\httpd.conf file for the line # LoadModule rewrite_module modules\/mod_rewrite.so<\/em> See also Using Permalinks<\/a>. Relevant discussion thread is https:\/\/wordpress.org\/support\/topic\/234726<\/a><\/p>\n\n\n\n Not sure why this problem happens, but here’s a couple of things to try one of these two solutions.<\/p>\n\n\n\n This usually fixes the problem:<\/p>\n\n\n\n If that doesn’t work, try:<\/p>\n\n\n\n This problem is usually solved by the same solution as is presented in the question right before this one: There are various resources that will help you find more help with WordPress, in addition to these FAQ<\/a>.<\/p>\n\n\n\n\n
How to deactivate all plugins when not able to access the administrative menus?<\/h2>\n\n\n\n
\n
\n
How to clear the “Briefly unavailable for scheduled maintenance” message after doing automatic upgrade?<\/h2>\n\n\n\n
.maintenance<\/code> in the blog base<\/strong> folder (folder that contains the wp-admin folder). If that file exists, then vistors will see the message Briefly unavailable for scheduled maintenance. Check back in a minute.<\/strong><\/p>\n\n\n\n
.maintenance<\/code> file. The automatic upgrade should be executed again, just in case it failed.<\/p>\n\n\n\n
An update was just released, so why does my blog not recognize the update is available?<\/h2>\n\n\n\n
\n
Why did I lose custom changes to the WordPress Default Theme during the last automatic upgrade?<\/h2>\n\n\n\n
How do you repair a MySQL database table?<\/h2>\n\n\n\n
\n
How do I empty a database table?<\/h2>\n\n\n\n
Emailed passwords are not being received<\/h2>\n\n\n\n
127.0.0.1<\/code> . Then in your php.ini<\/em>file, set the
SMTP<\/code> setting to the same IP address. Also set
smtp_port<\/code> to
25<\/code>.<\/p>\n\n\n\n
If your system email failed the SPF check, you can set up the credentials if you have access to your DNS records and your mail server\u2019s domain belongs to you. Check the return path of the email your system sent. If the mail server listed there has your domain name, you can set up SPF credentials. There are several how-tos on the Internet.<\/p>\n\n\n\nWhy can’t I see my posts? All I see is Sorry, no posts match your criteria<\/em>?<\/h2>\n\n\n\n
How do I solve the Headers already sent<\/em> warning problem?<\/h2>\n\n\n\n
Warning: Cannot modify header information - headers already sent by\n(output started at<\/pre>\n\n\n\n
<?php<\/code> tag or after a closing
?><\/code> tag, typically in wp-config.php<\/strong>. This can also happen in other edited PHP files that are not theme templates, 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 are an option, please follow the steps below.<\/p>\n\n\n\n
\n
UTF-8 BOM<\/code><\/strong> but plain
UTF-8<\/code><\/strong> or any without the
BOM<\/code><\/strong> suffix.<\/li>\n<\/ol>\n\n\n\n
\n
<?php some code; ?> <?php some other codes; ?> <\/code><\/pre>\n\n\n\n
<?php code; some other code; ?> <\/code><\/pre>\n\n\n\n
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<\/code>, then the problem is at line #34 of
wp-config.php<\/code>, not line #42 of
wp-login.php<\/code>. In this scenario, line #42 of
wp-login.php<\/code> is the victim. It is being affected by the excess whitespace at line #34 of
wp-config.php<\/code>.<\/p>\n\n\n\n
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<\/code>, then the problem is at line #8 of
admin-header.php<\/code>, not line #569 of
post.php<\/code>. In this scenario, line #569 of
post.php<\/code> is the victim. It is being affected by the excess whitespace at line #8 of
admin-header.php<\/code>.<\/p>\n\n\n\n
Why doesn’t my “Publish” or “Save Draft” button work?<\/h2>\n\n\n\n
How to fix 404 error when using Pretty Permalinks?<\/h2>\n\n\n\n
and delete the # in front of the line. Then stop Apache and start it again. Note:<\/strong> you may have to ask your host to activate mod_rewrite.<\/p>\n\n\n\nWhy isn’t the admin user listed as an author when editing posts?<\/h2>\n\n\n\n
\n
\n
Why is the wrong author name displayed for a post on a blog?<\/h2>\n\n\n\n
Why isn’t the admin user listed as an author when editing posts?<\/a><\/p>\n\n\n\nHow do I find more help?<\/h2>\n\n\n\n