Jump to content

PrestaShop admin slow today [ 01.10.2018]


razvypp

Recommended Posts

If you have problems with the prestashop admin today, i want to tell you the reason and give you a solution.

Reason: it's because prestashop connects to addons.prestashop.com to download latest modules, get info about your account if you are logged in, etc and as you probably noticed addons.prestashop.com is loading very slow also.

Fix: The fix is very easy but you need to be able to edit a php file in the FTP, just go to CLases/Tools.php go to line 3371  or where you see 

    protected static $is_addons_up = true;
    public static function addonsRequest($request, $params = array())
    {

Just add a return false; when the function starts, it should look like this

    protected static $is_addons_up = true;
    public static function addonsRequest($request, $params = array())
    {

return false;

 

Afterwards, clear the cache or delete the cache_index.php file from /cache

Edited by razvypp (see edit history)
  • Like 1
Link to comment
Share on other sites

  • razaro changed the title to PrestaShop admin slow today [ 01.10.2018]

My version looks like this:

 

protected static $is_addons_up = true;
    public static function addonsRequest($request, $params = array())
    {
        if (!self::$is_addons_up) {
            return false;
        }

 

 

so the new version should look like this?

 

protected static $is_addons_up = true;
    public static function addonsRequest($request, $params = array())
    {
 {
            return false;
        }

Edited by Dan (see edit history)
Link to comment
Share on other sites

Mine looks the same

protected static $is_addons_up = true;
 public static function addonsRequest($request, $params = array())
    {
		return false;  // PUT THIS JUST AFTER THE FIRST { 
			
        if (!self::$is_addons_up) {
            return false;
        }
...
....
....
 

 

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...