B
(@blclda)
Hello @allesesser
I think this is causing for PHP memory setting
Fixing the Error there are a couple of ways on how to go about resolving this error. These include:
1.Editing the wp-config.php file
2.Editing the php.ini file
3.Editing the .htaccess file
1.Editing the wp-config.php file
Here you will need to edit thewp-config.php file.
define( ‘WP_MEMORY_LIMIT’, ‘1024M’ );
2.Editing the php.ini file
On a live install, the file can be accessed within the root of your install, that is within the /public_html/ folder. Note that the file is not installed by WordPress but in most cases set up by your host. If you are using CPanel as your control panel, for example, make sure the checkbox for “Show Hidden Files” is checked and then click Go. You may check into this article on how to go about editing the file. Before editing the file, kindly preserve a backup to it by downloading it to your computer.
Once this is done, open the file, add or edit the following line:
memory_limit 512M
3.Editing the .htaccess file
The .htaccess file is a file located within the root of your WordPress files.
You will need to add or edit the following code to the bottom of the file:
php_value memory_limit 256M
With this done, you can then save your changes and check if the error is resolved.
Thanks
Thank you both!
@aezazshekh It worked again after editing the config-file
@blclda I tried that already but 256M wasn’t enaugh 🙂
You both made my day.
Thanks a lot
Reiner
Hi,
If you’ve got permissions on you Plesk or control panel used for web hosting, you have to change the PHP variable “memory_limit” to your recommended value.
From the error message you show it appears that now you have 256M assigned.
Keep in mind that this value is not “the higher the better”, because it means how much memory is going to be reserved for each process.
I would try setting it to 384M first, and if it doesn’t work, to 512M, but those values are too high depending on your server.
For instance, if you have 2Gb of ram (2048M), and you set this variable to 512M, it would mean that you can only have 4 simultaneous users (512 * 4 = 2048).
With simultaneous users I don’t mean active people browsing your site. I mean visits that request to open content at the exact same time.
So if your site runs with a lower memory setting, keep it that way.
Some specific pages can take higher memory so make sure to test the whole site.
Regards.
B
(@blclda)
@allesesser Glad you got it working 😉 Have a good day.