Jump to content

Blank page after admin backoffice login Prestashop 1.6.1.11


calin009

Recommended Posts

Hi ,

I updated in Prestashop the modules , from the automatic update button, and suddenly I was logged out.

Now, after login i only see a blank page.

I googled a little bit , php ini seems ok , as others recommended for this problem , and i've set the show error value to true, but no errors

 

Frontpage works

 

Can you please help me ?

Thanks

Link to comment
Share on other sites

Hi,

We have not tested the same with PS1.6 but we have faced the same issue with the PS1.7. Backend page was giving the error. We have posted the solution for the same issue for PS1.7 in the thread below.

https://www.prestashop.com/forums/topic/864311-174-error/

Considering the same situation for PS1.6, You need to delete the cache manually. Login into the server via FTP/SSH & delete the following cache folders.

cache/smarty/compile

cache/smarty/cache

 

I hope it will help.

Link to comment
Share on other sites

  • 1 month later...

after I renamed the slider module folder , the error appeared on the blank page :)

This one:

.Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/reming/public_html/depozitulcubaterii.ro/modules/autoupgrade/classes/UpgradeTools/Translator.php on line 41

 

The bold one is the line 41 , do you have a idea what s wrong ?

 

I renamed the autoupgrade module folder and...tadaaa it worked 

namespace PrestaShop\Module\AutoUpgrade\UpgradeTools;

class Translator
{
    private $caller;

    public function __construct($caller)
    {
        $this->caller = $caller;
    }

    public function trans($id, array $parameters = array(), $domain = null, $locale = null)
    {
        if (method_exists(\Context::class, 'getTranslator')) {
            return \Context::getContext()->getTranslator()->trans($id, $parameters, $domain, $locale);
        }

        if (method_exists(\Translate::class, 'getModuleTranslation')) {
            $translated = \Translate::getModuleTranslation('autoupgrade', $id, $this->caller, null);
            if (!count($parameters)) {
                return $translated;
            }
        } else {
            $translated = $id;
        }

        return $this->applyParameters($translated, $parameters);
    }

    /**
     * @param string $id
     * @param array  $parameters
     *
     * @return string Translated string with parameters applied
     *
     * @internal Public for tests
     */
    public function applyParameters($id, array $parameters = array())
    {
        // Replace placeholders for non numeric keys
        foreach ($parameters as $placeholder => $value) {
            if (is_int($placeholder)) {
                continue;
            }
            $id = str_replace($placeholder, $value, $id);
            unset($parameters[$placeholder]);
        }

        return call_user_func_array('sprintf', array_merge(array($id), $parameters));
    }
}
 

 

Edited by calin009 (see edit history)
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...