Business Magazine

How to Fix WordPress Fatal Error While Genesis Framework Installation “Fatal Error: Allowed Memory Size 41943040 Byte Exhausted”

By Itzmealie @ideasonclick

We face the “Fatal error” some time on our WordPress while the installation of new theme or plug-in, I faced the same issue when I was installing Genesis Framework Enterprise theme on my WordPress.

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 261900 bytes) in /home/public_html/wp-includes/l10n.php on line 97

I searched over the internet for the solution, but I couldn’t fix the issue. After spending much time it was resolved and now I am sharing the solution with you guys.

Solution: 

1. Install a TPC memory usage plug-in to track your memory usage within the dashboard of your WordPress.

2. Go to your root folder through ftp or login to your hosting c-panel then go to file manager and edit php.ini file and insert the following code in your php.ini file.

define(‘WP_MEMORY_LIMIT’, ’128M’);

If you don’t see any php.ini file you can search for php.ini.default file or just create the new file php.ini and insert the code. You can increase your memory limit until your plug-in or theme error is resolved.

3. Another good option is contact with your hosting provider and ask them to do this for you.

4. If you are fail in all other options try to add the following line at the top of your wp-config.php file after the php syntax.

define(‘WP_MEMORY_LIMIT’, ’128M’);

I had to increase my memory limit till 3 gb for the installation of Genesis framework theme on my website. You can reduce the memory size once your plug-in or theme is installed.

wordpress-bugs-errors-fix


Back to Featured Articles on Logo Paperblog

Magazines