Try to add it to your wp-config.php file in the WordPress install root.
Like: define('WP_MEMORY_LIMIT', '256M');
( placing it on top after the <?php tag
)
The reason for this, is that i have seen sometimes that changes to the PHP.INI files for some reason does not kicks in (one time you could edit the PHP.ini file, but when talking to the hosting support they said that i was to use the wp-config way, and then it did actually work. The PHP.ini files didn’t do anything. The host users did not have access to the ”real” PHP.ini file).
I’m not an expert on this. But try.
Thread Starter
tbrym
(@tbrym)
Nope, still nothing. Thanks for the help though.
In my PHP.ini i have:
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 512M ; Maximum amount of memory a script may consume
After changing this i needed to restart the server. I don’t know how it works on shared hosting.
Or another option. Add php_value memory_limit 256M
to you .htaccess file. Else (if your are on shared hosting) you may need to contact your host.
Also you can test with creating a empty text file and add: <?php phpinfo(); ?>
Save as info.php and upload to your server (example: to your web root so the URL is http://www.yourdomain.com/info.php)
There you could see how much memory that is used by PHP. Just for diagnostics.
Thread Starter
tbrym
(@tbrym)
I ended up calling my host and they increased the memory for me.
Thanks for the help Anderton. It’s refreshing when someone offers clear solutions, even if they don’t work.