Jump to content

My website's frontend is not working and keeps showing a checkered page.


Recommended Posts

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

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

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

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...