lscache_prestashop icon indicating copy to clipboard operation
lscache_prestashop copied to clipboard

PHP Fatal Error

Open LaqueP opened this issue 8 months ago • 1 comments

Prestashop version: 8.1.7 Lscache version: 1.5.1 Litespeed Web server version: 6.3.2

Navigating from products sometimes the module return the following:

PHP Fatal error: Uncaught Error: Call to a member function query() on null in /home/admin/domains/domain.com/public_html/classes/db/DbPDO.php:149\nStack trace:\n#0 /home/admin/domains/domain.com/public_html/classes/db/Db.php(377): DbPDOCore->_query()\n#1 /home/admin/domains/domain.com/public_html/classes/db/Db.php(664): DbCore->query()\n#2 /home/admin/domains/domain.com/public_html/classes/db/Db.php(698): DbCore->getRow()\n#3 /home/admin/domains/domain.com/public_html/classes/module/Module.php(2636): DbCore->getValue()\n#4 /home/admin/domains/domain.com/public_html/classes/module/Module.php(2108): ModuleCore::getModuleIdByName()\n#5 /home/admin/domains/domain.com/public_html/override/classes/Link.php(33): ModuleCore::isEnabled()\n#6 /home/admin/domains/domain.com/public_html/classes/Link.php(698): Link->getLangLink()\n#7 /home/admin/domains/domain.com/public_html/modules/litespeedcache/classes/Helper.php(67): LinkCore->getModuleLink()\n#8 /home/admin/domains/domain.com/public_html/modules/litespeedcache/classes/Helper.php(192): LiteSpeedCacheHelper::initInternals()\n#9 /home/admin/domains/domain.com/public_html/modules/litespeedcache/classes/Helper.php(181): LiteSpeedCacheHelper::getInternalValue()\n#10 /home/admin/domains/domain.com/public_html/modules/litespeedcache/classes/Cache.php(795): LiteSpeedCacheHelper::getTagPrefix()\n#11 /home/admin/domains/domain.com/public_html/modules/litespeedcache/litespeedcache.php(518): LiteSpeedCacheCore->setCacheControlHeader()\n#12 [internal function]: LiteSpeedCache::callbackOutputFilter()\n#13 {main}\n thrown in /home/admin/domains/domain.com/public_html/classes/db/DbPDO.php on line 149\n

LaqueP avatar Mar 26 '25 12:03 LaqueP

hi, you may install latest release package: https://github.com/litespeedtech/lscache_prestashop/releases/tag/v.1.5.3 and clear cache in Prestashop Admin Panel->Configure->Advanced Parameters->Performance if still has problem, you may submit a ticket: https://store.litespeedtech.com/store/clientarea.php

WuhuaChen avatar Oct 31 '25 15:10 WuhuaChen