Page 1 of 1

Error when installing new module in 2.0.1.1

Posted: Sat Feb 07, 2015 12:38 pm
by craft37
Hi all!
Could anybody help with idea how to fix that?

Code: Select all

Fatal error: Call to undefined method User::getGroupId() in /admin/controller/extension/module.php on line 31
Lines looks like this:

Code: Select all

			$this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'module/' . $this->request->get['extension']);
			$this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'module/' . $this->request->get['extension']);

Re: Error when installing new module in 2.0.1.1

Posted: Sat Feb 07, 2015 10:57 pm
by pm-netti
craft37 wrote:Hi all!
Could anybody help with idea how to fix that?

Code: Select all

Fatal error: Call to undefined method User::getGroupId() in /admin/controller/extension/module.php on line 31
Lines looks like this:

Code: Select all

			$this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'module/' . $this->request->get['extension']);
			$this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'module/' . $this->request->get['extension']);
You see file system/library/user.php.
Have you forgotten to update the file to version 2.x?

Re: Error when installing new module in 2.0.1.1

Posted: Mon Feb 09, 2015 8:08 pm
by craft37
You're right.
Also some files left from 2.1.0.0
Issue solved.