<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Wordpress - Fix Error Allowed memory size exhausted - Web Development				            </title>
            <link>https://www.tweaking4all.com/forum/web-development/wordpress-fix-error-allowed-memory-size-exhausted/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 11 Aug 2026 18:06:45 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Wordpress - Fix Error Allowed memory size exhausted</title>
                        <link>https://www.tweaking4all.com/forum/web-development/wordpress-fix-error-allowed-memory-size-exhausted/#post-4649</link>
                        <pubDate>Fri, 03 Feb 2023 21:38:36 +0000</pubDate>
                        <description><![CDATA[Running into the error &quot;Fatal error: Allowed memory size of ... bytes exhausted (tried to allocate ... bytes) in /path/to/wp-includes/some.php on line xyz&quot; ?
Note: I had my page cut off for...]]></description>
                        <content:encoded><![CDATA[<p>Running into the error "<strong>Fatal error: Allowed memory size of ... bytes exhausted (tried to allocate ... bytes) in /path/to/wp-includes/some.php on line xyz</strong>" ?</p>
<p>Note: I had my page cut off for no obvious reason. In a case like that I usually first look in Console log of my browser (eg. F12 in Google Chome) to see if something obvious can be seen there. If that doesn't clarify anything, then I briefly enable the debugging in Wordpress, by changing or adding these settings in the wp-config.php file in the root of your Wordpress directory:</p>
<p><em>Enable debugging:</em></p>
<pre contenteditable="false">/*
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', false); 
define('SCRIPT_DEBUG', false); 
*/

 define('WP_DEBUG', true);
 define('WP_DEBUG_DISPLAY', true);
 define('WP_DEBUG_LOG', true); 
 define('SCRIPT_DEBUG', true); </pre>
<p>Reload the affected page after saving the <strong>wp-config.php</strong> file and see if there are errors visible (viewing the page source may be needed).<br />After that I quickly revert back by changing the text in <strong>wp-config.php</strong> back to:</p>
<p><em>Disable debugging:</em></p>
<pre contenteditable="false">define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', false); 
define('SCRIPT_DEBUG', false); 

/*
 define('WP_DEBUG', true);
 define('WP_DEBUG_DISPLAY', true);
 define('WP_DEBUG_LOG', true); 
 define('SCRIPT_DEBUG', true); 
*/</pre>
<p> </p>
<p>So this is where I ran into the error which basically tells me that PHP/Wordpress did not have permission to allocate enough memory. Seems by default, WordPress automatically tries to increase PHP memory limit if it is less than 64MB. But most of the time 64MB is not high enough.</p>
<p>There are a few ways to increase the allowed memory allocation, but you'll need to set it for Wordpress as well.</p>
<p>Here we edit the<strong> wp-config.php</strong> file again and add the following line somewhere before the "That’s all, stop editing! Happy blogging." comment:</p>
<pre contenteditable="false">define( 'WP_MEMORY_LIMIT', '256M' );</pre>
<p>This code tells WordPress to increase the PHP memory limit to 256MB. Obviously up to you what value you use here. Do not go overboard, and keep in mind that you may have to update the php.ini file as well.<br /><br /></p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/web-development/">Web Development</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/web-development/wordpress-fix-error-allowed-memory-size-exhausted/#post-4649</guid>
                    </item>
							        </channel>
        </rss>
		