Site down error message

Fatal error : Uncaught Error: Call to undefined function Tygh\Tools\fn_set_hook() in /home/domainname/public_html/app/Tygh/Tools/ErrorHandler.php:145 Stack trace: #0 /home/domainname/public_html/index.php(29): Tygh\Tools\ErrorHandler::handleException(Object(Error)) #1 {main} thrown in /home/domainname/public_html/app/Tygh/Tools/ErrorHandler.php on line 145

Note I have not made recent changes

“CS Cart was running into errors with PHP 8.0. After updating to PHP 8.2, it started working again. I am unsure of what caused this sudden problem. PHP 8.2 was not installed on the device prior to a few minutes ago. The site was running on 8.0, which only has a minor syntax difference, until now.”

Above is from my web host support.

My CS cart version is not stable with 8.2 so not sure what to do…

cscart right now only supports up to 8.0

I would try downgrading to 8.0 again, and the clear /var/cache/


Thank you for your suggestion.

I dd downgrade to 8.0

How do I clear the cache?

Note I can’t sign into the backend now…

delete everything inside /var/cache

You need to ssh in or use the cpanel file manager.

As always have a backup and don’t delete the wrong directory

I found a solution init_set needed to be enabled. then in one second all was well!

Thank you for your help!