Jump to content

Your new monkeypatch stuff in 4.6.10


Go to solution Solved by Stuart Silvester,

Recommended Posts

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.

Posted (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 by Runar
Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...