webtvitaly
Member
Posted 2 years ago #
Receiving this error
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home6/webtvita/public_html/wp-includes/kses.php(1006) : runtime-created function on line 1
on every backend dashboard page. Have been searching and unable to find any solutions... any solutions, tips or fixes would be most appreciated!
TapeBoy929
Member
Posted 2 years ago #
The error normally occurs when PHP tries to process a big database records or when importing or exporting. To change the memory allocation limit permanently for all PHP scripts running on the server, modify the PHP.INI configuration file of the server (location depending on your OS and installation method). Search for memory_limit after opening the file in an editor. If the memory_limit doesn’t exist, add the following line. If it’s there, modify the value of the memory_limit:
memory_limit = 12M
...or whatever your site requires. Good luck.
[signature moderated Please read the Forum Rules]
Asif2BD
Member
Posted 2 years ago #
I does not work after i even changed the php.inf, i placed that file correctly as now i have higher database size limit. But Still i cant even import 700KB DB. Using WP 2.8.1
Regards
Asif2Bd
http://Asif2BD.info
Check out this thread (specifically the post by 'parse'). That fixed this problem for me. The problem reappeared after upgrading to WordPress 2.8.2 and I had to go back and change the value to 64 again (the file appears to have been overwritten during the update).
http://forums.shopplugin.net/topic/activating-shopp-plugin-disables-most-items-on-dashboardt
Good luck.
usedwigs
Member
Posted 2 years ago #
before you attempt the php.inf fix, just try this, worked for me:
For fixing the "Allowed memory size"-problem, go to your wp-settings.php and change to the following at the WP_MEMORY_LIMIT directive (You probably have 32 there):
define('WP_MEMORY_LIMIT', '64M');
Moominmama
Member
Posted 1 year ago #
Thanks usedwigs! That worked for me (got this note after automatic update to 2.9.2).
it is bad practice to change core files as they can be over written on upgrade
better to put same directive in wp-config.php