countrywesterndj Posted January 9, 2007 Share Posted January 9, 2007 I modified a template in /templates/orderforms/default .. and now everything comes up blank. I can get in the the Admin area and that works OK, but orders / support / knowledge base / etc. is all blank. I tried adding .. ?display_error=on .. to the URL .. but it didn't show anything. I have register globals on .. What happened? I put back the original template and that didn't work. I have version 2.5.8 0 Quote Link to comment Share on other sites More sharing options...
Willx Posted January 9, 2007 Share Posted January 9, 2007 CHMOD the templates_c folder that should fix your issue CHMOD it to 777 and if that dont work try 666... let me know 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 9, 2007 Share Posted January 9, 2007 CHMOD the templates_c folder that should fix your issue CHMOD it to 777 and if that dont work try 666... let me know After replacing the original templates, make sure you delete all the files in the templates_c folder. NOTE: DO NOT CHMOD A FOLDER OR FILE 777 if you have the ability to change the ownership of fhe files/folders to apache or nobody instead. 0 Quote Link to comment Share on other sites More sharing options...
Willx Posted January 9, 2007 Share Posted January 9, 2007 woops thought it was 777.. but thats what i did and it worked fine for me 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 9, 2007 Share Posted January 9, 2007 woops thought it was 777.. but thats what i did and it worked fine for me 777 means anyone can write to that directory. Even me =P 0 Quote Link to comment Share on other sites More sharing options...
Joel Posted January 9, 2007 Share Posted January 9, 2007 And 777 will also cause problems with PHPSuExec. It's going to be a problem with the code for your modified template (the blank pages). And like he said, once you replaced the original ones, you need to delete everything from templates_c. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 9, 2007 Share Posted January 9, 2007 And 777 will also cause problems with PHPSuExec. It's going to be a problem with the code for your modified template (the blank pages). And like he said, once you replaced the original ones, you need to delete everything from templates_c. eh, 95% of people dont run it, so i dont worry about it. =P Plus read/write shouldnt be even an issue if its using that. I put my templates_c directory under /home/USERNAME/ as well, to add a little more complexity to things. 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted January 9, 2007 Author Share Posted January 9, 2007 I do use PHPsuEXEC .. I did a: chown -R dee.dee templates_c chmod 755 templates_c chmod 644 *.tpl also did it on the /template/ folder. Still everything displays blank pages. I'm still not understanding what happened .. what I did was: 1- Modify /templates/orderforms/default/order-stepone.tpl 2- Delete all files in /templates_c/ And then every page went to blank .. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted January 9, 2007 Share Posted January 9, 2007 Hey, Here is a part of what is in my FAQ for my site. To add complexity to the issue, PHPsuexec, also validates the directories in which PHP files are located. A PHP file cannot be execute in a directory that is group-writable or world-writable. However, in order to access a directory, it must be world-executable, which is safe to do. As such, directories containing PHP files should have permissions 0755 or 0555. From, Adam 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted January 9, 2007 Author Share Posted January 9, 2007 But, like I said in my post, the directories DO have permissions of 755. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 9, 2007 Share Posted January 9, 2007 But, like I said in my post, the directories DO have permissions of 755. Your change to your template was incorrect. Once you restored your original file and cleared the templates_c folder, everything worked, right? 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted January 9, 2007 Author Share Posted January 9, 2007 I kept a copy of the original file .. I restored it back .. then I deleted all files in folder /templates_c/ .. And still, all pages come up blank. You can see it at: http://www.shoutcaststreaming.us/whmcs/whmcs/order.php 0 Quote Link to comment Share on other sites More sharing options...
Willx Posted January 9, 2007 Share Posted January 9, 2007 This is from a ticket that Matt had on mine when i had this issue "Hi Will, Check that you have the templates_c folder CHMOD to 777 so the templates can be cached to improve page loading performance. Regards, Matt" This did fix my issue. And YES CHMOD 777 WORKS 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted January 10, 2007 Author Share Posted January 10, 2007 Well I feel so stupid .. but I fixed it .. Checked all the server logs and everything looked OK .. But wasn't receiving e-mails .. checked that log and I had run out of disk space on that account .. Inceased the allotment on that account and WHMCS worked again. Thank you everybody for the input, I really appreciate it. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted January 10, 2007 Share Posted January 10, 2007 Here is your sign From, Adam 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 10, 2007 Share Posted January 10, 2007 Here is your sign From, Adam ROFL, nice. =P 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.