Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2061,"date":"2019-11-25T12:13:21","date_gmt":"2019-11-25T12:13:21","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2061"},"modified":"2019-11-25T12:13:21","modified_gmt":"2019-11-25T12:13:21","slug":"wordpress-fatal-error-allowed-memory-size-exhausted","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/wordpress-fatal-error-allowed-memory-size-exhausted\/","title":{"rendered":"WordPress Fatal error: Allowed Memory Size Exhausted?"},"content":{"rendered":"

Memory allocation and exhaustion problems within WordPress installations.<\/strong><\/p>\n

By default, our servers allow up to 32MB of data to be transferred via PHP. Not having enough memory can result in errors that look similar to this one:<\/p>\n

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2515174 bytes) in \/path\/to\/wordpress\/file.php on line 1331<\/span><\/p>\n

Before we get started, it is important to understand which of the three PHP settings you are using for your hosting account.<\/p>\n

If using\u00a0“PHP5 (Single php.ini)”<\/strong>\u00a0or\u00a0“PHP5 (FastCGI)”<\/strong>, simply locate the\u00a0“php.ini”<\/strong>\u00a0file inside\u00a0“public_html\/”<\/strong>\u00a0directory; for the standard\u00a0“PHP5”<\/strong>\u00a0setting, make a copy of the php.ini file first and place it in the\u00a0“wp-includes\/”<\/strong>\u00a0directory. If the php.ini file cannot be located, a new php.ini.default file can be created via the Plesk or cPanel\u00a0PHP Config icon<\/strong>. Be sure to rename the file to php.ini, it will not function while named php.ini.default.<\/p>\n

Within the\u00a0php.ini<\/strong>\u00a0file, modify the\u00a0“memory_limit”<\/strong>\u00a0value. The php.ini file can be edited with any text editor, including the\u00a0“Edit”<\/strong>\u00a0or\u00a0“Code Edit”<\/strong>\u00a0option within your Bluehost File Manager. With the file open, search\u00a0(ctrl+f) for memory_limit<\/strong>\u00a0or scroll down to approximately line 232. Here you should see the following line:<\/p>\n

memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)<\/span><\/p>\n

Simply update this number to accommodate for a higher amount of memory; we suggest setting the value as\u00a0“64M,”<\/strong>\u00a0as this fulfills most common requirements. Be sure to save any changes. Next, open the file wp-settings.php (located within the directory where WordPress is installed). Near the top of this file look for:<\/p>\n

define(‘WP_MEMORY_LIMIT’, ’32M’);<\/span><\/p>\n

Update this value to the new memory limit as well. Save changes to the file. Once the file is saved, the effect should be immediate.
\nNote: To check and see that the memory_limit has been updated properly, create a new text file called info.php within the same directory you edited your new php.ini file. Create this new file and add the following code:<\/p>\n

<?php phpinfo() ;?><\/span><\/p>\n

Then view this page in a browser (be sure to include the directory in the URL if this is where you placed the info.php file). The PHP settings including the memory_limit should have changed. This will also show the path to the php.ini file which is being used.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[54],"manual_kb_tag":[78],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2061"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2061"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2061\/revisions"}],"predecessor-version":[{"id":2062,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2061\/revisions\/2062"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2061"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2061"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}