<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Debugging WordPress]]></title><description><![CDATA[<p dir="auto">Hello All!<br />
I'm fairly certain I'm just missing something -- but I'm having issues debugging WordPress. I'm having an issue with Elementor and need to see any WordPress / PHP errors. I've changed the following in wp-config.php and restarted the app to no avail. The debug log doesn't seem to be created or logging in /wp-content/debug.log.</p>
<pre><code>define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false);
</code></pre>
<p dir="auto">Any help with this would be greatly appreciated!</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.cloudron.io/topic/6283/debugging-wordpress</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 06:53:11 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6283.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Jan 2022 20:59:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Debugging WordPress on Fri, 07 Jan 2022 19:43:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> So I replicated what you had done in the demo. So that seems to be working now -- after I disabled the plugins we have installed. I'm going to work through and go one-by-one on the plugins and see what is going on. This seems to be a really odd issue.</p>
]]></description><link>https://forum.cloudron.io/post/41382</link><guid isPermaLink="true">https://forum.cloudron.io/post/41382</guid><dc:creator><![CDATA[JLX89]]></dc:creator><pubDate>Fri, 07 Jan 2022 19:43:28 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging WordPress on Fri, 07 Jan 2022 19:13:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jlx89" aria-label="Profile: jlx89">@<bdi>jlx89</bdi></a> I setup a test here - <a href="https://my.demo.cloudron.io/#/app/cc6803b8-c862-4a2b-8c12-e25c9a092592" target="_blank" rel="noopener noreferrer nofollow ugc">https://my.demo.cloudron.io/#/app/cc6803b8-c862-4a2b-8c12-e25c9a092592</a> . I put a bad func call here - <a href="https://my.demo.cloudron.io/filemanager.html?type=app&amp;id=cc6803b8-c862-4a2b-8c12-e25c9a092592#public/wp-includes/functions.php" target="_blank" rel="noopener noreferrer nofollow ugc">https://my.demo.cloudron.io/filemanager.html?type=app&amp;id=cc6803b8-c862-4a2b-8c12-e25c9a092592#public/wp-includes/functions.php</a> . Maybe you can check what is different...</p>
]]></description><link>https://forum.cloudron.io/post/41380</link><guid isPermaLink="true">https://forum.cloudron.io/post/41380</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 07 Jan 2022 19:13:22 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging WordPress on Fri, 07 Jan 2022 19:00:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Yes, I did that -- <code>error-log</code> doesn't seem to be created nor is anything logged in <code>/wp-content/debug.log</code>.</p>
]]></description><link>https://forum.cloudron.io/post/41375</link><guid isPermaLink="true">https://forum.cloudron.io/post/41375</guid><dc:creator><![CDATA[JLX89]]></dc:creator><pubDate>Fri, 07 Jan 2022 19:00:19 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging WordPress on Fri, 07 Jan 2022 18:56:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jlx89" aria-label="Profile: jlx89">@<bdi>jlx89</bdi></a> I noticed the file is not created, unless there is a real error. Did you put some error in a PHP file ? <code>error_log</code> also works.</p>
]]></description><link>https://forum.cloudron.io/post/41374</link><guid isPermaLink="true">https://forum.cloudron.io/post/41374</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 07 Jan 2022 18:56:16 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging WordPress on Fri, 07 Jan 2022 18:48:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Yes, I had originally added them at the bottom of wp-config.php and realized they were already defined and changed the values. I added the following and restarted the app, to no avail. I'll give that another shot and see if that works out.</p>
]]></description><link>https://forum.cloudron.io/post/41373</link><guid isPermaLink="true">https://forum.cloudron.io/post/41373</guid><dc:creator><![CDATA[JLX89]]></dc:creator><pubDate>Fri, 07 Jan 2022 18:48:22 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging WordPress on Fri, 07 Jan 2022 18:41:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jlx89" aria-label="Profile: jlx89">@<bdi>jlx89</bdi></a> said in <a href="/post/41360">Debugging WordPress</a>:</p>
<blockquote>
<p dir="auto">I am using the "WordPress Developer)" app -- but can migrate this over to a LAMP Stack, if needed.</p>
</blockquote>
<p dir="auto">The WP Developer app is essentially the same.</p>
<p dir="auto">I quickly tried this out. I blindly put the defines you posted at the end of file and it did not work as well :-). It turns out, this was because in <code>wp-config.php</code>, those constants are already defined. In around lines 75-77:</p>
<pre><code>define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', false );
</code></pre>
<p dir="auto">I had to remove those duplicate lines, since I guess PHP does not allow re-defining constants.</p>
<p dir="auto">After removing them, I added some junk in <code>headers.php</code> like <code>random_function();</code> and I see that debug.log is created once I visit WP.</p>
]]></description><link>https://forum.cloudron.io/post/41372</link><guid isPermaLink="true">https://forum.cloudron.io/post/41372</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 07 Jan 2022 18:41:11 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging WordPress on Fri, 07 Jan 2022 17:47:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/murgero" aria-label="Profile: murgero">@<bdi>murgero</bdi></a> Thank you! I gave that a shot, but it still doesn't seem to be working. I am using the "WordPress Developer)" app -- but can migrate this over to a LAMP Stack, if needed.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Thank you! I'll give the <code>/run/debug.log</code> option a shot. I'd like to be able to view them as needed, rather than having it stored in the <code>/tmp/</code> directory.</p>
]]></description><link>https://forum.cloudron.io/post/41360</link><guid isPermaLink="true">https://forum.cloudron.io/post/41360</guid><dc:creator><![CDATA[JLX89]]></dc:creator><pubDate>Fri, 07 Jan 2022 17:47:58 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging WordPress on Fri, 07 Jan 2022 17:38:01 GMT]]></title><description><![CDATA[<p dir="auto">In addition to what <a class="plugin-mentions-user plugin-mentions-a" href="/user/murgero" aria-label="Profile: murgero">@<bdi>murgero</bdi></a>  said, you can also put things in <code>/run/debug.log</code> or <code>/tmp/debug.log</code> as well. Note that the files under /tmp are cleaned up automatically periodically, so this can either be a plus or minus depending on your use case.</p>
]]></description><link>https://forum.cloudron.io/post/41359</link><guid isPermaLink="true">https://forum.cloudron.io/post/41359</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 07 Jan 2022 17:38:01 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging WordPress on Wed, 05 Jan 2022 23:04:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jlx89" aria-label="Profile: jlx89">@<bdi>jlx89</bdi></a> Try adding this to the config:</p>
<p dir="auto"><code>define( 'WP_DEBUG_LOG','/app/data/output.log' );</code> This should tell wordpress to output to <code>/app/data/output.log</code> which is outside the web root and also in a writable area of the container. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/41283</link><guid isPermaLink="true">https://forum.cloudron.io/post/41283</guid><dc:creator><![CDATA[murgero]]></dc:creator><pubDate>Wed, 05 Jan 2022 23:04:41 GMT</pubDate></item></channel></rss>