Call to a member function getParent() on null
i get some errors reports on my website, here an abstract :
Error Code0Error TypeErrorMessageCall to a member function getParent() on nullFile/home/webapps/components/com_competition/views/category/view.html.phpLine139Request/xxxx.htmReferrerDirectForwarded for22.214.171.124 (msnbot-157-55-39-122.search.msn.com)Remote126.96.36.199 (msnbot-157-55-39-122.search.msn.com)TypeFunctionClassLineFileDprepareDocumentCompetitionViewCategory98/components/com_competition/views/category/view.html.phpDdisplayCompetitionViewCategory236/components/com_competition/controller.phpDdisplayCompetitionController702/libraries/src/MVC/Controller/BaseController.phpDexecuteJoomla\CMS\MVC\Controller\BaseController48/components/com_competition/competition.phpN/Arequire_onceN/A402/libraries/src/Component/ComponentHelper.phpSexecuteComponentJoomla\CMS\Component\ComponentHelper377/libraries/src/Component/ComponentHelper.phpSrenderComponentJoomla\CMS\Component\ComponentHelper194/libraries/src/Application/SiteApplication.phpDdispatchJoomla\CMS\Application\SiteApplication233/libraries/src/Application/SiteApplication.phpDdoExecuteJoomla\CMS\Application\SiteApplication225/libraries/src/Application/CMSApplication.phpDexecuteJoomla\CMS\Application\CMSApplication49/index.php
Please provide us more information.
- Joomla version
- NorrCompetition version
What actions were performed to reach such issue?
Like our extensions and support?
Add your voice to the JED listing with a 5 score review:: bit.ly/2ciJBqC
$category = $this->category->getParent();
So null is $this->category. And looking further where $this->category is initiated - line 71:
$this->category = JCategories::getInstance('competition')->get($app->input->getInt('id'));
So for some reason the category cannot be retrieved, but this is the category page view and it is strange. We need more info when exactly this error appears to replicate this issue on our test site.
i have the latest version for both (ext and joomla)
i have a plugin that report me by email all errors that happen on the website, dnt know exactly how its happened.
You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+2). but not limited. Our staff will be pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days. In case of free extensions we do the best to develop and maintain them either, but their support is not necessary.