Post by craft37 » Sat Feb 07, 2015 12:38 pm

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']);

New member

Posts

Joined
Sun Dec 09, 2012 12:30 pm

Post by pm-netti » Sat Feb 07, 2015 10:57 pm

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?

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by craft37 » Mon Feb 09, 2015 8:08 pm

You're right.
Also some files left from 2.1.0.0
Issue solved.

New member

Posts

Joined
Sun Dec 09, 2012 12:30 pm
Who is online

Users browsing this forum: No registered users and 5 guests