FSK Posted May 18, 2021 Share Posted May 18, 2021 My website's backend is working fine. The frontend is not working. I tried changing PHP versions, also restoring files and enabling/disabling modules. However, nothing seems to fix the problem. Any suggestions? Please HELP! :(((( I am using Prestashop 1.7.5.1 Link to comment Share on other sites More sharing options...
El Patron Posted May 20, 2021 Share Posted May 20, 2021 please post link to your front office Link to comment Share on other sites More sharing options...
FSK Posted May 20, 2021 Author Share Posted May 20, 2021 www.novokw.com Link to comment Share on other sites More sharing options...
musicmaster Posted May 20, 2021 Share Posted May 20, 2021 On 5/18/2021 at 7:50 AM, FSK said: My website's backend is working fine. The frontend is not working. I tried changing PHP versions, also restoring files and enabling/disabling modules. However, nothing seems to fix the problem. Did you clean the cache after each PHP version change? That is a must. Also tell your PHP version and whether you changed anything that triggered this dysfunction. Link to comment Share on other sites More sharing options...
FSK Posted May 21, 2021 Author Share Posted May 21, 2021 16 hours ago, musicmaster said: Did you clean the cache after each PHP version change? That is a must. Also tell your PHP version and whether you changed anything that triggered this dysfunction. Yes I did clear the cache. I did not change anything at all. The front end suddenly stopped working. Link to comment Share on other sites More sharing options...
musicmaster Posted May 21, 2021 Share Posted May 21, 2021 It looks like a PHP error is happening. So look in the server's error log and enable debug mode. Link to comment Share on other sites More sharing options...
FSK Posted May 27, 2021 Author Share Posted May 27, 2021 On 5/21/2021 at 11:47 AM, musicmaster said: It looks like a PHP error is happening. So look in the server's error log and enable debug mode. Hello, I turned debug mode on. This is the error message I am getting on the website: (1/1) FatalErrorException Error: Illegal length modifier specified 'f' in s[np]printf call in smarty_template_compiled.php line 178 __________________________________ This is line 178: touch($this->filepath); __________________________________ This is the entire function that includes line178: public function compileTemplateSource(Smarty_Internal_Template $_template) { $this->file_dependency = array(); $this->includes = array(); $this->nocache_hash = null; $this->unifunc = null; // compile locking if ($saved_timestamp = (!$_template->source->handler->recompiled && is_file($this->filepath))) { $saved_timestamp = $this->getTimeStamp(); touch($this->filepath); } // compile locking try { // call compiler $_template->loadCompiler(); $this->write($_template, $_template->compiler->compileTemplate($_template)); } catch (Exception $e) { // restore old timestamp in case of error if ($saved_timestamp && is_file($this->filepath)) { touch($this->filepath, $saved_timestamp); } unset($_template->compiler); throw $e; } // release compiler object to free memory unset($_template->compiler); } Link to comment Share on other sites More sharing options...
El Patron Posted May 28, 2021 Share Posted May 28, 2021 here is search results from this error, I don't have time to look through each. Also I recommend posting in job section and build a realtioship with a freelancer to help when you get stuck. https://www.google.com/search?q=prestashop+Error%3A+Illegal+length+modifier+specified+'f'+in+s[np]printf+call+in+smarty_template_compiled.php+line+178&oq=prestashop+Error%3A+Illegal+length+modifier+specified+'f'+in+s[np]printf+call+in+smarty_template_compiled.php+line+178&aqs=chrome..69i57j35i39l2j0l7.11538j1j7&sourceid=chrome&ie=UTF-8 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