tara|yn Posted January 4, 2011 Share Posted January 4, 2011 Hi all,I'm running Prestashop 1.3.1 on Apache and I was trying to figure out why my site wasn't getting updated when I edited the .tpl files in my modules. Stupid me went and deleted the blockvariouslinks.tpl.php file from the tools>smarty>compile folder and now my CMS links in the footer have disappeared!! How do I get my CMS links to reappear? Also, seems like there aren't any new .tpl.php files being generated in the smarty>compile folder since 2 Jan 2011. I've only got .tmp ones. Is this normal given that I was actually amending .tpl files during this time? I did not make any amendments to my smarty config and my file permissions for the compile folder are set to 777. Any ideas? Thanks in advance for your help! Link to comment Share on other sites More sharing options...
shokinro Posted January 4, 2011 Share Posted January 4, 2011 You can remove all files under /tools/smaty/compile/ folder. All files should be re-generated automatically.I don't think this is the cause of your problem.I guess there is something wrong with your some of your tpl file or php file that make smaty failed on compiling related file.Please try set 'display_errors' to 'on' at /config/config.inc.php file to see if there is any error displayed.If you have a backup, please try to restore the file you made changes to see what happens.(it is a good habit to make a backup before perform any changes!) Link to comment Share on other sites More sharing options...
tara|yn Posted January 5, 2011 Author Share Posted January 5, 2011 Thanks Shokinro. I turned on the debug and this is what appeared at my footer:Warning: Smarty::include(D:\websites\paperedensg2/tools/smarty/compile\%g^671^671FF4C3%%blockvariouslinks.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in D:\websites\paperedensg2\tools\smarty\Smarty.class.php on line 1266Warning: Smarty::include() [function.include]: Failed opening 'D:\websites\paperedensg2/tools/smarty/compile\%g^671^671FF4C3%%blockvariouslinks.tpl.php' for inclusion (include_path='.;C:\php5\pear') in D:\websites\paperedensg2\tools\smarty\Smarty.class.php on line 1266I believe this is the file that I deleted... does this mean my php5\pear is missing? thanks again for your prompt response!! Link to comment Share on other sites More sharing options...
tara|yn Posted January 5, 2011 Author Share Posted January 5, 2011 So I managed to get my footer links back by copying an older version of the .tpl.php and renaming it to be the same as the missing file after making the relevant tweaks in the .tpl.php itself. But I'm still trying to figure out why on earth my .tpls aren't getting compiled to .tpl.php. My web host advised that I should be using another PEAR directory -yet they are the ones who set the pear directory in the include_path! Could that be what is causing my inability to compile? Link to comment Share on other sites More sharing options...
shokinro Posted January 5, 2011 Share Posted January 5, 2011 I am not sure what is cause. But I think the problem might be not at the include path. Try too make some very small and small changes on other file and see if the compiled files updated under /tools/smarty/compile. If new file is generated, then it is not the include path problem. Link to comment Share on other sites More sharing options...
tara|yn Posted January 6, 2011 Author Share Posted January 6, 2011 I am not sure what is cause. But I think the problem might be not at the include path. Try too make some very small and small changes on other file and see if the compiled files updated under /tools/smarty/compile. If new file is generated, then it is not the include path problem. Thanks Shokinro. I really appreciate your help on this. I did that but no new file was compiled. And my webhost took the initiative to set the include_path to point to the correct pear directory which caused my site to throw this error when I loaded the index.php page:Warning: Smarty::require_once(Smarty_Compiler.class.php) [function.Smarty-require-once]: failed to open stream: No such file or directory in D:\xxx\yyy\tools\smarty\Smarty.class.php on line 1457Fatal error: Smarty::require_once() [function.require]: Failed opening required 'Smarty_Compiler.class.php' (include_path='.;D:\WAMP\php\pear') in D:\xxx\yyy\tools\smarty\Smarty.class.php on line 1457So I asked them to revert back to the original path and my site threw the same error...just with a different path. Is it that prestashop doesn't know where to find the smarty libraries? Should I install that in the D:\WAMP\php\pear folder or include that in the include_path somewhere? Thanks again! Link to comment Share on other sites More sharing options...
shokinro Posted January 6, 2011 Share Posted January 6, 2011 Sorry, I have not clue on this.But I think it maybe not the path setting issue, maybe some file of your PrestaShop is corrupted.You can try to install a another copy at different folder or sub-folder, if that one works, it means there is no problem with the server. (Just a thought) Link to comment Share on other sites More sharing options...
tara|yn Posted January 7, 2011 Author Share Posted January 7, 2011 Thanks Shokinro for the advice. I reuploaded some of the files and voila, it works now. My webhost installed a pear directory at C:\php5\pear which I think fixed the templates-not-recompiling issue. yay! Link to comment Share on other sites More sharing options...
shokinro Posted January 7, 2011 Share Posted January 7, 2011 Congrats and I am glad it started working again. 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