WordPress memory exhausted error – Increase PHP Memory

WordPress memory exhausted error –

atal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in/home4/example/public_html/wp-includes/function.php on line 399

If you’re seeing the above error while uploading the file in your WordPress website, then this can be fixed with these methods.

Increase PHP Memory in wp-config.php

Open wp-config.php file in your websites root folder. at the end of the editor section, under /* That’s all, stop editing! happy publishing. */ enter the following code.

define( 'WP_MEMORY_LIMIT', '256M' );