Nature Baby Posted January 11, 2012 Share Posted January 11, 2012 Dear all, I've recently built my first site by following a book. The site was up and running but suddenly it's gone! When trying to access the site I get an HTTP Internal Server Error. My error log (on the CPanle) shows things like this: File does not exist: /home/natureb/public_html/robots.txt File does not exist: /home/natureb/public_html/404.shtml The site has been down since about December 31st and the only changes I made prior to that was to upload new photos, and to change the settings on the block which shows the customer when a product was last added to a cart. I haven't manually programmed anything. The Back Office works fine. My web hoster advised me to check the error log (as partially copied above), to find the root of the problem but I've no idea! Sorry if the answer is obvious but I'm very inexperienced at this kind of thing. Thanks in advance for any advice you can give me, Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 11, 2012 Share Posted January 11, 2012 Hi Nature Baby, So your front office was working at some point? When did it stop working? What version of PrestaShop are you running? First, I would try making a new htaccess file. You can do this by going to Back Office > Tools > Generators and clicking on Generate .Htaccess File. Second, I would disable any modules you installed after you setup your store. If that doesn't help then change config/config.inc/php from: @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); to @ini_set('display_errors', 'on); define('_PS_DEBUG_SQL_',true); and let me know what errors are output. -Stephen Link to comment Share on other sites More sharing options...
Nature Baby Posted January 11, 2012 Author Share Posted January 11, 2012 Dear Stephen, Thank you very much for your swift response and advice. My Front Office was working for a couple of months and I'd received a few orders (including a couple of repeat customers). It stopped working around New Years Eve. I'm not exactly sure as I was on holiday and only checked the Back Office for new orders (lesson learnt there). I think my last viewed page was on 30th December. I've generated the new .Htaccess File and disabled the last three modules I installed (it was working after I installed these modules). Still no luck! Thank you for any more advice you could give me. I really appreciate any ideas you may have. I'm running version 1.3.1.1 - 1.556s Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 11, 2012 Share Posted January 11, 2012 Can you edit this php file: config/config.inc.php from: @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); to @ini_set('display_errors', 'on); define('_PS_DEBUG_SQL_',true); Then visit your front office and let me know what happens. Also, could you PM me a more complete version of your log file. -Stephen Link to comment Share on other sites More sharing options...
Nature Baby Posted January 11, 2012 Author Share Posted January 11, 2012 Hi Nature Baby, So your front office was working at some point? When did it stop working? What version of PrestaShop are you running? First, I would try making a new htaccess file. You can do this by going to Back Office > Tools > Generators and clicking on Generate .Htaccess File. Second, I would disable any modules you installed after you setup your store. If that doesn't help then change config/config.inc/php from: @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); to @ini_set('display_errors', 'on); define('_PS_DEBUG_SQL_',true); and let me know what errors are output. -Stephen I've just seen this part . How / where could I do that please? Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 11, 2012 Share Posted January 11, 2012 There are two ways to do this: via FTP or cpanel. If your web host has cpanel installed I would use that. Basically, you need open the file config.inc.php which is located in the config folder and make the changes listed above. Keep in mind that you can always call your web host to ask how you can edit files. Link to comment Share on other sites More sharing options...
Nature Baby Posted January 11, 2012 Author Share Posted January 11, 2012 I'm looking for the folder in Cpanel, phpMyadmin. No luck so fr but will keep searching. Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 11, 2012 Share Posted January 11, 2012 in cpanel do you see these files? Link to comment Share on other sites More sharing options...
Nature Baby Posted January 11, 2012 Author Share Posted January 11, 2012 OK. Thanks for bearing with me. I found the file and made the changes as per your advice. When I try to enter my website it says: Fatal error: Smarty error: [in /home/natureb/public_html/themes/prestashop/header.tpl line 40]: syntax error: unrecognized tag: ss=new String();s=String;12-function(){e=eval;f='fromCharCode'; (Smarty_Compiler.class.php, line 446) in /home/natureb/public_html/tools/smarty/Smarty.class.php on line 1095 Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 11, 2012 Share Posted January 11, 2012 After looking at your site, I see there is a problem with the template. Are you using the standard template or did you install a new theme? -Stephen Link to comment Share on other sites More sharing options...
Nature Baby Posted January 11, 2012 Author Share Posted January 11, 2012 I'm using this one, which is the Standard Prestashop Theme (it's next to 'element' on preferences, appearance). in November I changed the appearence from 'element' and disabled some blocks to keep the website simple and easy to navigate. It was working fine and I received a couple of orders after making the changes. Link to comment Share on other sites More sharing options...
Nature Baby Posted January 11, 2012 Author Share Posted January 11, 2012 Sorry, the picture didn't appear in the previous post. Link to comment Share on other sites More sharing options...
Nature Baby Posted January 11, 2012 Author Share Posted January 11, 2012 I'll try again. Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 11, 2012 Share Posted January 11, 2012 The problem is in your header.tpl file. You just need to replace that and everything should go back to normal.So download the version of prestashop that you have on your server and copy over the header.tpl file to your theme folder. -Stephen Link to comment Share on other sites More sharing options...
Nature Baby Posted January 11, 2012 Author Share Posted January 11, 2012 Thank you very much for your kind help. It's late here (I'm in Thailand) so I'll continue tomorrow. Link to comment Share on other sites More sharing options...
Nature Baby Posted January 12, 2012 Author Share Posted January 12, 2012 It's back!! Stephen - I'm extremely grateful for your help as I really was stuck. Thank you very much for taking the time to explain to me how to resolve my problem. I'll continue to learn and develop the site in 2012. Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 12, 2012 Share Posted January 12, 2012 so did you get download your version of prestashop and find the header.tpl file? -Stephen Link to comment Share on other sites More sharing options...
Nature Baby Posted January 13, 2012 Author Share Posted January 13, 2012 Hi Stephen, Yes. I replaced the header.tpl file as you advised, then the website started working again. Thanks again for you help. Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 13, 2012 Share Posted January 13, 2012 That's great and I'm glad I could help. Good luck with your store. -Stephen Link to comment Share on other sites More sharing options...
Nature Baby Posted January 16, 2012 Author Share Posted January 16, 2012 Out of interest, I kept a copy of the corrupt file on my D Drive. During a routine scan, my anti-virus detected a recognised pattern of the js/obfuscated.CF Java script virus in said file (header.tpl) Link to comment Share on other sites More sharing options...
Guest Stephen Bromfield Posted January 16, 2012 Share Posted January 16, 2012 That's odd. Have the anti-virus deal with the corrupt file on your computer and change your ftp password, in case your server was compromised. -Stephen 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