Harmster Posted March 25, 2013 Share Posted March 25, 2013 Hey, I am busy on creating a PW Youtube module. Now when i try to make the interface in PW ( the youtube tab) I get this erro: Recoverable Fatal Error Argument 1 passed to ProcessController::getProcessMethodName() must be an instance of Process, instance of Youtube given, called in C:\xxx\xxxx\website\daplays\wire\core\ProcessController.php on line 193 and defined (line 167 of C:\xxx\xxxx\website\daplays\wire\core\ProcessController.php) This error message was shown because you are logged in as a Superuser. Error has been logged. Now this is my _install() code: public function ___install() { $page = $this->pages->get('template=admin,name='.self::PAGE_NAME); if (!$page->id) { $page = new Page(); $page->template = $this->templates->get('admin'); $page->parent = $this->pages->get($this->config->adminRootPageID); $page->title = 'Youtube'; $page->name = self::PAGE_NAME; $page->process = $this; $page->save(); } I understand that the proecss = $this, which in this case is Youtube. but why do all my other modules work but this one doesnt? and how can i fix it... Link to comment Share on other sites More sharing options...
Wanze Posted March 25, 2013 Share Posted March 25, 2013 Do you extend Process? class ProcessYoutube extends Process { //... } 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now