Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 1, 20222 yr Did you guys dogfood this with 3rd party stuff? Init.php, line 900 or so if( static::isThirdParty( $data['file'] ) and \IPS\Dispatcher::hasInstance() ) { \IPS\Dispatcher::i()->loadedHooks[] = $data['file']; } Fatal error: Uncaught Error: Class 'IPS\Dispatcher' not found in C:\laragon\www\dev45\init.php:900 Stack trace: #0 C:\laragon\www\dev45\init.php(874): IPS\IPS::monkeyPatch('IPS', 'Dispatcher', '') #1 [internal function]: IPS\IPS::autoloader('IPS\\Dispatcher') #2 C:\laragon\www\dev45\init.php(999): spl_autoload_call('IPS\\Dispatcher') #3 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #4 {main} thrown in C:\laragon\www\dev45\init.php on line 900 Mayhaps it is local to my dev instance but this was a pretty hard stop on everything. I just hacked out that new stuff and moved on (you are only using it for log entries anyways) but you may wish to give this a close look.
February 1, 20222 yr 46 minutes ago, All Astronauts said: Mayhaps it is local to my dev instance but this was a pretty hard stop on everything. No, the same happened to me as well, though only when attempting to update from the AdminCP: Edited February 1, 20222 yr by Runar
February 1, 20222 yr Author This was direct file overwrite - I never upgrade my DEV via the ACP FTP stuff. Either way, the code I pasted is the hitch in these instances.
February 1, 20222 yr I'm unable to reproduce this issue, on one of my dev installs with a lot of custom apps and plugins, everything is working well. Which version of PHP are you both using? (although I've tested 7.2, 7.4 and 8.0)
February 1, 20222 yr Author Did some more digging and caught it. Old application (private), probably from the 4.3 days. The hook that was crashing it was on \IPS\Dispatcher, not \IPS\Dispatcher\Front or \IPS\Dispatcher\Admin. The problem was the hook being on that and not on Front or Admin instead.
February 2, 20222 yr I’ve identified the following application as the cause of my issues: This application hooks into \IPS\Dispatcher, which as mentioned by @All Astronauts above is problematic.
February 2, 20222 yr Great, thank you for looking. We came to the same conclusion that it's specific hooks. We'll make some changes.