Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

PHP PHP & Wordpress Memory limit not increasing

AnnaBridge

New Coder
I have set 1024M in php.ini file:

memory_limit = 1024M

I have set it in .htaccess file:

<IfModule mod_php7.c>
php_value memory_limit 1024M
</IfModule>

I have set it in wp-config.php file:

define( 'WP_MAX_MEMORY_LIMIT' , '1024M');
define( 'WP_MEMORY_LIMIT', '1024M' );

But I still get the following error on a plugin page in my Wordpress admin area:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 61440 bytes) in /home/eroticnaughtines/public_html/wp-includes/functions.php on line 4212

And yes, all the files are in the root directory of my Wordpress installation. Went through everything in the article https://adevait.com/wordpress/7-how-tos-every-wordpress-developer-must-know . Still need a little help. thanks
 
Hi,

I have some experience with PHP, but I do not use WordPress at all, so I can not help much... The only thing I can say: You probably did, but... Have you restarted your web server (Probably Apache?)? Otherwise, new configurations will not be taken into consideration.
 
It is worth trying @LTomy's suggestion and if that still doesn't work it may be possible your web host doesn't allow you to increase the PHP memory. That may be worth opening a ticket for if you run out of possible solutions.
 
It is worth trying @LTomy's suggestion and if that still doesn't work it may be possible your web host doesn't allow you to increase the PHP memory. That may be worth opening a ticket for if you run out of possible solutions.
Oh, I did not consider the possibility that she is not hosting it locally. If this is the case, yeah, the host probably does not allow it :laugh:
 
bit late too the party lol few questions :D

Local or on a server
What plugins are installed
What themes are installed.
and lastly who do you host with, 1gb is alot of ram and some hosting companys will not allow you to use that much but to use 500mbs and still need more something is using alot of resources.
 
Back
Top Bottom