
Potrzebuje pomocy w zloklizowanu błędu.
Używam PHP Storm, który zwraca mi następujący problem:
Undefined variable 'object' less... (Ctrl+F1)
The inspection can produce two types of warnings:
The definition of the variable can not be found anywhere. ("Undefined variable")
There are one or more pathes to rich the line with the variable usage without defining it. ("Variable might have not been defined")
All variables from files that contain 'include' or 'require' are considered as defined if the option "Ignore 'include' and 'require' statements" is disabled. The inspection is enabled for global space by default.
Z kolej przeglądarka zwraca mi problem
Fatal error: Call to a member function isAccessible() on null in /public_html/Core/Base/Front.php on line 359
O to kod tego pliku :
....( Górna część kodu ) public function dispatch($controller, $action, $params, $moduleCall) { $request = $this->getRequest(); $this->setHelpersPathBase(); $response = $this->getResponse(); if ($this->getRequest()->getQuery("widget")) { $module = $this->formatNamespaceName($this->getRequest()->getQuery("widget")); $isAccessible = (strtolower($module) == "widget" ? true : $object = $this->getApplication()->getModules($module) instanceof Module && $object->isAccessible()); if (!$isAccessible) { return NULL; } $disableOb = $this->getParam("disableOutputBuffering"); if ($disableOb) { } $this->getApplication()->getEvent()->trigger("onBeforeDispatch." . $module); try { echo Action::getInstance()->widget($this->getRequest()->getQuery("widget"), $this->getRequest()->getQuery("options")); } catch (\Core\Exception $e) { ........( dalsza część kodu )
W czym leży problem

Proszę o pomoc