J. Fernandes PT Posted May 18, 2011 Share Posted May 18, 2011 hello.I used the Force compile method to force PS to re-read the files after I made some changes to .tpl files, but I dont know how that method didn´t worked anymore, the site went blank when I used that option in Admin. I disabled that option and the site went live again, but the site didn't read the changes to the .tpl files.Looked for an answer in this forum, downloaded the module Empty Cache, emptied the cache with that module and now the site went permanently blank. Went to tools/smarty/compile, deleted all the files except index.php, the problem persists, the site is completely blank (the BO is alive, though).Any help, please?PS: If I use Smarty 2 instead of 3 (BO/Preferences) , the site goes live (with some problems, as I have PS1.4 wish is not much compatible with Smarty 3). Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted May 19, 2011 Share Posted May 19, 2011 I did the exact same thing and on two seperate websites.. I have white screen of death. I took over a week just uploading over 10,000 products on the one so I hope there is a solution.. the team has been really slow to respond lately something about some Prestashop 2.0 coming out.. kinda is bothersome as they should fix what is out before putting more stuff out that will screw up. This is MAJOR.. I am loosing sales here every day!Not sure why you marked this solved but you need to remove the SOLVED in your subject line. THIS IS NOT SOLVED BY ANY MEANS.. I have some more info my host gave me yesterday when trying to fix it for me.. HostGator is great! When I ran the script, it checks permissions on all file paths and directories. As best I can tell, there was a recent update or change to this file:./classes/CacheFS.phpAnd was generating some warning messages while trying to open a stream for output:[17-May-2011 09:58:55] PHP Warning: file_put_contents(/home/toolsupp/public_html/config/../cache/cachefs/3/3e13692c14c91c664a7a2a5eaf0dd3ec) [function.file-put-contents]: failed to open stream: No such file or directory in /home/toolsupp/public_html/classes/CacheFS.php on line 51[17-May-2011 09:58:56] PHP Fatal error: Out of memory (allocated 65011712) (tried to allocate 44 bytes) in /home/toolsupp/public_html/classes/CacheFS.php on line 152Which is basically while trying to write to the cache folder (line 51), where it was failing, and eventually gave up trying to update (line 152).ANY HELP WOULD BE GREATLY APPRECIEATED. Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted May 19, 2011 Share Posted May 19, 2011 I switched to Smart 2 like you said above and then refreshed my home page and just got this error now: Fatal error: Smarty error: [in /home/toolsupp/public_html/modules/blockuserinfo/blockuserinfo.tpl line 33]: syntax error: unrecognized tag: $link->getPageLink('index.php') (Smarty_Compiler.class.php, line 446) in /home/toolsupp/public_html/tools/smarty_v2/Smarty.class.php on line 1095so I uninstalled blockuserinfo module and wa la my site is back up.. and fine. CRAZY! So then.. I refresh the page and back to white screen of death.. any help?? The plot now thickens.. My host looked at it.. again.. and said: The issue that appeared to be occurring was due to url-encoding happening within the file "/home/toolsupp/public_html/modules/blockuserinfo/blockuserinfo.tpl", causing internal PHP operands, such as "->" to become "->" which was not recognizable by PHP. Here is the real kicker I have uninstalled prior to this happening the blockuserinfo module all together. It should not be affecting anything.. but just to be safe I restored from a back up done with the site was fine.. that entire folder and did it again! Link to comment Share on other sites More sharing options...
J. Fernandes PT Posted May 19, 2011 Author Share Posted May 19, 2011 Hi Scuba.tried different solutions that I found in this forum and everything went to normal. And I'm glad that I had this problem because is a test site, so I learned a lot about this issue.(make backups of everything, this worked for me, dont know if works for you). Anyway, your shop is there in the server, don´t need to upload backups.Just make sure you have backups of shop.I used the Empty Cache module to clean the cache (see attachment)In my homepage appeared an error concerning an Horizontal menu that I had. Disabled that menu, site went live again.Everything was ok except the Product Page. I had been working in the product.tpl file and it seems I had put bad code (I uploaded the one in my computer and that problem gone). If you changed a .tpl file, make a copy of it in your server and upload the one in your computer/backup.Everything is now ok, the Force Compile function works again.I'm not a tech guy, sorry if i'm not to specific.EDIT: Ups! seems you already solved the problem. emptycache.zip Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted May 19, 2011 Share Posted May 19, 2011 I do back up constantly and save several back up versions. I did not do any tpl changes.. that is what is wild for me.. I just did force compile and turned off cache and hit refresh on the front office and GONE.. Site was fine for at least 2 weeks before that. Link to comment Share on other sites More sharing options...
J. Fernandes PT Posted May 19, 2011 Author Share Posted May 19, 2011 I read somewhere in this forum that one of the reasons that this happens is:in preferences/performance (PS 1.4), there's an option at the end of the page called "Caching". As my site is a testing one, I remember activating the option "Use Cache - MemCached" just to know what that was. As you have to install some files in your server for that cache system to work, it gives you an error.I think my problems started there. But just my 2 cents. Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted May 24, 2011 Share Posted May 24, 2011 I had a friend messing with my site and did not know it.. they updated my server settings in the process of a fix and that is what caused my issue. I had to then regenerate my .htaccess file and then turn off both caches and then check force compile under preferences/performance and that is what got it back up. Thanks all for trying.. after that I just rechecked the no to foce compile and yes to caches (both) and all was good. Thanks. Link to comment Share on other sites More sharing options...
fancydressqueen Posted July 21, 2011 Share Posted July 21, 2011 Just a quick note to say thank you so much for the solution above, it helped me out of a real hole. Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted July 21, 2011 Share Posted July 21, 2011 so glad to hear it. 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