Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get "Allowed memory size exhausted" error after upgrading to version 3.10 #12052

Closed
pengshuai2010 opened this issue Sep 13, 2017 · 2 comments
Closed
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@pengshuai2010
Copy link

After upgrading to version 3.10, the "Visitors in Real Time" component on the dashboard shows an error message "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4104 bytes) in /var/www/html/core/NumberFormatter.php on line 305". Not sure if this is related to #8169.

Is there any workaround for this? e.g. can I change the memory limit of php to mitigate this issue? If so, where can I find the php.ini file? Thank you!

@pengshuai2010
Copy link
Author

pengshuai2010 commented Sep 13, 2017

I tried to increase PHP's memory limit by editing the php.ini file. I first ran php -i | grep php.ini, I got
Configuration File (php.ini) Path => /usr/local/etc/php Loaded Configuration File => /usr/local/etc/php/php.ini
I added a line memory_limit = -1 to the file, then run php -i | grep memory_limit, I got
memory_limit => -1 => -1.
But I still get the same error.

@mattab
Copy link
Member

mattab commented Sep 18, 2017

Hi @pengshuai2010 you need to edit the php.ini for your webserver, not for CLI. Check in phpinfo() where is your php.ini

@mattab mattab closed this as completed Sep 18, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants