Jump to content

Fatal error: Uncaught Out of memory (not solved with other topics)


doudoujack
 Share

Recommended Posts

Hello guys,

 

I changed my hoster and did a domain transfer (because of this scammers from "easy-hebergement.com").

 

So now I'm on a dedicated server from a friend, which did all the configuration to have my own account & admin panel (on DirectAdmin).

 

I had some errors but fixed it. Now I'm facing an other error, what I couldn't fix :

 

 
Fatal error: Uncaught Out of memory (Needed 16777188 bytes)<br /><br /><pre> SELECT COUNT(DISTINCT l.id_lang) FROM `ps_lang` l JOIN ps_lang_shop lang_shop ON (lang_shop.id_lang = l.id_lang AND lang_shop.id_shop = 1) WHERE l.`active` = 1 LIMIT 1</pre> thrown in /home/doudou/domains/modeflash24.com/public_html/classes/db/Db.php on line 646

 

I first thought it was a memory problem. Not allowed to set up a php.ini file, I did it with my .htaccess file. Here all the php optimization I made :

php_value memory_limit 2048M
php_value max_execution_time 1000
php_value max_input_time -1
php_value post_max_size 15M
php_value upload_max_filesize 15M
php_value max_input_vars 10000
php_value suhosin.get.max_vars 10000
php_value suhosin.post.max_vars 10000
 
I checked & the changes were applied (you can check it on your own at modeflash24.com/info.php)
 
But nothing worked for my error ...
 
So I'm coming to you guys if you have some ideas or experience with this kind of error, because I never met this.
 
PS : I made an index.html file for my customers to inform them, so you won't see the error showing. If you need it, please tell me !
 
Thank you very much in advance !

Share this post


Link to post
Share on other sites

Some shared hostings doesn't permit the change, I will suggest you to contact with the support and request to increase some variables, for example this below could be perfect...

memory_limit = 2048M
max_execution_time = 1000;
max_input_time = -1;
post_max_size = 15M;
upload_max_filesize = 15M;
max_input_vars = 10000;
suhosin.get.max_vars = 10000;
suhosin.post.max_vars = 10000;

Or try to create a php.ini in the root with this values, like this below...

<?php

memory_limit = 2048M
max_execution_time = 1000;
max_input_time = -1;
post_max_size = 15M;
upload_max_filesize = 15M;
max_input_vars = 10000;
suhosin.get.max_vars = 10000;
suhosin.post.max_vars = 10000;

Share this post


Link to post
Share on other sites

Hi Cotoko,

 

Thanks for the answer. The thing is I made this changes with my .htaccess file and the changes were applied. You can check it under modeflash24.com/info.php

 

So those changes are already done, but still have the error ...

 

Attached the screenshot showing that changes worked

 

post-586460-0-81674000-1433177886_thumb.png

Share this post


Link to post
Share on other sites

Ok thanks :)

 

I'll keep you in touch when done !

 

EDIT 1 : So, I checked with my hoster, the problem seems to be coming from a PHP update from april, and even with my htaccess file the changes are not done.

He will try to solve it within next 24 hours ... Hope it will be solved :)

Edited by doudoujack (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More