Jump to content

Featured Replies

Posted

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.

Solved by Stuart Silvester

Go to solution
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 by Runar

  • 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.

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)

My local installation (where the issue happened) is using PHP 7.4.21.

  • 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.

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.

Great, thank you for looking. We came to the same conclusion that it's specific hooks. We'll make some changes.

  • Solution

We've pushed out a patch for 4.6.10 that should solve this issue.

Recently Browsing 0

  • No registered users viewing this page.