<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Troubleshooting - CODIBU</title>
	<atom:link href="https://help.codibu.com/kbtopic/troubleshooting/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.codibu.com</link>
	<description>Hosting &#38; Domain,  Development &#38; Design, SEO &#38; Marketing, 2300+ Themes &#38; Plugins, Free SEO analysis &#38; tools</description>
	<lastBuildDate>Wed, 25 Jan 2023 19:54:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://help.codibu.com/wp-content/uploads/2022/07/favicon.png</url>
	<title>Troubleshooting - CODIBU</title>
	<link>https://help.codibu.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Common WordPress Errors</title>
		<link>https://help.codibu.com/blog/common-wordpress-errors/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=common-wordpress-errors</link>
					<comments>https://help.codibu.com/blog/common-wordpress-errors/#respond</comments>
		
		<dc:creator><![CDATA[JN C]]></dc:creator>
		<pubDate>Wed, 04 Nov 2020 09:19:35 +0000</pubDate>
				<guid isPermaLink="false">https://help.codibu.com/kb/common-wordpress-errors/</guid>

					<description><![CDATA[<p>If you are encountering a WordPress error message or white screen, don’t panic. Someone has likely encountered the same message before and it can easily be<span class="excerpt-hellip"> […]</span></p>
<p>The post <a href="https://help.codibu.com/blog/common-wordpress-errors/">Common WordPress Errors</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>If you are encountering a WordPress error message or white screen, don’t panic. Someone has likely encountered the same message before and it can easily be solved.</p>
<p>This page lists the most common WordPress errors experienced by WordPress users, and provides a starting point for fixing them. At<br />
WordPress Support, you will also find links to more detailed pages or forums where a volunteer will be there to help.</p>
<h2 id="the-white-screen-of-death" class="toc-heading">The White Screen of Death&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#the-white-screen-of-death"><span aria-hidden="true">#</span></a></h2>
<p>Both PHP errors and database errors can manifest as a white screen, a blank screen with no information, commonly known in the WordPress community as the&nbsp;<em>WordPress White Screen of Death</em>&nbsp;(WSOD).</p>
<p>Before resorting to desperate measures, there are a number of reasons for the WordPress white screen of death:</p>
<ul>
<li><strong>A Plugin is causing compatibility issues</strong>. If you can access the&nbsp;<a href="https://help.codibu.com/blog/kb/administration-screens/">Administration Screens</a>&nbsp;try deactivating all of your Plugins and then reactivating them one by one. If you are unable to access your Screens, log in to your website via&nbsp;<a href="https://help.codibu.com/blog/kb/ftp-clients/">FTP</a>. Locate the folder&nbsp;<code>wp-content/plugins</code>&nbsp;and rename the Plugin folder&nbsp;<code>plugins_old</code>. This will deactivate all of your Plugins. You can read more about manually deactivating your plugins in the&nbsp;<a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus">Troubleshooting FAQ</a>.</li>
<li><strong>Your Theme may be causing the problem</strong>. This is especially likely if you are experiencing the white screen of death after you have just activated a new Theme, or created a New Site in a WordPress Network. Log in to the WordPress Administration Screens and activate the default WordPress Theme (e.g. Twenty Seventeen). If you can’t access your Administration Screens, access your website via FTP and navigate to the&nbsp;<code>/wp-content/themes/</code>&nbsp;folder. Rename the folder for the active Theme.</li>
</ul>
<p>The&nbsp;<a href="https://help.codibu.com/blog/kb/editing-wp-config-php/#wp_debug">WP_DEBUG feature</a>&nbsp;often provides additional information.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="internal-server-error" class="toc-heading">Internal Server Error&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#internal-server-error"><span aria-hidden="true">#</span></a></h2>
<figure class="wp-block-image"><a href="https://help.codibu.com/wp-content/uploads/2020/11/internalservererror2.jpg"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-12005" src="https://help.codibu.com/wp-content/uploads/2020/11/internalservererror2.jpg" alt="" width="498" height="282"></a><figcaption>Internal Server Error message</figcaption></figure>
<p>There can be a number of reasons for an Internal Server Error. Here are some thing you can do to solve it:</p>
<ul>
<li>The most likely issue is a corrupted&nbsp;<code>.htaccess</code>&nbsp;file. Log in to your site root using FTP and rename your&nbsp;<code>.htaccess</code>&nbsp;file to&nbsp;<code>.htaccess_old</code>. Try loading your site to see if this has solved your problem. If it works, make sure to visit&nbsp;<a href="https://help.codibu.com/blog/kb/administration-screens/#settings-configuration-settings">Settings</a>&nbsp;&gt;&nbsp;<a href="https://help.codibu.com/blog/kb/administration-screens/#permalinks">Permalinks</a>&nbsp;and reset your&nbsp;<a href="https://help.codibu.com/blog/kb/using-permalinks/">permalinks</a>. This will generate a new&nbsp;<code>.htaccess</code>&nbsp;file for you.</li>
<li>Try deactivating all of your Plugins to see if it is a Plugin issue. If you are unable to access your WordPress Administration Screens, deactivate your Plugins via FTP by following&nbsp;<a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus">these instructions</a>.</li>
<li>Switch the Theme to the WordPress default Theme (e.g. Twenty Seventeen) to eliminate any Theme-related problems.</li>
<li>Increase the&nbsp;<a href="https://help.codibu.com/blog/kb/editing-wp-config-php/#increasing-memory-allocated-to-php">PHP Memory limit</a></li>
<li>Try re-uploading the&nbsp;<code>wp-admin</code>&nbsp;and&nbsp;<code>wp-includes</code>&nbsp;folders from a&nbsp;<a href="https://wordpress.org/download/">fresh install of WordPress</a>.</li>
</ul>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="error-establishing-database-connection" class="toc-heading">Error Establishing Database Connection&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#error-establishing-database-connection"><span aria-hidden="true">#</span></a></h2>
<p>If you get a page featuring the message “Error Establishing Database Connection,” this means that there is a problem with the connection to your database and there could be a number of reasons for this. The following are possible reasons and solutions.</p>
<h3 id="incorrect-wp-config-php-information" class="toc-heading">Incorrect wp-config.php Information&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#incorrect-wp-config-php-information"><span aria-hidden="true">#</span></a></h3>
<p>“Error establishing a database connection” is usually caused by an error in your&nbsp;<a href="https://help.codibu.com/blog/kb/editing-wp-config-php/">wp-config.php</a>&nbsp;file. Access your site in your FTP client. Open up&nbsp;<code>wp-config.php</code>&nbsp;and ensure that the following are correct:</p>
<ul>
<li>Database name</li>
<li>Database username</li>
<li>Database password</li>
<li>Database host</li>
</ul>
<p>Learn more about&nbsp;<a href="https://help.codibu.com/blog/kb/editing-wp-config-php/">editing wp-config.php</a>.</p>
<p>If you are sure your configuration is correct you could&nbsp;<a href="https://help.codibu.com/blog/kb/how-to-install-wordpress/#common-installation-problems">try resetting your MySQL password manually</a>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h3 id="problems-with-your-web-host" class="toc-heading">Problems with Your Web Host&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#problems-with-your-web-host"><span aria-hidden="true">#</span></a></h3>
<p>The next step is to contact your web host. The following hosting issues may be causing the problem:</p>
<ul>
<li>Your database has met its quota and has been shut down.</li>
<li>The server is down.</li>
</ul>
<p>Contact your hosting provider to see if either of these issues is causing your problem.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h3 id="compromised-website" class="toc-heading">Compromised Website&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#compromised-website"><span aria-hidden="true">#</span></a></h3>
<p>If you have checked&nbsp;<code>wp-config.php</code>&nbsp;for errors, and confirmed with your host for hosting issues, it is possible that your site has been hacked.</p>
<p>Scan your site with&nbsp;Sucuri SiteCheck&nbsp;to ensure that it hasn’t been compromised. If it has you should check out&nbsp;<a href="https://help.codibu.com/blog/kb/faq-my-site-was-hacked/">My Site was Hacked</a>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="failed-auto-upgrade" class="toc-heading">Failed Auto-Upgrade&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#failed-auto-upgrade"><span aria-hidden="true">#</span></a></h2>
<p>There will be situations when the WordPress auto-update feature fails. Symptoms include:</p>
<ul>
<li>A blank white screen and no information.</li>
<li>A warning that the update failed.</li>
<li>A PHP error message.</li>
</ul>
<p>The WordPress automatic upgrade feature may fail due to a glitch in the connection with the main WordPress files, a problem with your Internet connection during upgrade, or incorrect&nbsp;<a href="https://help.codibu.com/blog/kb/changing-file-permissions/">File Permissions</a></p>
<p>To update your WordPress site manually, see the&nbsp;<a href="https://help.codibu.com/blog/kb/updating-wordpress/#manual-update">Manual Update article</a>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="connection-timed-out" class="toc-heading">Connection Timed Out&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#connection-timed-out"><span aria-hidden="true">#</span></a></h2>
<p>The connection timed out error appears when your website is trying to do more than your server can manage. It is particularly common on shared hosting where your memory limit is restricted. Here are some things you can try:</p>
<ul>
<li><strong>Deactivate all Plugins.</strong>&nbsp;If deactivating all the WordPress Plugins on your site resolves the issue, reactivate them one-by-one to see which plugin is causing the problem. If you are unable to access your Administration Screens,&nbsp;<a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus">read about how to manually deactivate your plugins</a>.</li>
<li><strong>Switch to the default WordPress Theme.</strong>&nbsp;This should rule out any Theme-related problems.</li>
<li><strong>Increase your&nbsp;<a href="https://help.codibu.com/blog/kb/editing-wp-config-php/#increasing-memory-allocated-to-php">memory limit in wp-config.php</a></strong>. If you are on shared hosting you may have to ask your hosting provider to increase your memory limit for you.</li>
<li><strong>Increase the maximum execution time in your&nbsp;php.ini&nbsp;file.</strong>&nbsp;This is not a WordPress core file so if you are not sure how to edit it, contact your hosting provider to ask them to increase your maximum execution time. See below instructions for increasing maximum execution time.</li>
</ul>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="maintenance-mode-following-upgrade" class="toc-heading">Maintenance Mode Following Upgrade&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#maintenance-mode-following-upgrade"><span aria-hidden="true">#</span></a></h2>
<figure class="wp-block-image"><a href="https://help.codibu.com/wp-content/uploads/2020/11/maintenancemode1.jpg"><img decoding="async" class="aligncenter size-full wp-image-12019" src="https://help.codibu.com/wp-content/uploads/2020/11/maintenancemode1.jpg" alt="" width="600" height="118"></a></figure>
<p>When WordPress updates, it automatically installs a&nbsp;<code>.maintenance</code>&nbsp;file. Following upgrade, you may receive a message that says “Briefly unavailable for scheduled maintenance. Please check back in a minute.” The maintenance file may not have been removed properly.</p>
<p>To remove this message do the following:</p>
<ol>
<li>Log in to your website using your FTP program</li>
<li>Delete the&nbsp;<code>.maintenance</code>&nbsp;file, which will be found in your site root.</li>
</ol>
<p>Read more about the&nbsp;<a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-to-clear-the-briefly-unavailable-for-scheduled-maintenance-message-after-doing-automatic-upgrade">maintenance mode issue</a>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="you-make-changes-and-nothing-happens" class="toc-heading">You Make Changes and Nothing Happens&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#you-make-changes-and-nothing-happens"><span aria-hidden="true">#</span></a></h2>
<p>If you are making changes to your website and you do not see the changes in your browser, you may need to clear your&nbsp;browser cache. Your browser stores information about the websites that you visit. This makes it faster to load websites when you visit them because the browser just has to reload information already stored on your computer, rather than downloading it again.</p>
<p>If you make a change to a website and the browser does not think it is significant, it will simply load the data from your cache, and you won’t see your changes. To fix the problem, simply&nbsp;empty your browser cache&nbsp;or close the tab and reopen the link.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="pretty-permalinks-404-and-images-not-working" class="toc-heading">Pretty Permalinks 404 and Images not Working&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#pretty-permalinks-404-and-images-not-working"><span aria-hidden="true">#</span></a></h2>
<p>If you are experiencing 404 errors with pretty&nbsp;<a href="https://help.codibu.com/blog/kb/using-permalinks/">permalinks</a>&nbsp;and a white screen when you upload images,&nbsp;<a href="https://help.codibu.com/blog/kb/glossary#mod_rewrite">mod_rewrite</a>&nbsp;may not be enabled in Apache by default. Mod_rewrite is an extension module of the&nbsp;<a href="https://help.codibu.com/blog/kb/glossary#apache">Apache web server</a>&nbsp;software which allows for “rewriting” of&nbsp;<a href="http://en.wikipedia.org/wiki/Url" target="_blank" rel="noreferrer noopener" aria-label="If you are experiencing 404 errors with pretty permalinks and a white screen when you upload images, mod_rewrite may not be enabled in Apache by default. Mod_rewrite is an extension module of the Apache web server software which allows for &quot;rewriting&quot; of URLs on-the-fly. It's what you need to make pretty permalinks work. (opens in a new tab)">URLs</a>&nbsp;on-the-fly. It’s what you need to make pretty permalinks work.</p>
<p><a href="https://help.codibu.com/blog/kb/glossary#multisite">WordPress Multisite</a>&nbsp;networks usually experience this but it can also occur on shared hosting providers or after a&nbsp;<a href="https://help.codibu.com/blog/kb/moving-wordpress/">site migration or server move</a>.</p>
<p>Reset your permalinks through&nbsp;<strong>Settings &gt; Permalinks.</strong>&nbsp;If this does not work, you may have to edit the&nbsp;<code>.htaccess</code>&nbsp;file manually.</p>
<pre class="wp-block-preformatted"># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond&nbsp;%{REQUEST_FILENAME}&nbsp;!-f
RewriteCond&nbsp;%{REQUEST_FILENAME}&nbsp;!-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
# END WordPress</pre>
<p>If you are not familiar with editing your&nbsp;<code>.htaccess</code>&nbsp;file, contact your hosting provider to ask them to turn on mod_rewrite rules. There is more information on&nbsp;<a href="https://help.codibu.com/blog/kb/using-permalinks/#using-pretty-permalinks">pretty permalinks in the WordPress Codex</a>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="custom-post-type-404-errors" class="toc-heading">Custom Post Type 404 Errors&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#custom-post-type-404-errors"><span aria-hidden="true">#</span></a></h2>
<p>You may experience problems with 404 errors and&nbsp;<a href="https://help.codibu.com/blog/kb/post-types/#custom-types">custom post types</a>. Try the following steps:</p>
<ol>
<li>Make sure that none of your Custom Post Types and single pages have the same name. If they do, rename the single page, including the&nbsp;<a href="https://help.codibu.com/blog/kb/glossary/#post-slug">slug</a>.</li>
<li>Log in to your WordPress Administration Screens, navigate to&nbsp;<strong>Settings &gt; Permalinks</strong>. Select the default permalinks. Save. Then reselect your preferred permalinks. This will flush the rewrite rules and should solve your problem.</li>
</ol>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="specific-error-messages" class="toc-heading">Specific Error Messages&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#specific-error-messages"><span aria-hidden="true">#</span></a></h2>
<p>There are a number of different errors that will appear in your error logs. To access your error logs you will need to turn on&nbsp;<a href="https://help.codibu.com/blog/kb/editing-wp-config-php/#wp_debug">debugging</a>&nbsp;and then locate your error log via FTP. The following information will help you to decipher some of the common error messages.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h3 id="php-errors" class="toc-heading">PHP Errors&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#php-errors"><span aria-hidden="true">#</span></a></h3>
<p>Below are some common PHP error messages.</p>
<h4 id="fatal-errors-and-warnings" class="toc-heading">Fatal Errors and Warnings&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#fatal-errors-and-warnings"><span aria-hidden="true">#</span></a></h4>
<h5>CANNOT MODIFY HEADER INFORMATION – HEADERS ALREADY SENT</h5>
<p>If you receive a warning that WordPress cannot modify header information and headers are already sent, it usually means that you have spaces or characters before the opening tags or after the closing tags. Read how to&nbsp;<a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-do-i-solve-the-headers-already-sent-warning-problem">fix the headers already sent error</a>.</p>
<p>If you are experiencing this problem when you have just installed WordPress you may have introduced a syntax error into&nbsp;<code>wp-config.php</code>.&nbsp;<a href="https://help.codibu.com/blog/kb/how-to-install-wordpress/#common-installation-problems">These instructions will help you to fix the error</a>.</p>
<h5>CALL TO UNDEFINED FUNCTION</h5>
<p>An error reading call to undefined function could mean that a WordPress Plugin is trying to find a file or data which isn’t present or accessible in the code. Reasons for this include:</p>
<ul>
<li>An error when trying to auto-install or auto-upgrade a Plugin. Try&nbsp;<a href="https://help.codibu.com/blog/kb/managing-plugins/#manual-plugin-installation">installing or upgrading the Plugin manually</a>.</li>
<li>An error when trying to auto-install or auto-upgrade a Theme. Try&nbsp;<a href="https://help.codibu.com/blog/kb/using-themes/#adding-new-themes">installing or upgrading the Theme manually</a>.</li>
<li>You may be using an&nbsp;<a href="https://help.codibu.com/blog/kb/managing-plugins/#plugin-compatibility">incompatible WordPress Plugin</a>&nbsp;or incompatible Theme. This could happen with older versions of WordPress and a new WordPress Plugin, or if you are trying to use a WordPress Multisite Plugin on a single site installation. Upgrade WordPress to resolve this issue.</li>
<li>You may be trying to call a function that doesn’t exist. Check&nbsp;<code>functions.php</code>&nbsp;for misspellings.</li>
</ul>
<p>Try deactivating the WordPress Plugin or changing the WordPress Theme that caused the error to appear. If you are unable to do this from within the Administration Screens, you may have to do this&nbsp;<a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus">manually via FTP</a>.</p>
<h5>ALLOWED MEMORY SIZE EXHAUSTED</h5>
<p>An Allowed Memory Size Exhausted error means that your WordPress installation doesn’t have enough memory to achieve what you want. You can try out the following steps:</p>
<ul>
<li>Increase your&nbsp;<a href="https://help.codibu.com/blog/kb/editing-wp-config-php/#increasing-memory-allocated-to-php">memory limit in wp-config.php</a></li>
<li>Increase your memory limit by editing&nbsp;<code>php.ini</code>. This is not a file that comes with WordPress so if you are unfamiliar with it you should contact your web host about increasing your memory limit.</li>
</ul>
<h5>MAXIMUM EXECUTION TIME EXCEEDED</h5>
<p>You may receive a message such as “Maximum execution time of 30 seconds exceeded” or “Maximum execution time of 60 seconds exceeded”. This means that it is taking to longer for a process to complete and it is timing out. There are a number of ways to fix this error.</p>
<p><strong>Editing&nbsp;<code>.htaccess</code></strong></p>
<p><strong>Make sure you back up&nbsp;<code>.htaccess</code>&nbsp;before you edit it.</strong></p>
<p>Add the following line to&nbsp;<code>.htaccess</code>:</p>
<pre class="wp-block-preformatted">php_value max_execution_time 60</pre>
<p><strong>Editing&nbsp;<code>php.ini</code></strong></p>
<p>Add the following to&nbsp;<code>php.ini</code></p>
<pre class="wp-block-preformatted">max_execution_time = 60</pre>
<p>If you are unsure of how to make these changes, or if you are on shared hosting that prevents you from making them yourself, you should contact your hosting provider and ask them to increase your maximum execution time.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h4 id="parse-errors" class="toc-heading">Parse errors&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#parse-errors"><span aria-hidden="true">#</span></a></h4>
<h5>SYNTAX ERROR</h5>
<p>A syntax error means that you have made a mistake while creating your PHP structure. You could, for example, be;</p>
<ul>
<li>Missing a&nbsp;<code>;</code>&nbsp;at the end of an individual line.</li>
<li>Using curly quotation marks.</li>
<li>Missing a curly bracket.</li>
</ul>
<p>When this error appears it will tell you which file the error appears in (<code>functions.php</code>&nbsp;for example) and approximately which line (it may not always be the exact line so be sure to check just before and just after) in the code.</p>
<h5>UNEXPECTED</h5>
<p>If you are receiving an error which says ‘parse error: unexpected’ this usually means that you have forgotten to include a character. The most common are:</p>
<ul>
<li><strong>Unexpected ‘=’&nbsp;</strong>: you have forgotten to include the $ when referencing a variable</li>
<li><strong>Unexpected ‘)’&nbsp;</strong>: you have forgotten to include the opening bracket (</li>
<li><strong>Unexpected ‘(‘&nbsp;</strong>: you have forgotten to include the closing bracket )</li>
<li><strong>Unepxpected T_STRING</strong>: you have forgotten a quotation mark or a semi-colon at the end of the previous line</li>
<li><strong>Unexpected T_ELSE</strong>: you have an else statement with no opening if statement</li>
</ul>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h4 id="use-of-an-undefined-constant" class="toc-heading">Use of an undefined constant&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#use-of-an-undefined-constant"><span aria-hidden="true">#</span></a></h4>
<p>As with parse errors, “use of an undefined constant” means that you are missing a character. It could be one of the following:</p>
<ul>
<li>Missing a $ when referencing a viariable</li>
<li>Missing quotation marks around array keys</li>
</ul>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h3 id="database-errors" class="toc-heading">Database Errors&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#database-errors"><span aria-hidden="true">#</span></a></h3>
<p>The following errors may appear in relation to your WordPress database.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h4 id="error-13-cannot-createwrite-to-file" class="toc-heading">Error 13 – Cannot Create/Write to File&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#error-13-cannot-createwrite-to-file"><span aria-hidden="true">#</span></a></h4>
<p>There are a number of reasons why you may be experiencing this error.</p>
<p><strong>MySQL cannot create a temporary file.&nbsp;</strong></p>
<p>The MySQL variable&nbsp;<code>tmpdir</code>&nbsp;is set to a directory that cannot be written to when using PHP to access MySQL.&nbsp;To verify this, enter MySQL at the command line and type&nbsp;<code>show variables</code>.&nbsp;You’ll get a long list and one of them will read:&nbsp;<strong>tmpdir = /somedir/</strong>&nbsp;(whatever your setting is.)</p>
<p>To solve this, alter the&nbsp;<strong>tmpdir</strong>&nbsp;variable to point to a writable directory.</p>
<ol>
<li>Find the&nbsp;<strong>my.cnf</strong>&nbsp;file. On *nix systems this is usually in&nbsp;<strong>/etc/</strong>. On Windows system, Find the&nbsp;<strong>my.ini</strong>.</li>
<li>Once found, open this in a simple text editor and find the&nbsp;<strong>[mysqld]</strong>&nbsp;section.</li>
<li>Under this section, find the&nbsp;<strong>tmpdir</strong>&nbsp;line. If this line is commented (has a&nbsp;<strong>#</strong>&nbsp;at the start), delete the&nbsp;<strong>#</strong>&nbsp;and edit the line so that it reads:&nbsp;<strong>tmpdir = /writable/dir</strong>&nbsp;where&nbsp;<strong>/writable/dir</strong>&nbsp;is a directory to which you can write. Some use&nbsp;<strong>/tmp</strong>, or you might also try&nbsp;<strong>/var/tmp</strong>&nbsp;or&nbsp;<strong>/usr/tmp</strong>. On Windows, use&nbsp;<strong>C:/Windows/tmp</strong>.</li>
<li>Save the file.</li>
<li>Shutdown MySQL by typing&nbsp;<code>mysqlshutdown -u -p shutdown</code>.</li>
<li>Start MySQL by going to the MySQL directory and typing&nbsp;<code>./bin/safe_mysqld &amp;</code>. Usually the MySQL directory is in&nbsp;<strong>/usr/local</strong>&nbsp;or sometimes in&nbsp;<strong>/usr/</strong>&nbsp;on Linux systems.</li>
</ol>
<p><strong>The&nbsp;</strong><a href="https://help.codibu.com/blog/kb/changing-file-permissions/"><strong>file permissions</strong></a><strong>&nbsp;are incorrect</strong></p>
<p>Correct the&nbsp;<a href="https://help.codibu.com/blog/kb/changing-file-permissions/">File Permissions</a>.</p>
<p>If none of this make sense and you have someone to administrate your system for you, show the above to them and they should be able to figure it out.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h4 id="create-command-denied-to-user" class="toc-heading">CREATE Command Denied to User&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#create-command-denied-to-user"><span aria-hidden="true">#</span></a></h4>
<p>This error occurs when the user assigned to the database does not have adequate permissions to perform the action to create columns and tables in the database. You will need to log in to&nbsp;CPanel&nbsp;or&nbsp;Plesk&nbsp;to give your database user adequate permissions.</p>
<p>Alternatively you can&nbsp;create a new user to assign to your database. If you do create a new user you will need to ensure that it is&nbsp;updated in&nbsp;<code>wp-config.php</code>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h4 id="error-28" class="toc-heading">Error 28&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#error-28"><span aria-hidden="true">#</span></a></h4>
<p>It could be because:</p>
<ul>
<li>you are out of space on /tmp (wherever tmpdir is), or,</li>
<li>you have too many files in /tmp (even if there is lots of free space), or,</li>
<li>Your cache on your server is full</li>
</ul>
<p>This is a MySQL error and has nothing to do with WordPress directly; you should contact your host about it. Some users have reported that running a “repair table” command in&nbsp;phpMyAdmin&nbsp;fixed the problem.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h4 id="error-145" class="toc-heading">Error 145&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#error-145"><span aria-hidden="true">#</span></a></h4>
<p>This indicates that a table in your database is damaged or corrupted. If you are comfortable using&nbsp;phpMyAdmin&nbsp;you can use&nbsp;.</p>
<p><strong>Always&nbsp;backup your database&nbsp;before performing any actions on it.</strong></p>
<p>If you have not used phpMyAdmin before, or are uncomfortable doing so, contact your web host and ask them to run CHECK/REPAIR on your database.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h4 id="unknown-column" class="toc-heading">Unknown Column&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#unknown-column"><span aria-hidden="true">#</span></a></h4>
<p>An unknown column error can be caused by a missing column in the database. If you have just upgraded WordPress then try manually upgrading again. To update your WordPress site manually, see the&nbsp;<a href="https://help.codibu.com/blog/kb/updating-wordpress/#manual-update">Update article</a>.</p>
<p>If you are running a database query when you encounter the error then you may by using incorrect quotation marks for the identifier quote character. This&nbsp;question on Stack Overflow provides more details. Also see the&nbsp;MySQL documentation.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/common-wordpress-errors/#top">Top ↑</a></p>
<h2 id="resources" class="toc-heading">Resources&nbsp;<a class="anchor" href="https://help.codibu.com/blog/kb/common-wordpress-errors/#resources"><span aria-hidden="true">#</span></a></h2>
<ul>
<li>MySQL Error Codes and Messages</li>
</ul><p>The post <a href="https://help.codibu.com/blog/common-wordpress-errors/">Common WordPress Errors</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://help.codibu.com/blog/common-wordpress-errors/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Login Trouble</title>
		<link>https://help.codibu.com/blog/login-trouble/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=login-trouble</link>
					<comments>https://help.codibu.com/blog/login-trouble/#respond</comments>
		
		<dc:creator><![CDATA[JN C]]></dc:creator>
		<pubDate>Wed, 04 Nov 2020 09:19:31 +0000</pubDate>
				<guid isPermaLink="false">https://help.codibu.com/kb/login-trouble/</guid>

					<description><![CDATA[<p>If you are having trouble logging in to your WordPress Administration Screen, here are some possible solutions. Enable Cookies # In order to make sure that cookies are<span class="excerpt-hellip"> […]</span></p>
<p>The post <a href="https://help.codibu.com/blog/login-trouble/">Login Trouble</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>If you are having trouble logging in to your WordPress <a href="https://help.codibu.com/blog/kb/administration-screens/">Administration Screen</a>, here are some possible solutions.</p>
<h2 id="enable-cookies" class="toc-heading" tabindex="-1">Enable Cookies <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#enable-cookies"><span aria-hidden="true">#</span></a></h2>
<p>In order to make sure that cookies are enabled for your browser, you need to:</p>
<ol>
<li>Clear your browser cookies.</li>
<li>Clear your browser cache.</li>
</ol>
<p>To see how to clear cookies and caches on various browsers, visit Clearing Cache and Cookies.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top">↑</a></p>
<h2 id="wordpress-multisite-network" class="toc-heading" tabindex="-1">WordPress MultiSite Network <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#wordpress-multisite-network"><span aria-hidden="true">#</span></a></h2>
<ul>
<li>Check your wp-config.php file.</li>
<li>Verify the DOMAIN_CURRENT_SITE value.</li>
</ul>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="disable-plugins" class="toc-heading" tabindex="-1">Disable Plugins <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#disable-plugins"><span aria-hidden="true">#</span></a></h2>
<p>Some <a href="https://help.codibu.com/blog/kb/plugins/">WordPress Plugins</a> may interfere with the login process. Disable all of your WordPress Plugins, either through the <a href="https://help.codibu.com/blog/kb/administration-screens/">Administration Screen</a> or by removing them from the <code>/wp-content/plugins/</code> folder, so they will not be recognized by the program.</p>
<p>Alternatively, you can rename the plugins folder to something else temporarily to something like</p>
<p><code>/wp-content/pluginsXX/</code> and they will not be recognized. Rename the folder back to <code>/wp-content/plugins/</code> once the base WordPress installation has been recovered.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="deactivate-theme" class="toc-heading" tabindex="-1">Deactivate Theme <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#deactivate-theme"><span aria-hidden="true">#</span></a></h2>
<ul>
<li>Rename the active theme folder (in wp-content/themes) by using <a href="https://help.codibu.com/blog/kb/ftp-clients/">FTP</a>. Once renamed, WordPress will revert to using the {{DefaultTheme}}. When finally logged in, change to a different theme.</li>
<li>To find out what caused problem in the theme, upload and run this code when the theme is active:</li>
</ul>
<div>
<div id="highlighter_471610" class="syntaxhighlighter  php">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gutter">
<div class="line number1 index0 alt2">1</div>
<div class="line number2 index1 alt1">2</div>
<div class="line number3 index2 alt2">3</div>
<div class="line number4 index3 alt1">4</div>
<div class="line number5 index4 alt2">5</div>
<div class="line number6 index5 alt1">6</div>
</td>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"><code class="php plain">&lt;?php</code></div>
<div class="line number2 index1 alt1"><code class="php spaces">    </code><code class="php functions">ini_set</code><code class="php plain">(</code><code class="php string">'display_errors'</code><code class="php plain">,</code><code class="php string">'1'</code><code class="php plain">);</code></div>
<div class="line number3 index2 alt2"><code class="php spaces">    </code><code class="php functions">ini_set</code><code class="php plain">(</code><code class="php string">'display_startup_errors'</code><code class="php plain">,</code><code class="php string">'1'</code><code class="php plain">);</code></div>
<div class="line number4 index3 alt1"><code class="php spaces">    </code><code class="php functions">error_reporting</code> <code class="php plain">(E_ALL); </code></div>
<div class="line number5 index4 alt2"><code class="php spaces">    </code><code class="php keyword">include</code><code class="php plain">(</code><code class="php string">'index.php'</code><code class="php plain">);</code></div>
<div class="line number6 index5 alt1"><code class="php plain">?&amp;gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="new-login-file" class="toc-heading" tabindex="-1">New Login File <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#new-login-file"><span aria-hidden="true">#</span></a></h2>
<p>Sometimes the <code>wp-login.php</code> file may have been corrupted or uploaded incorrectly.</p>
<ul>
<li>Delete <code>wp-login.php</code> off of your server and upload a new copy from a fresh WordPress download. Remember, overwriting file via <a href="https://help.codibu.com/blog/kb/ftp-clients/">FTP</a> can lead to incomplete transfers.</li>
<li>Edit <code>wp-login.php</code> as follows:
<ul>
<li>Go to the <code>case retrievepassword</code> section, found under this comment:</li>
</ul>
</li>
</ul>
<div>
<div id="highlighter_873421" class="syntaxhighlighter nogutter  php">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"><code class="php comments">// redefining user_login ensures we return the right case in the email</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Replace:</p>
<div>
<div id="highlighter_46437" class="syntaxhighlighter nogutter  php">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"><code class="php variable">$user_login</code> <code class="php plain">= </code><code class="php variable">$user_data</code><code class="php plain">[</code><code class="php string">"user_login"</code><code class="php plain">];</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>With:</p>
<div>
<div id="highlighter_836703" class="syntaxhighlighter nogutter  php">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"><code class="php variable">$user_login</code> <code class="php plain">= </code><code class="php variable">$user_data</code><code class="php plain">-&amp;gt;user_login;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="edit-users-table" class="toc-heading" tabindex="-1">Edit Users Table <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#edit-users-table"><span aria-hidden="true">#</span></a></h2>
<p>Access your site’s phpMyAdmin and edit the database carefully.</p>
<ul>
<li>Open the WordPress database.</li>
<li>Click on the users table in the left menu (default is <code>wp_users</code>, or <code><em>yourprefix</em>_users </code>if you defined a different table prefix.)</li>
<li>Click <strong>BROWSE</strong>.</li>
<li>Click on the <strong>EDIT</strong> button next to the admin user.</li>
<li>Delete whatever is in the password field.</li>
<li>Enter your desired password.</li>
<li>From the <strong>Function</strong> drop-down list, choose MD5.</li>
<li>Save the info in the database.</li>
<li>Log in to WordPress using “admin” and the password you used.</li>
<li>In the case of newer versions of WordPress, the password is double hashed, but as long as you md5 the password, it will complete the hash (it upgrades your password for you).</li>
</ul>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="password-problems" class="toc-heading" tabindex="-1">Password Problems <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#password-problems"><span aria-hidden="true">#</span></a></h2>
<p>For information on problems logging in due to a wrong or lost password, see Resetting Your Password. Remember: the Username and Password fields are <strong>case sensitive</strong>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="site-url-redirecting" class="toc-heading" tabindex="-1">Site URL Redirecting <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#site-url-redirecting"><span aria-hidden="true">#</span></a></h2>
<p>In certain cases your WordPress address URI may have been reset.</p>
<ul>
<li>Check the <strong>siteurl</strong> value in the <em>wp-options</em> table of your WordPress database. A guide to doing this is available here.</li>
<li>Is it set as <code>http:/</code>?</li>
<li>If it is, change <strong>siteurl</strong> to the correct value.</li>
<li>Open <code>wp-login.php</code> in a text-editor and comment or delete the following lines:</li>
</ul>
<div>
<div id="highlighter_428460" class="syntaxhighlighter nogutter  php">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"><code class="php comments">// If someone has moved WordPress let's try to detect it</code></div>
<div class="line number2 index1 alt1"><code class="php keyword">if</code> <code class="php plain">( dirname( </code><code class="php string">'http://'</code> <code class="php plain">. </code><code class="php variable">$_SERVER</code><code class="php plain">[</code><code class="php string">'HTTP_HOST'</code><code class="php plain">] . </code><code class="php variable">$_SERVER</code><code class="php plain">[</code><code class="php string">'PHP_SELF'</code><code class="php plain">]) != get_settings(</code><code class="php string">'siteurl'</code><code class="php plain">) )</code></div>
<div class="line number3 index2 alt2"><code class="php spaces">  </code><code class="php plain">update_option( </code><code class="php string">'siteurl'</code><code class="php plain">, dirname(</code><code class="php string">'http://'</code> <code class="php plain">. </code><code class="php variable">$_SERVER</code><code class="php plain">[</code><code class="php string">'HTTP_HOST'</code><code class="php plain">] . </code><code class="php variable">$_SERVER</code><code class="php plain">[</code><code class="php string">'PHP_SELF'</code><code class="php plain">]) );</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Changed your WordPress address URI and cannot login nor access the database (but still can access the login page) ?</p>
<p><code>wp-login.php</code> can be used to reset the address:</p>
<div>
<div id="highlighter_907301" class="syntaxhighlighter nogutter  php">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"><code class="php comments">//FIXME: do comment/remove these hack lines. (once the database is updated)</code></div>
<div class="line number2 index1 alt1"><code class="php plain">update_option( </code><code class="php string">'siteurl'</code><code class="php plain">, </code><code class="php string">'http://your.domain.name/the/path'</code> <code class="php plain">);</code></div>
<div class="line number3 index2 alt2"><code class="php plain">update_option( </code><code class="php string">'home'</code><code class="php plain">, </code><code class="php string">'http://your.domain.name/the/path'</code> <code class="php plain">);</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top">↑</a></p>
<h2 id="subdomains-or-subdirectories" class="toc-heading" tabindex="-1">Subdomains or Subdirectories <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#subdomains-or-subdirectories"><span aria-hidden="true">#</span></a></h2>
<p>In your <code>wp-config.php</code> try changing from:</p>
<div>
<div id="highlighter_157020" class="syntaxhighlighter nogutter  php">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"><code class="php plain">define( </code><code class="php string">'SUBDOMAIN_INSTALL'</code><code class="php plain">, true );</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>To:</p>
<div>
<div id="highlighter_621353" class="syntaxhighlighter nogutter  php">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"><code class="php plain">define( </code><code class="php string">'SUBDOMAIN_INSTALL'</code><code class="php plain">, false );</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="headers-already-sent" class="toc-heading" tabindex="-1">Headers Already Sent <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#headers-already-sent"><span aria-hidden="true">#</span></a></h2>
<p>If you get an error about <strong>headers already sent</strong>, see <a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-do-i-solve-the-headers-already-sent-warning-problem">Solving the Headers Already Being Sent Problem</a>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="check-your-url-options" class="toc-heading" tabindex="-1">Check Your URL Options <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#check-your-url-options"><span aria-hidden="true">#</span></a></h2>
<p>In some situations, your blog can be seen from inside your domain, but not outside. Following the instruction above about changing the <em>wp-options</em> MySQL table might still result in login failure.</p>
<p>In this event, double-check your <em>wp-options</em> table <strong>siteurl</strong> (WordPress address URL) and <strong>home</strong> (Blog Address URL) values to make sure they reference the <strong>same</strong> base externally available address; i.e., http://blog.yourdomain.com. The standard install may set them to your local (internal) host name, such as http://servername</p>
<p>Another issue may be if you are redirecting using .htaccess from a non-www url prefix to a www while you have the <em>wp-options</em> table <strong>siteurl</strong> (WordPress address URL) and <strong>home</strong> (Blog Address URL) set with non-www prefix. Consequently this would create an endless loop which you need to avoid.</p>
<p>One way is to disable the .htaccess redirection temporarily by placing <code>#</code> before the line or eliminating the entries entirely and trying to Login again.</p>
<p>Advanced users may want to adjust the <em>wp-options</em> table <strong>siteurl</strong> (WordPress address URL) and <strong>home</strong> (Blog Address URL) through the database.</p>
<p>Notice that this issue can also occur if you are redirecting from www to non-www but have your <em>wp-options</em> table <strong>siteurl</strong> (WordPress address URL) and <strong>home</strong> (Blog Address URL) set with a www url prefix.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top</a><a href="https://help.codibu.com/blog/kb/login-trouble/#top"> ↑</a></p>
<h2 id="check-your-firewall" class="toc-heading" tabindex="-1">Check your Firewall <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#check-your-firewall"><span aria-hidden="true">#</span></a></h2>
<p>Some firewalls (e.g., eTrust Personal Firewall) block you from logging in to WordPress. Disable your firewall and try to log in again.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/login-trouble/#top">Top ↑</a></p>
<h2 id="if-all-else-fails" class="toc-heading" tabindex="-1">If All Else Fails <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#if-all-else-fails"><span aria-hidden="true">#</span></a></h2>
<p>If these steps fail, please indicate that you have tried all these possible solutions when posting at the WordPress Support Forum. Be sure to give details of your server setup, if you know it, including mySQL and PHP versions, as well as your operating system (OS), browser, and the WordPress version that is causing these problems.</p>
<div class="wp-block-group has-background">
<div class="wp-block-group__inner-container">
<h4 id="changelog" class="toc-heading" tabindex="-1">Changelog <a class="anchor" href="https://help.codibu.com/blog/kb/login-trouble/#changelog"><span aria-hidden="true">#</span></a></h4>
<ul>
<li>Removed 2020-06-20
<ul>
<li>Removed ‘Secure HTTPS’, because its advice is modifying core file.</li>
</ul>
</li>
</ul>
</div>
</div><p>The post <a href="https://help.codibu.com/blog/login-trouble/">Login Trouble</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://help.codibu.com/blog/login-trouble/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Debugging in WordPress</title>
		<link>https://help.codibu.com/blog/debugging-in-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debugging-in-wordpress</link>
					<comments>https://help.codibu.com/blog/debugging-in-wordpress/#respond</comments>
		
		<dc:creator><![CDATA[JN C]]></dc:creator>
		<pubDate>Wed, 04 Nov 2020 09:19:27 +0000</pubDate>
				<guid isPermaLink="false">https://help.codibu.com/kb/debugging-in-wordpress/</guid>

					<description><![CDATA[<p>Debugging PHP code is part of any project, but WordPress comes with specific debug systems designed to simplify the process as well as standardize code across<span class="excerpt-hellip"> […]</span></p>
<p>The post <a href="https://help.codibu.com/blog/debugging-in-wordpress/">Debugging in WordPress</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Debugging PHP code is part of any project, but WordPress comes with specific debug systems designed to simplify the process as well as standardize code across the core, plugins and themes. This page describes the various debugging tools in WordPress and how to be more productive in your coding as well as increasing the overall quality and interoperativity of your code.</p>
<p>For non-programmers or general users, these options can be used to show detailed information about errors.</p>
<h2 id="wp_debug" class="toc-heading" tabindex="-1">WP_DEBUG <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#wp_debug"><span aria-hidden="true">#</span></a></h2>
<p><code>WP_DEBUG</code> is a PHP constant (a permanent global variable) that can be used to trigger the “debug” mode throughout WordPress. It is assumed to be false by default and is usually set to true in the <a href="https://help.codibu.com/blog/kb/editing-wp-config-php/">wp-config.php</a> file on development copies of WordPress.</p>
<pre class="wp-block-preformatted">// This enables debugging.
define( 'WP_DEBUG', true );</pre>
<pre id="block-01d51e79-c66d-4135-abfc-213df8cbabe6" class="wp-block-preformatted">// This disables debugging.
define( 'WP_DEBUG', false );</pre>
<p><strong>Note</strong>: The <code>true</code> and <code>false</code> values in the example are not surrounded by apostrophes (‘) because they are boolean (true/false) values. If you set constants to <code>'false'</code>, they will be interpreted as true because the quotes make it a string rather than a boolean.</p>
<p>It is not recommended to use <code>WP_DEBUG</code> or the other debug tools on live sites; they are meant for local testing and staging installs.</p>
<h3 id="php-errors-warnings-and-notices" class="toc-heading" tabindex="-1">PHP Errors, Warnings, and Notices <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#php-errors-warnings-and-notices"><span aria-hidden="true">#</span></a></h3>
<p>Enabling <code>WP_DEBUG</code> will cause all PHP errors, notices and warnings to be displayed. This is likely to modify the default behavior of PHP which only displays fatal errors and/or shows a white screen of death when errors are reached.</p>
<p>Showing all PHP notices and warnings often results in error messages for things that don’t seem broken, but do not follow proper data validation conventions inside PHP. These warnings are easy to fix once the relevant code has been identified, and the resulting code is almost always more bug-resistant and easier to maintain.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top">Top</a><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top"> ↑</a></p>
<h3 id="deprecated-functions-and-arguments" class="toc-heading" tabindex="-1">Deprecated Functions and Arguments <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#deprecated-functions-and-arguments"><span aria-hidden="true">#</span></a></h3>
<p>Enabling <code>WP_DEBUG</code> will also cause notices about deprecated functions and arguments within WordPress that are being used on your site. These are functions or function arguments that have not been removed from the core code yet but are slated for deletion in the near future. Deprecation notices often indicate the new function that should be used instead.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top">Top</a><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top"> ↑</a></p>
<h2 id="wp_debug_log" class="toc-heading" tabindex="-1">WP_DEBUG_LOG <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#wp_debug_log"><span aria-hidden="true">#</span></a></h2>
<p><code>WP_DEBUG_LOG</code> is a companion to WP_DEBUG that causes all errors to also be saved to a debug.log log file This is useful if you want to review all notices later or need to view notices generated off-screen (e.g. during an AJAX request or wp-cron run).</p>
<p>Note that this allows you to write to log file using PHP’s built in <code>error_log()</code> function, which can be useful for instance when debugging Ajax events.</p>
<p>When set to <code>true</code>, the log is saved to <code>debug.log</code> in the content directory (usually <code>wp-content/debug.log</code>) within your site’s filesystem. Alternatively, you can set it to a valid file path to have the file saved elsewhere.</p>
<pre class="wp-block-preformatted">define( 'WP_DEBUG_LOG', true );
-or-
define( 'WP_DEBUG_LOG', '/tmp/wp-errors.log' );</pre>
<p><strong>Note</strong>: for <code>WP_DEBUG_LOG</code> to do anything, <code>WP_DEBUG</code> must be enabled (true). Remember you can turn off <code>WP_DEBUG_DISPLAY</code> independently.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top">Top</a><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top"> ↑</a></p>
<h2 id="wp_debug_display" class="toc-heading" tabindex="-1">WP_DEBUG_DISPLAY <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#wp_debug_display"><span aria-hidden="true">#</span></a></h2>
<p><code>WP_DEBUG_DISPLAY</code> is another companion to <code>WP_DEBUG</code> that controls whether debug messages are shown inside the HTML of pages or not. The default is ‘true’ which shows errors and warnings as they are generated. Setting this to false will hide all errors. This should be used in conjunction with <code>WP_DEBUG_LOG</code> so that errors can be reviewed later.</p>
<pre class="wp-block-preformatted">define( 'WP_DEBUG_DISPLAY', false );</pre>
<p><strong>Note</strong>: for <code>WP_DEBUG_DISPLAY</code> to do anything, <code>WP_DEBUG</code> must be enabled (true). Remember you can control <code>WP_DEBUG_LOG</code> independently.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top">Top</a><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top"> ↑</a></p>
<h2 id="script_debug" class="toc-heading" tabindex="-1">SCRIPT_DEBUG <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#script_debug"><span aria-hidden="true">#</span></a></h2>
<p><code>SCRIPT_DEBUG</code> is a related constant that will force WordPress to use the “dev” versions of core CSS and JavaScript files rather than the minified versions that are normally loaded. This is useful when you are testing modifications to any built-in .js or .css files. Default is false.</p>
<pre class="wp-block-preformatted"><code>define( 'SCRIPT_DEBUG', true );</code></pre>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top">Top</a><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top"> ↑</a></p>
<h2 id="savequeries" class="toc-heading" tabindex="-1">SAVEQUERIES <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#savequeries"><span aria-hidden="true">#</span></a></h2>
<p>The <code>SAVEQUERIES</code> definition saves the database queries to an array and that array can be displayed to help analyze those queries. The constant defined as true causes each query to be saved, how long that query took to execute, and what function called it.</p>
<pre class="wp-block-preformatted">define( 'SAVEQUERIES', true );</pre>
<p>The array is stored in the global <code>$wpdb-&gt;queries</code>.</p>
<p><strong>NOTE</strong>: This will have a performance impact on your site, so make sure to turn this off when you aren’t debugging.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top">Top</a><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top"> ↑</a></p>
<h2 id="example-wp-config-php-for-debugging" class="toc-heading" tabindex="-1">Example wp-config.php for Debugging <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#example-wp-config-php-for-debugging"><span aria-hidden="true">#</span></a></h2>
<p>The following code, inserted in your <a href="https://help.codibu.com/blog/kb/editing-wp-config-php/">wp-config.php</a> file, will log all errors, notices, and warnings to a file called debug.log in the wp-content directory. It will also hide the errors so they do not interrupt page generation.</p>
<pre class="wp-block-preformatted">// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );</pre>
<p><strong>NOTE</strong>: You must insert this <strong>BEFORE</strong> <code>/* That's all, stop editing! Happy blogging. */</code> in the <a href="https://help.codibu.com/blog/kb/editing-wp-config-php/">wp-config.php</a> file.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top">Top</a><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top"> ↑</a></p>
<h2 id="debugging-plugins" class="toc-heading" tabindex="-1">Debugging Plugins <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#debugging-plugins"><span aria-hidden="true">#</span></a></h2>
<p>There are many <a href="https://wordpress.org/plugins/search.php?q=debug">debugging plugins</a> for WordPress that show more information about the internals, either for a specific component or in general. Here are some examples:</p>
<ul>
<li><a href="https://wordpress.org/plugins/query-monitor/">Query Monitor</a></li>
<li><a href="https://wordpress.org/plugins/debug-bar/">Debug Bar</a></li>
<li><a href="https://wordpress.org/plugins/log-deprecated-notices/">Log Deprecated Notices</a></li>
</ul>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#top">Top ↑</a></p>
<h2 id="external-resources" class="toc-heading" tabindex="-1">External Resources <a class="anchor" href="https://help.codibu.com/blog/kb/debugging-in-wordpress/#external-resources"><span aria-hidden="true">#</span></a></h2>
<ul>
<li>WordPress ‘wp-config.php’ file Generator</li>
<li>‘No White Screen’ plugin: Display the error instead of a white screen</li>
</ul><p>The post <a href="https://help.codibu.com/blog/debugging-in-wordpress/">Debugging in WordPress</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://help.codibu.com/blog/debugging-in-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>FAQ Troubleshooting</title>
		<link>https://help.codibu.com/blog/faq-troubleshooting/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=faq-troubleshooting</link>
					<comments>https://help.codibu.com/blog/faq-troubleshooting/#respond</comments>
		
		<dc:creator><![CDATA[JN C]]></dc:creator>
		<pubDate>Wed, 04 Nov 2020 09:19:26 +0000</pubDate>
				<guid isPermaLink="false">https://help.codibu.com/kb/faq-troubleshooting/</guid>

					<description><![CDATA[<p>Also refer Common WordPress Errors for the most common WordPress errors experienced by WordPress users such as The White Screen Internal Server Error Error Establishing Database Connection Failed Auto-Upgrade<span class="excerpt-hellip"> […]</span></p>
<p>The post <a href="https://help.codibu.com/blog/faq-troubleshooting/">FAQ Troubleshooting</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Also refer <a href="https://help.codibu.com/blog/kb/common-wordpress-errors/">Common WordPress Errors</a> for the most common WordPress errors experienced by WordPress users such as</p>
<ul>
<li>The White Screen</li>
<li>Internal Server Error</li>
<li>Error Establishing Database Connection</li>
<li>Failed Auto-Upgrade</li>
<li>Connection Timed Out</li>
<li>Maintenance Mode Following Upgrade</li>
<li>PHP errors or MySQL DB errors</li>
</ul>
<h2 id="how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus" class="toc-heading" tabindex="-1">How to deactivate all plugins when not able to access the administrative menus? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus"><span aria-hidden="true">#</span></a></h2>
<p>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>
<p>Use phpMyAdmin to deactivate all plugins.</p>
<ol>
<li>In the table wp_options, under the <em>option_name</em> column (field) find the <em>active_plugins</em> row</li>
<li>Change the <em>option_value</em> field to: <strong>a:0:{}</strong></li>
</ol>
<p>Or reset your plugins folder via <a href="https://help.codibu.com/blog/kb/ftp-clients/">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>
<ol>
<li>Via FTP or your host’s file manager, navigate to the wp-contents folder (directory)</li>
<li>Via FTP or your host’s file manager, rename the folder “plugins” to “plugins.hold”</li>
<li>Login to your WordPress administration plugins page (/wp-admin/plugins.php) – this will disable any plugin that is “missing”.</li>
<li>Via FTP or your host’s file manager, rename “plugins.hold” back to “plugins”</li>
</ol>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="how-to-clear-the-briefly-unavailable-for-scheduled-maintenance-message-after-doing-automatic-upgrade" class="toc-heading" tabindex="-1">How to clear the “Briefly unavailable for scheduled maintenance” message after doing automatic upgrade? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-to-clear-the-briefly-unavailable-for-scheduled-maintenance-message-after-doing-automatic-upgrade"><span aria-hidden="true">#</span></a></h2>
<p>As part of the automatic upgrade WordPress places a file named <code>.maintenance</code> in the blog <strong>base</strong> folder (folder that contains the wp-admin folder). If that file exists, then vistors will see the message <strong>Briefly unavailable for scheduled maintenance. Check back in a minute.</strong></p>
<p>To stop that message from being displayed to vistors, just delete the <code>.maintenance</code> file. The automatic upgrade should be executed again, just in case it failed.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="an-update-was-just-released-so-why-does-my-blog-not-recognize-the-update-is-available" class="toc-heading" tabindex="-1">An update was just released, so why does my blog not recognize the update is available? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#an-update-was-just-released-so-why-does-my-blog-not-recognize-the-update-is-available"><span aria-hidden="true">#</span></a></h2>
<p>When an update is released, notification of that release is displayed at the top administration screens saying <strong>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>
<p>If you want your blog to check right now for updates, you can delete the <strong>update_core</strong> option name record in your <em>wp_options</em> table. Note that plugins and themes each have their own check and update cycle, controlled by the records <strong>update_plugins</strong> and <strong>update_themes</strong>, in <em>wp_options</em>.</p>
<p>Relevant discussion thread:</p>
<ul>
<li>https://wordpress.org/support/topic/242485</li>
</ul>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="why-did-i-lose-custom-changes-to-the-wordpress-default-theme-during-the-last-automatic-upgrade" class="toc-heading" tabindex="-1">Why did I lose custom changes to the WordPress Default Theme during the last automatic upgrade? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#why-did-i-lose-custom-changes-to-the-wordpress-default-theme-during-the-last-automatic-upgrade"><span aria-hidden="true">#</span></a></h2>
<p>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. <em>wp-content/themes/twentysixteen/style.css</em>), those changes got overwritten with the new version of that file.</p>
<p>Please note, a core upgrade goes through a list of “old files”, as defined in <em>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>
<p><strong>Remember, that before upgrades, whether automatic or manual, both the WordPress Files and database should be backed-up as explained in <a href="https://help.codibu.com/blog/kb/wordpress-backups/">WordPress Backups</a>.</strong></p>
<p>A better way to modify the default theme is by using a child theme. 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>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="how-do-you-repair-a-mysql-database-table" class="toc-heading" tabindex="-1">How do you repair a MySQL database table? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-do-you-repair-a-mysql-database-table"><span aria-hidden="true">#</span></a></h2>
<p>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 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>
<p>Here are the steps to repair a table in a MySQL database using phpMyAdmin:</p>
<ol>
<li>Login to hosting account.</li>
<li>Login to phpMyAdmin.</li>
<li>Choose the affected database. If you only have one database, it should choose it by default so you don’t need to do anything.</li>
<li>In the main panel, you should see a list of your database tables. Check the boxes by the tables that need repair.</li>
<li>At the bottom of the window just below the list of tables, there is a drop down menu. Choose “Repair Table”</li>
</ol>
<p>Remember, that it is advisable to have a current backup of your database at all times. See also <a href="https://help.codibu.com/blog/kb/wordpress-backups/">WordPress Backups</a></p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="how-do-i-empty-a-database-table" class="toc-heading" tabindex="-1">How do I empty a database table? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-do-i-empty-a-database-table"><span aria-hidden="true">#</span></a></h2>
<p>Refer Emptying a Database Table</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="emailed-passwords-are-not-being-received" class="toc-heading" tabindex="-1">Emailed passwords are not being received <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#emailed-passwords-are-not-being-received"><span aria-hidden="true">#</span></a></h2>
<p><strong>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>
<p><strong>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’s). If you do not want to go through setting up a complete mail server on your *NIX box you may find ssmtp useful — it provides <em>“A secure, effective and simple way of getting mail off a system to your mail hub”</em>. On a Windows machine, try a sendmail emulator like Glob SendMail.</p>
<p>More help can be found on this thread of the WordPress Support Forums: https://wordpress.org/support/topic.php?id=24981.</p>
<p><strong>Windows Host Server Specific:</strong> Check your “Relay” settings on the SMTP Virtual Server. Grant access to <code>127.0.0.1</code> . Then in your <em>php.ini</em>file, set the <code>SMTP</code> setting to the same IP address. Also set <code>smtp_port</code> to <code>25</code>.</p>
<p><strong>Ensure Proper Return Address is Used:</strong> By default, the WordPress mailer fills in the From: field with <em>wordpress@yourdomain.com</em> and the From: name as <em>WordPress</em>.</p>
<p>This is fine if this is a valid e-mail address. For example, if your real e-mail is <em>wordpress@yourdomain.com</em>, your host should pass the email on for delivery. It will probably send your mail as long as <em>yourdomain.com</em> is setup to send and receive mail, even if <em>wordpress</em> is not a valid mail box. But if you set you real email as the From: address and it’s something like <em>wpgod@gmail.com</em>, the mail may not send because <em>gmail.com</em> is not a domain handled by the mail server.</p>
<p><strong>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’s mail servers that your message is legitimate and should be delivered as addressed.</p>
<p><strong>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.<br />
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’s 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>
<p><strong>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’s 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>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="why-cant-i-see-my-posts-all-i-see-is-sorry-no-posts-match-your-criteria" class="toc-heading" tabindex="-1">Why can’t I see my posts? All I see is <em>Sorry, no posts match your criteria</em>? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#why-cant-i-see-my-posts-all-i-see-is-sorry-no-posts-match-your-criteria"><span aria-hidden="true">#</span></a></h2>
<p>Clearing your browser cache and cookies may resolve this problem. See also I Make Changes and Nothing Happens</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="how-do-i-solve-the-headers-already-sent-warning-problem" class="toc-heading" tabindex="-1">How do I solve the <em>Headers already sent</em> warning problem? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-do-i-solve-the-headers-already-sent-warning-problem"><span aria-hidden="true">#</span></a></h2>
<p><strong>Description:</strong> You get a warning message on your browser that says:</p>
<pre class="wp-block-preformatted">Warning: Cannot modify header information - headers already sent by
(output started at</pre>
<p><strong>Reason and Solution:</strong></p>
<p>It is usually because there are spaces, new lines, or other stuff before an opening <code>&lt;?php</code>tag or after a closing <code>?&gt;</code>  tag, typically in <strong>wp-config.php</strong>. This could be true about some other file 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 are an option, please follow the steps below.</p>
<p>Just because you cannot see anything does not mean that PHP sees the same.</p>
<ol>
<li>Download the file mentioned in the error message via <a href="https://help.codibu.com/blog/kb/ftp-clients/">FTP</a> or the file manager provided in your host’s control panel.</li>
<li>Open that file in a <a href="https://help.codibu.com/blog/kb/glossary#text-editor">plain text editor</a> (<strong>NOT</strong> Microsoft Word or similar. Notepad or BBEdit are fine).</li>
<li>Check that the <em>very</em> first characters are with no blank lines or spaces after it.</li>
<li>Before saving, or use the Save as dialog, ensure the file encoding is not <strong><code>UTF-8 BOM</code></strong> but plain <strong><code>UTF-8</code></strong> or any without the <strong><code>BOM</code></strong> suffix.</li>
</ol>
<p>To be sure about the end of the file, do this:</p>
<ol>
<li>Place the cursor between the ? and &gt;</li>
<li>Now press the DELETE key on your computer <strong>Note to MAC users</strong>: The “DELETE” key on a PC deletes characters to the <em>right</em> of the cursor. That is the key noted here.</li>
<li>Keep that key pressed</li>
<li>For at least 15 seconds</li>
<li>Now type &gt; and</li>
<li><strong>save</strong> without pressing any other key at all.</li>
<li>If you press another key, you will bring the problem back.</li>
<li>DO <strong>NOT</strong> PUT CODE IN UNNECESSARY CODE BLOCKS, PUT THEM IN A SINGLE PHP BLOCK.</li>
</ol>
<p>Wrong:</p>
<pre class="wp-block-code"><code>&lt;?php some code; ?&gt; &lt;?php some other codes; ?&gt; </code></pre>
<p>Correct:</p>
<pre class="wp-block-code"><code>&lt;?php code; some other code; ?&gt; </code></pre>
<p>Upload the file back to your server after editing and saving the file.</p>
<p><strong>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>
<p><strong>Interpreting the Error Message:</strong></p>
<p>If the error message states: <code>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 <code>wp-config.php</code>, not line #42 of <code>wp-login.php</code>. In this scenario, line #42 of <code>wp-login.php</code> is the victim. It is being affected by the excess whitespace at line #34 of <code>wp-config.php</code>.</p>
<p>If the error message states: <code>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 <code>admin-header.php</code>, not line #569 of <code>post.php</code>. In this scenario, line #569 of <code>post.php</code> is the victim. It is being affected by the excess whitespace at line #8 of <code>admin-header.php</code>.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="why-doesnt-my-publish-or-save-draft-button-work" class="toc-heading" tabindex="-1">Why doesn’t my “Publish” or “Save Draft” button work? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#why-doesnt-my-publish-or-save-draft-button-work"><span aria-hidden="true">#</span></a></h2>
<p>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>
<p>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>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="how-to-fix-404-error-when-using-pretty-permalinks" class="toc-heading" tabindex="-1">How to fix 404 error when using Pretty Permalinks? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-to-fix-404-error-when-using-pretty-permalinks"><span aria-hidden="true">#</span></a></h2>
<p>If an error 404 occurs when using the <a href="https://help.codibu.com/blog/kb/introduction-to-blogging/#pretty-permalinks">Pretty Permalink</a> choices such as <strong>Day and Name</strong> in <a href="https://help.codibu.com/blog/kb/administration-screens/">Administration</a> &gt; <a href="https://help.codibu.com/blog/kb/administration-screens/#permalinks">Settings</a> &gt; <a href="https://help.codibu.com/blog/kb/settings-permalinks-screen/">Settings_Permalinks_Screen</a> it could be a result of the <strong>mod_rewrite</strong> module not being activated/installed. The solution is to activate <strong>mod_rewrite</strong> for the Apache web-server. Check the apacheconfhttpd.conf file for the line <em># LoadModule rewrite_module modules/mod_rewrite.so</em><br />
and delete the # in front of the line. Then stop Apache and start it again. <strong>Note:</strong> you may have to ask your host to activate mod_rewrite.</p>
<p>See also <a href="https://help.codibu.com/blog/kb/using-permalinks/">Using Permalinks</a>. Relevant discussion thread is https://wordpress.org/support/topic/234726</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="why-isnt-the-admin-user-listed-as-an-author-when-editing-posts" class="toc-heading" tabindex="-1">Why isn’t the admin user listed as an author when editing posts? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#why-isnt-the-admin-user-listed-as-an-author-when-editing-posts"><span aria-hidden="true">#</span></a></h2>
<p>Not sure why this problem happens, but here’s a couple of things to try one of these two solutions.</p>
<p>This usually fixes the problem:</p>
<ol>
<li>Create new admin user (e.g. newadmin) with Administrator Role</li>
<li>Login as ‘newadmin’</li>
<li>Degrade the old ‘admin’ user to Role of Subscriber and Save</li>
<li>Promote the old ‘admin’ back to Administrator Role and Save</li>
<li>Login as the old ‘admin’</li>
</ol>
<p>If that doesn’t work, try:</p>
<ol>
<li>Create a new admin user (e.g. newadmin) with Administrator Role</li>
<li>Login as ‘newadmin’</li>
<li>Delete the old ‘admin’ user and assign any posts to ‘newadmin’</li>
<li>Create ‘admin’ user with Administrator Role</li>
<li>Login as ‘admin’</li>
<li>Delete ‘newadmin’ user and assign posts to ‘admin’</li>
</ol>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="why-is-the-wrong-author-name-displayed-for-a-post-on-a-blog" class="toc-heading" tabindex="-1">Why is the wrong author name displayed for a post on a blog? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#why-is-the-wrong-author-name-displayed-for-a-post-on-a-blog"><span aria-hidden="true">#</span></a></h2>
<p>This problem is usually solved by the same solution as is presented in the question right before this one:<br />
<a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#why-isnt-the-admin-user-listed-as-an-author-when-editing-posts">Why isn’t the admin user listed as an author when editing posts?</a></p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/faq-troubleshooting/#top">Top ↑</a></p>
<h2 id="how-do-i-find-more-help" class="toc-heading" tabindex="-1">How do I find more help? <a class="anchor" href="https://help.codibu.com/blog/kb/faq-troubleshooting/#how-do-i-find-more-help"><span aria-hidden="true">#</span></a></h2>
<p>There are various resources that will help you find more help with WordPress, in addition to these <a href="https://codex.wordpress.org/FAQ">FAQ</a>.</p>
<ul>
<li>Troubleshooting</li>
<li>Finding WordPress Help</li>
<li>Using the Support Forums</li>
<li>Resources and Technical Articles about WordPress</li>
<li>Installation Problems</li>
</ul><p>The post <a href="https://help.codibu.com/blog/faq-troubleshooting/">FAQ Troubleshooting</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://help.codibu.com/blog/faq-troubleshooting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
