When your WordPress code requires more memory than the default allocated memory, you get to see this error :
Fatal error: Allowed memory size of 33554433 bytes exhausted (tried to allocate 2345678 bytes) in /home/myuzer/public_html/wp-includes/plugin.php on line 123
How to fix the allowed memory size error?
You need to paste this code in wp-config.php file just before the line that says : “That’s all, stop editing! Happy blogging.“
define( 'WP_MEMORY_LIMIT', '256M'
This code tells WordPress to increase the PHP memory limit to 256MB.
Once you are done, you need to save your changes and upload your wp-config.php file back to your server.
Now the memory exhausted error should disappear.
Thank you to the source!