Skip to main content

How to find the error log on the WordPress site [updated]

S
Selim RanaWordPress
#find the error log

To troubleshoot your WordPress site, the error log is the quick way to find what is happening on your WordPress site. Finding the problem is the most critical part of the solution. This article shows you a quick and easy way to find the error log.

Open file manager:

You’ve to log in to your cPanel and open the file manager.

How to find the error log on the WordPress site [updated]

Go to the document root:

Go to the document directory of your file manager. You’ll find this on public_html or, if it’s on the parked domain – you’ll find this on your domain names folder.

How to find the error log on the WordPress site [updated]

Take a backup of wp-content:

Take a backup of your wp-content directory so that if anything goes wrong you’ll be on the safe side and restore those files.

How to find the error log on the WordPress site [updated]
Blog for you
Most popular blogs

Learn more about WordPress

		<div class="bdt-ep-button-text">

			<span class="avdbtn-text">
				Click me				</span>

						</div>

		
	</div>
				</a>
	</div>
					</div>
				</div>
	</div>
				</div>
	</section>
			<section class="elementor-section elementor-top-section elementor-element elementor-element-7c62695a elementor-section-boxed elementor-section-height-default elementor-section-height-default magic-button-disabled-no" data-id="7c62695a" data-element_type="section" data-e-type="section">
					<div class="elementor-container elementor-column-gap-default">
				<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4cc550e1" data-id="4cc550e1" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-13e1f63d elementor-widget elementor-widget-text-editor" data-id="13e1f63d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
								<h2><strong><span data-preserver-spaces="true">Open up the wp-config.php file:</span></strong></h2><p><span data-preserver-spaces="true">Add or edit this code to your wp-config.php file: </span></p><p><span data-preserver-spaces="true">define(&#8216;WP_DEBUG&#8217;, true);</span></p><p><span data-preserver-spaces="true">define(&#8216;WP_DEBUG_LOG&#8217;, true);</span></p><p><span data-preserver-spaces="true">Most WordPress installation has already WP_DEBUG included with the file and the value set to false.  </span></p><p><span data-preserver-spaces="true">After editing, please ensure and recheck that the value is set to true.</span></p>								</div>
				</div>
	</div>
				</div>
	</section>
			<section class="elementor-section elementor-top-section elementor-element elementor-element-6f4d3501 elementor-section-boxed elementor-section-height-default elementor-section-height-default magic-button-disabled-no" data-id="6f4d3501" data-element_type="section" data-e-type="section">
					<div class="elementor-container elementor-column-gap-default">
				<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-116fe0c5" data-id="116fe0c5" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-2a3d55b1 elementor-widget elementor-widget-image" data-id="2a3d55b1" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
														<img width="1024" height="472" src="/blog-media/how-to-find-the-error-log-on-wordpress-site/debug-1024x472.jpg" class="attachment-large size-large wp-image-5723" alt="How to find the error log on the WordPress site [updated]"  title="How to find the error log on the WordPress site [updated]"/>															</div>
				</div>
	</div>
				</div>
	</section>
			<section class="elementor-section elementor-top-section elementor-element elementor-element-1bd6a0ab elementor-section-boxed elementor-section-height-default elementor-section-height-default magic-button-disabled-no" data-id="1bd6a0ab" data-element_type="section" data-e-type="section">
					<div class="elementor-container elementor-column-gap-default">
				<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7f3dbccd" data-id="7f3dbccd" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-134eba21 elementor-widget elementor-widget-text-editor" data-id="134eba21" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
								<h2><strong><span data-preserver-spaces="true">Reload the affected page: </span></strong></h2><p><span data-preserver-spaces="true">Go to the affected page which is occurring the issues. It&#8217;ll send the error log file with the messages.</span></p>								</div>
				</div>
	</div>
				</div>
	</section>
			<section class="elementor-section elementor-top-section elementor-element elementor-element-889be2d elementor-section-boxed elementor-section-height-default elementor-section-height-default magic-button-disabled-no" data-id="889be2d" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;gradient&quot;}">
					<div class="elementor-container elementor-column-gap-default">
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6e64628" data-id="6e64628" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-954e02e elementor-widget elementor-widget-bdt-advanced-heading" data-id="954e02e" data-element_type="widget" data-e-type="widget" data-widget_type="bdt-advanced-heading.default">
				<div id="954e02e" class="bdt-ep-advanced-heading" data-settings="{&quot;titleMultiColor&quot;:&quot;no&quot;}"><div class="bdt-ep-advanced-heading-sub-title"><div class="bdt-ep-advanced-heading-sub-title-content">Popular blog</div></div><h2 class="bdt-ep-advanced-heading-title"><span class="bdt-ep-advanced-heading-main-title"><span class="bdt-ep-advanced-heading-main-title-inner">How to Use Iframe Widget in Elementor by Element Pack</span></span></h2></div>				</div>
				</div>
	</div>
			<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-ff36aa0" data-id="ff36aa0" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-a0f0759 elementor-align-center elementor-widget elementor-widget-bdt-advanced-button" data-id="a0f0759" data-element_type="widget" data-e-type="widget" data-widget_type="bdt-advanced-button.default">
						<div class="bdt-ep-button-wrapper">
		<a href="/knowledge-base/how-to-create-iframe-widget-in-elementor-by-element-pack" class="bdt-ep-attention-button bdt-ep-button bdt-ep-button-effect-a bdt-ep-button-size-md elementor-animation-pulse" target="_blank" rel="noopener">
					<div class="bdt-ep-button-content-wrapper bdt-flex bdt-flex-middle bdt-flex-center" data-text="Read now">
		
		<div class="bdt-ep-button-text">

			<span class="avdbtn-text">
				Read now				</span>

						</div>

		
	</div>
				</a>
	</div>
					</div>
				</div>
	</div>
				</div>
	</section>
			<section class="elementor-section elementor-top-section elementor-element elementor-element-7a46b12b elementor-section-boxed elementor-section-height-default elementor-section-height-default magic-button-disabled-no" data-id="7a46b12b" data-element_type="section" data-e-type="section">
					<div class="elementor-container elementor-column-gap-default">
				<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1cd7c7c9" data-id="1cd7c7c9" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-6a0426c0 elementor-widget elementor-widget-text-editor" data-id="6a0426c0" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
								<h2><strong><span data-preserver-spaces="true">Go to the wp-content folder and open log file:</span></strong></h2><p><span data-preserver-spaces="true">Go to your wp-content folder and open the log file debug.log and go to the bottom of the page to find the error messages. </span></p>								</div>
				</div>
	</div>
				</div>
	</section>
			<section class="elementor-section elementor-top-section elementor-element elementor-element-706270f6 elementor-section-boxed elementor-section-height-default elementor-section-height-default magic-button-disabled-no" data-id="706270f6" data-element_type="section" data-e-type="section">
					<div class="elementor-container elementor-column-gap-default">
				<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-63ddccf3" data-id="63ddccf3" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-7c74389f elementor-widget elementor-widget-image" data-id="7c74389f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
														<img width="1024" height="342" src="/blog-media/how-to-find-the-error-log-on-wordpress-site/error-1024x342.jpg" class="attachment-large size-large wp-image-5724" alt="How to find the error log on the WordPress site [updated]"  title="How to find the error log on the WordPress site [updated]"/>															</div>
				</div>
	</div>
				</div>
	</section>
			<section class="elementor-section elementor-top-section elementor-element elementor-element-23791e02 elementor-section-boxed elementor-section-height-default elementor-section-height-default magic-button-disabled-no" data-id="23791e02" data-element_type="section" data-e-type="section">
					<div class="elementor-container elementor-column-gap-default">
				<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7c76a824" data-id="7c76a824" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-57090c19 elementor-widget elementor-widget-text-editor" data-id="57090c19" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
								<p><span data-preserver-spaces="true">Take the necessary actions to solve the problem. After solving the issue, you can edit the wp-config.php and set the </span><strong><span data-preserver-spaces="true">WP_DEBUG</span></strong><span data-preserver-spaces="true"> file set to false again.</span></p>								</div>
				</div>
	</div>
				</div>
	</section>
			<section class="elementor-section elementor-top-section elementor-element elementor-element-c25650a elementor-section-boxed elementor-section-height-default elementor-section-height-default magic-button-disabled-no" data-id="c25650a" data-element_type="section" data-e-type="section">
					<div class="elementor-container elementor-column-gap-default">
				<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bc442c3" data-id="bc442c3" data-element_type="column" data-e-type="column">
		<div class="elementor-widget-wrap elementor-element-populated">
					<div class="elementor-element elementor-element-aaaf45a elementor-widget elementor-widget-heading" data-id="aaaf45a" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<h3 class="elementor-heading-title elementor-size-default">Share this blog: </h3>				</div>
			<div class="elementor-element elementor-element-d4bcdd8 bdt-ss-btns-style-framed bdt-ss-btns-view-icon-text bdt-ss-btns-shape-square bdt-ss-btns-color-original elementor-widget elementor-widget-bdt-social-share" data-id="d4bcdd8" data-element_type="widget" data-e-type="widget" data-widget_type="bdt-social-share.default">
						<div class="bdt-social-share bdt-ep-grid">
						<div class="bdt-social-share-item bdt-ep-grid-item">
				<div class="bdt-ss-btn bdt-ss-facebook" data-social="facebook">
												<span class="bdt-ss-icon">
							<i class="ep-icon-facebook"></i>
						</span>
																		<div class="bdt-social-share-text">
																<span class="bdt-social-share-title">
									Facebook									</span>
																						</div>
										</div>
			</div>
							<div class="bdt-social-share-item bdt-ep-grid-item">
				<div class="bdt-ss-btn bdt-ss-twitter" data-social="twitter">
												<span class="bdt-ss-icon">
							<i class="ep-icon-twitter"></i>
						</span>
																		<div class="bdt-social-share-text">
																<span class="bdt-social-share-title">
									X									</span>
																						</div>
										</div>
			</div>
							<div class="bdt-social-share-item bdt-ep-grid-item">
				<div class="bdt-ss-btn bdt-ss-pinterest" data-social="pinterest">
												<span class="bdt-ss-icon">
							<i class="ep-icon-pinterest"></i>
						</span>
																		<div class="bdt-social-share-text">
																<span class="bdt-social-share-title">
									Pinterest									</span>
																						</div>
										</div>
			</div>
							<div class="bdt-social-share-item bdt-ep-grid-item">
				<div class="bdt-ss-btn bdt-ss-whatsapp" data-social="whatsapp">
												<span class="bdt-ss-icon">
							<i class="ep-icon-whatsapp"></i>
						</span>
																		<div class="bdt-social-share-text">
																<span class="bdt-social-share-title">
									WhatsApp									</span>
																						</div>
										</div>
			</div>
							<div class="bdt-social-share-item bdt-ep-grid-item">
				<div class="bdt-ss-btn bdt-ss-vkontakte" data-social="vkontakte">
												<span class="bdt-ss-icon">
							<i class="ep-icon-vk"></i>
						</span>
																		<div class="bdt-social-share-text">
																<span class="bdt-social-share-title">
									Vkontakte									</span>
																						</div>
										</div>
			</div>
							<div class="bdt-social-share-item bdt-ep-grid-item">
				<div class="bdt-ss-btn bdt-ss-telegram" data-social="telegram">
												<span class="bdt-ss-icon">
							<i class="ep-icon-telegram"></i>
						</span>
																		<div class="bdt-social-share-text">
																<span class="bdt-social-share-title">
									Telegram									</span>
																						</div>
										</div>
			</div>
					</div>

	
					</div>
				</div>
	</div>
				</div>
	</section>
			</div>
S

Selim Rana

The BdThemes team builds WordPress plugins trusted by 3M+ users worldwide. We write about web accessibility, WCAG compliance, and inclusive design.