doudoujack Posted June 1, 2015 Share Posted June 1, 2015 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 ! Link to comment Share on other sites More sharing options...
Rolige Posted June 1, 2015 Share Posted June 1, 2015 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; Link to comment Share on other sites More sharing options...
doudoujack Posted June 1, 2015 Author Share Posted June 1, 2015 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 Link to comment Share on other sites More sharing options...
Rolige Posted June 1, 2015 Share Posted June 1, 2015 You need confirm this values with your hosting provider, I told you, some shared hostings doesn't permit the change. Here other similar topic: https://www.prestashop.com/forums/topic/275823-solved-fatal-error-uncaught-out-of-memory-needed-16777188-bytes/ Link to comment Share on other sites More sharing options...
doudoujack Posted June 1, 2015 Author Share Posted June 1, 2015 (edited) 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 June 2, 2015 by doudoujack (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now