Jump to content

How to disable "Caching" ?


Recommended Posts

Hello,

 

I try switch on "Caching" in menu (Advanced Parameters-Performance) but my e-shop is down. I´m not able to sign in to prestashop admin and switch off  "caching".

 

Is some possibility how to fix this problem? I´m able to go to my database.

 

I´m using prestashop 1.6 and address of my shop is www.i-svitidla.cz

 

Thank you

Share this post


Link to post
Share on other sites

you don't need access to bo in this case

 

you have to access to prestashop filesystem, so connect to your FTP service

 

open: config/defines.inc.php
 
find this line: define('_PS_MODE_DEV_', false);
change to look like this: define('_PS_MODE_DEV_', true);

Share this post


Link to post
Share on other sites

 

you don't need access to bo in this case

 

you have to access to prestashop filesystem, so connect to your FTP service

 

open: config/defines.inc.php
 
find this line: define('_PS_MODE_DEV_', false);
change to look like this: define('_PS_MODE_DEV_', true);

 

 

So I done it.

Where Can I see some report pls?

Share this post


Link to post
Share on other sites

There is problem, when I try to go to backoffice page, it s no possible. Page is only loading, but nothing happend it s same like my e-shop page.

 

So after many minutes, there is this warning: 

"Fatal error: Uncaught MySQL server has gone away<br /><br /><pre> SELECT domain, domain_ssl FROM ps_shop_url WHERE main = 1 AND id_shop = 1 LIMIT 1</pre> thrown in /data23/isvitidla/html/classes/db/Db.php on line 635"

 

And after them:

 

[PrestaShopDatabaseException]

MySQL server has gone away

 

			SELECT su.physical_uri, su.virtual_uri, su.domain, su.domain_ssl, t.id_theme, t.name, t.directory			FROM ps_shop s			LEFT JOIN ps_shop_url su ON (s.id_shop = su.id_shop)			LEFT JOIN ps_theme t ON (t.id_theme = s.id_theme)			WHERE s.id_shop = 1			AND s.active = 1 AND s.deleted = 0 AND su.main = 1 LIMIT 1

at line 635 in file classes/db/Db.php

629. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);630. 		}631. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))632. 		{633. 			if ($sql)634. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');635. 			throw new PrestaShopDatabaseException($this->getMsgError());636. 		}637. 	}638. 639. 	/**
Edited by Compolux (see edit history)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More