DraganK Posted March 5 Share Posted March 5 Hi! Please help. I was trying to install REDIS and I got HTTP500. No access to Backoffice either due the HTTP500. Only access thru PLESK and SSH Configuration: PS 8.1.2 / PHP 8.1.31 / Ubuntu 22.04 Log: AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function getQueryHash() on null in /var/www/vhosts/balc.com/httpdocs/classes/db/Db.php:596\nStack trace:\n#0 /var/www/vhosts/balc.com/httpdocs/classes/shop/Shop.php(1364): DbCore->executeS()\n#1 /var/www/vhosts/balc.com/httpdocs/classes/shop/Shop.php(355): ShopCore::findShopByHost()\n#2 /var/www/vhosts/balc.com/httpdocs/config/config.inc.php(117): ShopCore::initialize()\n#3 /var/www/vhosts/balc.com/httpdocs/index.php(27): require('...')\n#4 {main}\n thrown in /var/www/vhosts/balc.com/httpdocs/classes/db/Db.php on line 596', referer: https://www.balc.com/productos-rebajados?resultsPerPage=99999&q=Marca- web "balc".com is not real. db.php 596 is: if ($use_cache && $this->is_cache_enabled && $array) { $this->last_query_hash = Cache::getInstance()->getQueryHash($sql); if (($result = Cache::getInstance()->get($this->last_query_hash)) !== false) { Cache::getInstance()->incrementQueryCounter($sql); $this->last_cached = true; return $result; } } How to solve the problem? Thanks in advance! 1 Link to comment Share on other sites More sharing options...
Knowband Plugins Posted March 5 Share Posted March 5 Not much idea of the same but you can disable the cache by adding the below lines in the config/defines.inc.php. Add the same in the top. defined('_PS_CACHE_ENABLED_', false); Hope it will work. 1 Link to comment Share on other sites More sharing options...
DraganK Posted March 7 Author Share Posted March 7 Thank you very much! Finally I had to restore backup. I will try another day to install it again. Rgds 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