All Astronauts Posted February 1, 2022 Posted February 1, 2022 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.
Runar Posted February 1, 2022 Posted February 1, 2022 (edited) 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, 2022 by Runar
All Astronauts Posted February 1, 2022 Author Posted February 1, 2022 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.
Stuart Silvester Posted February 1, 2022 Posted February 1, 2022 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)
Runar Posted February 1, 2022 Posted February 1, 2022 My local installation (where the issue happened) is using PHP 7.4.21.
All Astronauts Posted February 1, 2022 Author Posted February 1, 2022 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. Runar 1
Runar Posted February 2, 2022 Posted February 2, 2022 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. SeNioR- 1
Stuart Silvester Posted February 2, 2022 Posted February 2, 2022 Great, thank you for looking. We came to the same conclusion that it's specific hooks. We'll make some changes. SeNioR- and Runar 2
Solution Stuart Silvester Posted February 2, 2022 Solution Posted February 2, 2022 We've pushed out a patch for 4.6.10 that should solve this issue.
Recommended Posts