Fatal error: Uncaught Error: Call to undefined function Tygh\Tools\fn_set_hook()

Hi, our website can not open suddenly, and display errors as below:

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

Anyone know what’s the possible reason ? Thanks !

Hi!

Please apply the attached .diff file and check what will change.
2dd5710e2e7d5a0482cf74b7dc67ee2471256dcd.diff (1.3 KB)

1 Like