Hi, lately my forum (using Invision Power Suite, running on PHP version 7.4.26) keeps having this log appear behind the scenes, indicating a php error of some kind:
Error: Call to undefined method stdClass::language() (0)
#0 /home//public_html/forums/system/Dispatcher/Front.php(713): IPS\Dispatcher_Standard::baseJs()
#1 /home//public_html/forums/init.php(902) : eval()'d code(16): IPS\Dispatcher_Front::baseJs()
#2 /home//public_html/forums/system/Dispatcher/Front.php(82): IPS\Dispatcher\bimchatbox_hook_includeJSandCSS::baseJs()
#3 /home//public_html/forums/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher_Front->init()
#4 /home//public_html/forums/index.php(13): IPS_Dispatcher::i()
#0 /home//public_html/forums/init.php(1004): IPS_Log::log()
#1 [internal function]: IPS\IPS::exceptionHandler()
The log keeps calling to a “language” function in one of our third party add-ons, a chatbox. The problem is, “language” is not anywhere in the app’s file at all. We looked and it is nowhere to be found in that specific file, so we have no idea why it keeps trying to call to it. It’s possible there’s an obscure leftover code somewhere else but we wouldn’t know where to look. I tried uninstalling and reinstalling the associated plugin, but that didn’t stop it either. I also tried asking the maker of the add-on but they were unable to reproduce the issue. IPS themselves say this is a problem with our server setup.
I’ve been told that call to undefined method stdClass::language() is typically a connection error with our mySQL database and to check the connection in conf_global.php, but I’m not sure what exactly that means or where to look. Any concise and clear further help would be very much appreciated as we’re not professional coders at all and I’m getting really annoyed with seeing these logs.