Jump to content

"Only subclasses of Dispatcher can be instantiated" Error


Tom S.
 Share

Go to solution Solved by Daniel F,

Recommended Posts

Hello,

When I run this line: ($tab has the value of 'comments')

$record->commentReviews( $tab );

I get the following error:

Quote

Only subclasses of Dispatcher can be instantiated

My guess is it throws the error when it hits this line in Records.php:

return \IPS\cms\Theme::i()->getTemplate( static::database()->template_display, 'cms', 'database' )->comments( $this );

Can't figure out why this is happening though. Am I missing a step? I do run init.php already beforehand.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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