Aldeag Posted December 8, 2011 Share Posted December 8, 2011 I get strange behaviour in my Back Office, like modules not showing even if they are enabled. But the only message I got like this is when I entered in Payment tab: How can I solve this problem? Please? Link to comment Share on other sites More sharing options...
Mike Spike Posted December 9, 2011 Share Posted December 9, 2011 See Thread: Can't Load Modules after upgrade to 1.4.5 Go to root/config/config.inc.php add: /* Improve PHP configuration to prevent issues */ ini_set('memory_limit','128M'); Works on 1.4.5.1 Good luck Mike - DovJudaica 1 Link to comment Share on other sites More sharing options...
Aldeag Posted December 9, 2011 Author Share Posted December 9, 2011 Many thanks, but... It does not work. Link to comment Share on other sites More sharing options...
durghe Posted December 9, 2011 Share Posted December 9, 2011 Try to import your module with FTP client Link to comment Share on other sites More sharing options...
Aldeag Posted December 9, 2011 Author Share Posted December 9, 2011 Import? Do you mean to upload using my FTP instead from the Back Office? But that is exactly what I did. Link to comment Share on other sites More sharing options...
El Patron Posted December 9, 2011 Share Posted December 9, 2011 after making the change as suggested by Mike Spike, check your phpinfo. If you do not have a phpinfo then create a file called phpinfo.php Place the following code into phpinfo.php <?php phpinfo(); ?> ftp up to your site go to yoursiteurl/ phpinfo.php now check the result by looking at your, should look like this memory_limit 128M 128M i Link to comment Share on other sites More sharing options...
Aldeag Posted December 9, 2011 Author Share Posted December 9, 2011 after making the change as suggested by Mike Spike, check your phpinfo. If you do not have a phpinfo then create a file called phpinfo.php Place the following code into phpinfo.php <?php phpinfo(); ?> ftp up to your site go to yoursiteurl/ phpinfo.php now check the result by looking at your, should look like this memory_limit 128M 128M i Where should I find it? Into config folder, or in the root folder? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted December 9, 2011 Share Posted December 9, 2011 Hi aldeag, You can also call your hosting provider and ask them to increase your memory_limit value, and they should be able to do it for you very easily. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
Aldeag Posted December 9, 2011 Author Share Posted December 9, 2011 OK I did it and I found I have memory limit set to 32M I sent an email to my server admin so I will wait and see. Maybe on monday... Thanks to all Link to comment Share on other sites More sharing options...
Mike Kranzler Posted December 9, 2011 Share Posted December 9, 2011 Yes, most hosting providers set the default to 32M in order to conserve space and accommodate more customers, but at the same time they're usually very willing to upgrade an individual user's memory limit as long as they're not doing it for everyone. 64M is usually a good benchmark for PrestaShop where you should not ever have to worry about the memory_limit value. -Mike 1 Link to comment Share on other sites More sharing options...
Aldeag Posted December 10, 2011 Author Share Posted December 10, 2011 The answer was: Edit .htaccess into httpdocs. and modify memory limit to 128M But I don´t have .htaccess in such directory I added this line to the end of the .htacces file into my subfolder where the shop is: php_value memory_limit 128M Then I get Local Value 128M and Master Value 32M ?? Link to comment Share on other sites More sharing options...
Aldeag Posted December 10, 2011 Author Share Posted December 10, 2011 edit some file I don´t know what you mean... Link to comment Share on other sites More sharing options...
Aldeag Posted December 10, 2011 Author Share Posted December 10, 2011 I keep the same. No success. I edited the .htaccess in both, www.mydomain.com (httpdocs folder) and in www.mydomain.com/shop folder. When I go to www.mydomain.com/phpinfo.php or to www.mydomain.com/shop/phpinfo.php (in both I placed the phpinfo.php file) I get the same result: Local Value 128M and Master Value 32M, and I still don´t see the modules I want to see. Is still the memory the problem and has the master value also to be set to 128M? Or is the module the problem? Others can use it. And how to change the Master Value? Maybe I have to go up to the root but I don´t have the permisions. I will check again with my host provider...on monday. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted December 12, 2011 Share Posted December 12, 2011 I don´t know what you mean... Ignore that user, it was a spammer who has since been banned. Let me know how it goes once you speak with your host! -Mike Link to comment Share on other sites More sharing options...
Aldeag Posted December 12, 2011 Author Share Posted December 12, 2011 I meant this: Link to comment Share on other sites More sharing options...
Aldeag Posted December 12, 2011 Author Share Posted December 12, 2011 I got an answer from my hosting: "the master value is the default for the server (php.ini) and the local value is the value for your hosting so that your hosting is already working with 128MB." Then, I have to find another reason for why the modules I want to use are not working (Groupdiscount, Sales and Discounts) Link to comment Share on other sites More sharing options...
Mike Kranzler Posted December 12, 2011 Share Posted December 12, 2011 I got an answer from my hosting: "the master value is the default for the server (php.ini) and the local value is the value for your hosting so that your hosting is already working with 128MB." Then, I have to find another reason for why the modules I want to use are not working (Groupdiscount, Sales and Discounts) Have you tried uninstalling some of the modules you never use to try to free up some extra memory? -Mike Link to comment Share on other sites More sharing options...
Aldeag Posted December 12, 2011 Author Share Posted December 12, 2011 I have uninstalled some modules, but I don´t see any difference Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 Uninstalling modules is unlikely to help "Free more memory". If you see the "Local Value" in php.ini that is lower than the "Server" value, i means you are using a php.ini file (likely in your root folder) which has the memory limit variable set to 32Mb, you should try to remove it and see if it helps. You really need at least 64MB to run a site properly. Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 But is the local value which is higher than the master... And thanks to all: I really apreciate your interest and your answers. Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 I got them mixed Try placing the phpinfo() file in your admin folder and check it there. Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 I get exactly the same result: Local Value 128M and Master Value 32M Do you need any other information? Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 Did you try to turn on error reporting in /config/config.inc.php (line #29)? Do you still get that red notice in the module tabs? Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 I have just turned ON and: In the Modules tab I get this message: Warning: file_put_contents(/var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/modules/groupdiscount/config.xml) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Module.php on line 1114 In Payment tab: Warning: file_put_contents(/var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/modules/groupdiscount/config.xml) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Module.php on line 1114 The messages seem the same. No other tabs give any message. The first red (pink) message didn´t appear anymore, maybe memory increasing made this. Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 that looks like a permissions issue. Do you still get the no modules can be loaded? If so, I suggest you create a bug report with Prestashop (link to the bug tracker in the top nav) 1 Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 Do you still get the no modules can be loaded? No red (pink) message anymore. Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 Ok, so what's the problem? Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 Groupdiscount Module still doesn´t load. Which permissions do I have to change? Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 Make sure that the ownder / group / permissions for tiendaweb/modules/groupdiscount/ are the same as all other modules in your server Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 I will check later, I´m not in front of my own computer. Thanks Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 Back again. I checked the Groupdiscount module and it has 777 permisions. I checked Modules folder and it has 777 permisions. Anyway I applyed 777 permisions recursively to Modules folder. In my Catalog tab it should appear Groupdiscount but still it doesn´t I went to my Modules tab, and tryed to restart the Groupdiscount module: I get the message (I got it in spanish, but more or less) "The module can not be disabled". I do it again and the message now is: "The module has already been disabled" Now is disabled. Now I want to enable again and I get this: Warning: Missing argument 1 for TabCore::getTabs(), called in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/modules/groupdiscount/groupdiscount.php on line 55 and defined in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Tab.php on line 176 Notice: Undefined variable: id_lang in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Tab.php on line 178 Notice: Undefined variable: id_lang in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Tab.php on line 180 Notice: Undefined variable: id_lang in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Tab.php on line 184 Notice: Undefined variable: id_lang in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Tab.php on line 188 Notice: Undefined variable: id_lang in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Tab.php on line 189 Notice: Undefined variable: id_lang in /var/www/vhosts/aldeaglobaltarifa.com/httpdocs/tiendaweb/classes/Tab.php on line 190 And the last to notices are repeated at least 180 times (used Word to count) and : The following module(s) were not installed successfully:<p class="error"> groupdiscount Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 Did you check the Owner / Group? Did you try to contact the developer of the module for help? Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 Did you check the Owner / Group? I don´t know what is that. In Prestashop? In my FTP? My Prestashop is in spanish. Did you try to contact the developer of the module for help? Now I think I will. Now is not a problem of memory limit or server. But many others seem to use that module without problem. And many thanks for your attention and sorry for my english!! Link to comment Share on other sites More sharing options...
Aldeag Posted December 13, 2011 Author Share Posted December 13, 2011 Did you mean this? Link to comment Share on other sites More sharing options...
tomerg3 Posted December 14, 2011 Share Posted December 14, 2011 Nope, this is what I meant http://screencast.com/t/JHyp19LNB Link to comment Share on other sites More sharing options...
Aldeag Posted December 14, 2011 Author Share Posted December 14, 2011 So then, how can I change it and how do I know how is it now? Anyway, in my last image it is in spanish, but you can read: Permisions UNIX 777 Propietario (Owner) Grupo (Group) Otros (Others) Aplicar permisos de forma recurrente (Apply permisions recursively) And in all you can: read, write and execute. Link to comment Share on other sites More sharing options...
tomerg3 Posted December 14, 2011 Share Posted December 14, 2011 You image only shows permissions, not the actual owner / group, but rather the permissions for them. Check with your host about how to see / change them, they should be the same as all the other modules in /modules folder Link to comment Share on other sites More sharing options...
dragster Posted January 6, 2013 Share Posted January 6, 2013 (edited) Hi guys. I use prestashop 1.4.4.1 and time to time I have exactly the same problem as topicstarter. The modules I try to install are not installed, however presta reports "the module is already installed". What I have tried to do: 1) installing, deinstalling, deleting, uploding again - no success 2) loading by ftp and/or from backoffice - no success 3) playing with permissions (755, 777) - no success 4) checking memory limits - I have 128M both local value and master value - no success 5) uninstalling and/or deleting other modules - no success This time I have this problem with 1-click autoupgrade module and with SEO updater module. Looks like it can happen with any module. This bug makes me crazy. I wanted to upgrade to 1.4.9.0 to get rid of the bug, but I cannot upgrade since the autoupgrade module cannot be installed!!! HELP! p.s. trying to reproduce the issue on localhost (my home computer running windows/xampp) was not successful - everything works perfectly. But in windows there is no permission or memory problems ever possible... Edited January 6, 2013 by dragster (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 6, 2013 Share Posted January 6, 2013 Hi guys. I use prestashop 1.4.4.1 and time to time I have exactly the same problem as topicstarter. The modules I try to install are not installed, however presta reports "the module is already installed". What I have tried to do: 1) installing, deinstalling, deleting, uploding again - no success 2) loading by ftp and/or from backoffice - no success 3) playing with permissions (755, 777) - no success 4) checking memory limits - I have 128M both local value and master value - no success 5) uninstalling and/or deleting other modules - no success This time I have this problem with 1-click autoupgrade module and with SEO updater module. Looks like it can happen with any module. This bug makes me crazy. I wanted to upgrade to 1.4.9.0 to get rid of the bug, but I cannot upgrade since the autoupgrade module cannot be installed!!! HELP! p.s. trying to reproduce the issue on localhost (my home computer running windows/xampp) was not successful - everything works perfectly. But in windows there is no permission or memory problems ever possible... try this: back office-->preferences-->performance scroll down to caching (bottom) set Use cache: 'No'. now try installing module 1 Link to comment Share on other sites More sharing options...
dragster Posted January 6, 2013 Share Posted January 6, 2013 try this: back office-->preferences-->performance scroll down to caching (bottom) set Use cache: 'No'. now try installing module F*ck, it works! But for God's sake, what does caching has to do with modules installation??? Prestashop drinks my blood, all of it. 1 Link to comment Share on other sites More sharing options...
El Patron Posted January 7, 2013 Share Posted January 7, 2013 F*ck, it works! But for God's sake, what does caching has to do with modules installation??? Prestashop drinks my blood, all of it. jajajajaj...I'm half genius..now hit the like button... 2 Link to comment Share on other sites More sharing options...
Festival Trade Posted July 15, 2013 Share Posted July 15, 2013 My store was very slow since last update and I trough my server had memory issues but after I read this, I disable the catch in BO and the store is flying again Thank you.. This is Insane ! The catch should be to speed up the store. Link to comment Share on other sites More sharing options...
tuk66 Posted July 16, 2013 Share Posted July 16, 2013 ... what does caching has to do with modules installation??? A message from the Caching block: Caching systems are used to speed up your store by caching data into the server's memory, avoiding the exhausting task of querying the database. Link to comment Share on other sites More sharing options...
Alraul Posted July 20, 2013 Share Posted July 20, 2013 Hi guys, I have also a problem with memory limit. In my phpinfo I have memory limit 104M 104M (both Local Value and Master Value) but my site shows this error: Fatal error: Out of memory (allocated 76021760) (tried to allocate 32 bytes) in /mnt/webn/e3/16/53561416/htdocs/Prestashop_01/classes/db/DbPDO.php on line 91 Should I ask for having 128M to my server? or 104M is fine? Any suggestions? Thanks very much Link to comment Share on other sites More sharing options...
tuk66 Posted July 21, 2013 Share Posted July 21, 2013 Where exactly you have a memory problem? I have seen a shop with almost 100k products and 2GB is the right amount of memory there and this amount is needed only for product indexation. It is hard to say how much memory you need without details as PrestaShop version, number of products, memory eating modules, average traffic and so on. Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2013 Share Posted July 21, 2013 in my opinion it is better to have a little more memory just in case Link to comment Share on other sites More sharing options...
Alraul Posted July 21, 2013 Share Posted July 21, 2013 Hi Tuk66, thanks for your answer. I think that if you read this post from the beginning you will understand what I mean. My site shows an error of memory limit and it is not working. I have created and phpinfo page and I have memory limit 104M. If you read before, people are saying about to have 64M or 128M. I am using prestashop 1.5, for the momment I have 700 products. is that enough clear? Thanks again. Link to comment Share on other sites More sharing options...
Alraul Posted July 21, 2013 Share Posted July 21, 2013 Hi Vekya, thanks for your answer, do you know how can I change the memory limit from the .htaccess file? I am trying to add the sentence "php_value memory_limit 128M" but it is doing an error. thanks again. Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2013 Share Posted July 21, 2013 everything depends on your hosting configuration maybe you hoster disallow to change the memory limit value ? (it's a common practice and it is normal) you should ask them first Link to comment Share on other sites More sharing options...
tuk66 Posted July 22, 2013 Share Posted July 22, 2013 I just wanted to say that the error is in DbPDO.php file so it depends on amount of data fetched from the database. It means that depends on number of products or combinations or search index records etc. I suggest to patch temporarily your script(s) with memory_get_peak_usage() function abd save results to a file to see how much memory your shop consumes over time. Then you can think about higher memory limit. I suggest to contact your server administrator as it is common that you can't change PHP memory limit value (even if phpinfo say something else, memory limit used stil can be different). Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2013 Share Posted July 22, 2013 I just wanted to say that the error is in DbPDO.php file so it depends on amount of data fetched from the database. It means that depends on number of products or combinations or search index records etc. I suggest to patch temporarily your script(s) with memory_get_peak_usage() function abd save results to a file to see how much memory your shop consumes over time. Then you can think about higher memory limit. I suggest to contact your server administrator as it is common that you can't change PHP memory limit value (even if phpinfo say something else, memory limit used stil can be different). where this file is located? Link to comment Share on other sites More sharing options...
tuk66 Posted July 23, 2013 Share Posted July 23, 2013 Do you mean /classes/db/DbPDO.php ? Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2013 Share Posted July 23, 2013 no no memory_get_peak_usage() function abd save results to a file to see how much memory your shop consumes over time. i just wondering where the file is Link to comment Share on other sites More sharing options...
tuk66 Posted July 23, 2013 Share Posted July 23, 2013 memory_get_peak_usage() is PHP function, not PrestaShop one. With "save results to a file" I have meant to create a quick logging feature with fwrite() function and save the memory peak value to a new file - maybe repeatedly and in a loop just to be sure that you will catch the peak before getting HTTP 500 Error or something similar. Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2013 Share Posted July 23, 2013 yess i know that it isn't prestashop function, i just thought that the results of this function are stored in some file, anyway, thanks for your time and for clarification @tuk66 Link to comment Share on other sites More sharing options...
Alraul Posted July 24, 2013 Share Posted July 24, 2013 Hello vekia and tuk66, thanks for your help. I just added: echo memory_get_peak_usage(); echo "<br>"; before the line of the error in the DbPDO.php file and the script was writting a lot, this is the end: 74197420 74197776 74198132 74198488 Fatal error: Out of memory (allocated 74711040) (tried to allocate 56 bytes) in /mnt/webn/e3/16/53561416/htdocs/Prestashop_01/classes/db/DbPDO.php on line 94 My memory limit is 104M, so this is > 74198488. Please, what do you think? Link to comment Share on other sites More sharing options...
tuk66 Posted July 25, 2013 Share Posted July 25, 2013 That your real memory limit is not 104M. Remember, the value set in php.ini may not be real limit. Ask your server administrator. Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2013 Share Posted July 25, 2013 that's right, you've got memory limit about 72mb Link to comment Share on other sites More sharing options...
Alraul Posted July 25, 2013 Share Posted July 25, 2013 (edited) Very curious, 74198488 Fatal error: Out of memory (allocated 74711040) ...... the allocated 74711040 looks very similar with last memory_get_peak_usage() I had....it looks like this error Fatal error: Out of memory (allocated 76021760) (tried to allocate 40 bytes) in /mnt/webn/e3/16/53561416/htdocs/Prestashop_01/classes/db/DbPDO.php on line 105 is saying what is the real memory-limit, Don't you think? What can I do now? I was talking with my server (strato) and they told me that I can change the memory limit from the config.inc.php, I added this: ini_set('memory_limit','128M'); but it doesn't do anything, any more suggestion? Thanks very much Tuk66 and Vekia for helping to me with this, ;-) Edited July 25, 2013 by Alraul (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted July 26, 2013 Share Posted July 26, 2013 Once again. Ask your server administrator to memory restrictions directly in the webserver and other systems. I used a similar approach to find out that PHP's timeout is only one limitation and scripts failed due to another, not be influenced, timeout limit in other systems. Link to comment Share on other sites More sharing options...
vekia Posted July 26, 2013 Share Posted July 26, 2013 I added this: ini_set('memory_limit','128M'); but it doesn't do anything, it's because hosters usually block this feature, Imagine what would happen if everyone on shared host had access to this. Prudent allocation of resources is the most important thing about the stability of the servers, especially shared Link to comment Share on other sites More sharing options...
Alraul Posted July 26, 2013 Share Posted July 26, 2013 The server (Strato) doens't do that, I spoke again and they told me that if I can't do this change by myself it is because the hosting server has this configuration and they don't go to change it. Their answer was, if you don't like the product you can leave it.!! (refering to the hosting), :-( SO, do you think can I resolve the problem with that memory_limit or I Will need to change the hosting? Thanks for the suppor! Link to comment Share on other sites More sharing options...
tuk66 Posted July 26, 2013 Share Posted July 26, 2013 (edited) The answer is in your second sentence. Take things as they are. Edited July 26, 2013 by tuk66 (see edit history) Link to comment Share on other sites More sharing options...
Alraul Posted July 26, 2013 Share Posted July 26, 2013 Sorry, what do you mean tuk66? Link to comment Share on other sites More sharing options...
tuk66 Posted July 26, 2013 Share Posted July 26, 2013 Their answer was, if you don't like the product you can leave it.!! (refering to the hosting), :-( You need more memory and the server can't offer that so what...? Link to comment Share on other sites More sharing options...
Alraul Posted July 26, 2013 Share Posted July 26, 2013 jajaaja, thanks tuk66, this is enough clear!!! That will take to me some time, I am thinking in that, but do you think that disabling some modules it could work? Link to comment Share on other sites More sharing options...
vekia Posted July 26, 2013 Share Posted July 26, 2013 definitely, the bet thing is to REMOVE unused modules, some thing in the configuration are also related to the memory usage, for example cache / force compilation etc. Link to comment Share on other sites More sharing options...
Recommended Posts