app.menufairy.de Open in urlscan Pro
78.47.17.23  Public Scan

Submitted URL: http://app.menufairy.de/
Effective URL: https://app.menufairy.de/frontend/
Submission: On February 14 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

PHP NOTICE – YII\BASE\ERROREXCEPTION


TRYING TO GET PROPERTY OF NON-OBJECT

 * 1. in /usr/www/users/menuft/app/frontend/controllers/LoginController.php at
   line 29
   20212223242526272829303132333435363738
   
               if(!empty($slug)){
                   $modelCompany = CompanyMaster::findOne(['menulink' => $slug]);                
               }else{
                   $modelCompany = CompanyMaster::findOne(1);
               }
               if(empty($modelCompany)){
                   $modelCompany = CompanyMaster::findOne(1);
               }
    
               $model->company_id = $modelCompany->id;                
               if ($model->login()) {
                   $this->redirect(Yii::$app->getUrlManager()->createUrl('home/index'));
               }                   
           }        
           return $this->render('index', ['model' => $model]);
       }
    
       public function actionLogout() {
           if (Yii::$app->user->logout()) {            
   

 * 2. in /usr/www/users/menuft/app/frontend/controllers/LoginController.php at
   line 29 – yii\base\ErrorHandler::handleError(8, 'Trying to get property of
   non-ob...', '/usr/www/users/menuft/app/fronte...', 29, ...)
   23242526272829303132333435
   
                   $modelCompany = CompanyMaster::findOne(1);
               }
               if(empty($modelCompany)){
                   $modelCompany = CompanyMaster::findOne(1);
               }
    
               $model->company_id = $modelCompany->id;                
               if ($model->login()) {
                   $this->redirect(Yii::$app->getUrlManager()->createUrl('home/index'));
               }                   
           }        
           return $this->render('index', ['model' => $model]);
       }
   

 * 3. app\controllers\LoginController::actionIndex()
 * 4. in /usr/www/users/menuft/app/vendor/yiisoft/yii2/base/InlineAction.php at
   line 57 – call_user_func_array([app\controllers\LoginController,
   'actionIndex'], [])
   515253545556575859
   
           $args = $this->controller->bindActionParams($this, $params);
           Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
           if (Yii::$app->requestedParams === null) {
               Yii::$app->requestedParams = $args;
           }
    
           return call_user_func_array([$this->controller, $this->actionMethod], $args);
       }
   }
   

 * 5. in /usr/www/users/menuft/app/vendor/yiisoft/yii2/base/Controller.php at
   line 156 – yii\base\InlineAction::runWithParams([])
   150151152153154155156157158159160161162
   
           }
    
           $result = null;
    
           if ($runAction && $this->beforeAction($action)) {
               // run the action
               $result = $action->runWithParams($params);
    
               $result = $this->afterAction($action, $result);
    
               // call afterAction on modules
               foreach ($modules as $module) {
                   /* @var $module Module */
   

 * 6. in /usr/www/users/menuft/app/vendor/yiisoft/yii2/base/Module.php at line
   523 – yii\base\Controller::runAction('', [])
   517518519520521522523524525526527528529
   
           $parts = $this->createController($route);
           if (is_array($parts)) {
               /* @var $controller Controller */
               list($controller, $actionID) = $parts;
               $oldController = Yii::$app->controller;
               Yii::$app->controller = $controller;
               $result = $controller->runAction($actionID, $params);
               if ($oldController !== null) {
                   Yii::$app->controller = $oldController;
               }
    
               return $result;
           }
   

 * 7. in /usr/www/users/menuft/app/vendor/yiisoft/yii2/web/Application.php at
   line 102 – yii\base\Module::runAction('', [])
   96979899100101102103104105106107108
   
               $params = $this->catchAll;
               unset($params[0]);
           }
           try {
               Yii::trace("Route requested: '$route'", __METHOD__);
               $this->requestedRoute = $route;
               $result = $this->runAction($route, $params);
               if ($result instanceof Response) {
                   return $result;
               } else {
                   $response = $this->getResponse();
                   if ($result !== null) {
                       $response->data = $result;
   

 * 8. in /usr/www/users/menuft/app/vendor/yiisoft/yii2/base/Application.php at
   line 380 – yii\web\Application::handleRequest(yii\web\Request)
   374375376377378379380381382383384385386
   
           try {
    
               $this->state = self::STATE_BEFORE_REQUEST;
               $this->trigger(self::EVENT_BEFORE_REQUEST);
    
               $this->state = self::STATE_HANDLING_REQUEST;
               $response = $this->handleRequest($this->getRequest());
    
               $this->state = self::STATE_AFTER_REQUEST;
               $this->trigger(self::EVENT_AFTER_REQUEST);
    
               $this->state = self::STATE_SENDING_RESPONSE;
               $response->send();
   

 * 9. in /usr/www/users/menuft/app/frontend/index.php at line 25 –
   yii\base\Application::run()
   19202122232425
   
   $config = yii\helpers\ArrayHelper::merge(
                   require(dirname(__DIR__) . '/common/config/main.php'), require(dirname(__DIR__) . '/common/config/main-local.php'), require(__DIR__ . '/config/main.php'), require(__DIR__ . '/config/main-local.php')
   );
    
   $application = new yii\web\Application($config);
   date_default_timezone_set('Europe/Berlin');
   $application->run();
   



2022-02-14, 16:20:25

Apache

Yii Framework/2.0.12