Dannymh
Active member
I have an addon that consists of a template, a template modification and 3 entitties. One of the entities is a user entity which extends the XF user entity.
This all works fine on my dev server, once I move it over and try to install it on the production server, it throws the following error '
The Entity for the USer looks like this
Class Extension is:
What would cause it to throw this error?
Its taken the whole site down and I can't do anything but see that stack trace. Everything seems to be the same as how I normallly extend these
This all works fine on my dev server, once I move it over and try to install it on the production server, it throws the following error '
Code:
An exception occurred: [LogicException] Tried to call XF\Extension::resolveExtendedClassToRoot on Onthebox\Ident\Entity\User, but extendClass was never called on the base class in src/XF/Extension.php on line 302
[LIST=1]
[*]XF\Extension->resolveExtendedClassToRoot() in src/XF/Mvc/Entity/Entity.php at line 103
[*]XF\Mvc\Entity\Entity->__construct() in src/XF/Mvc/Entity/Manager.php at line 743
[*]XF\Mvc\Entity\Manager->instantiateEntity() in src/XF/Mvc/Entity/Manager.php at line 564
[*]XF\Mvc\Entity\Manager->hydrateFromGrouped() in src/XF/Mvc/Entity/Finder.php at line 1404
[*]XF\Mvc\Entity\Finder->fetchOne() in src/XF/Mvc/Entity/Manager.php at line 151
[*]XF\Mvc\Entity\Manager->find() in src/XF/Repository/User.php at line 25
[*]XF\Repository\User->getVisitor() in src/XF/App.php at line 2054
[*]XF\App->getVisitorFromSession() in src/XF/Admin/App.php at line 68
[*]XF\Admin\App->start() in src/XF/App.php at line 2483
[*]XF\App->run() in src/XF.php at line 524
[*]XF::runApp() in admin.php at line 13
[/LIST]
The Entity for the USer looks like this
PHP:
namespace Onthebox\Ident\Entity;
use XF\Mvc\Entity\Structure;
class User extends \XF\Entity\User
{
public static function getStructure(Structure $structure)
{
$structure = parent::getStructure($structure);
$structure->relations['Ident'] = [
'entity' => 'OntheBox\Ident:Status',
'type' => self::TO_ONE,
'conditions' => 'user_id',
];
return $structure;
}
}
Class Extension is:
What would cause it to throw this error?
Its taken the whole site down and I can't do anything but see that stack trace. Everything seems to be the same as how I normallly extend these