PHP warning

A non-numeric value encountered

/var/www/vhosts/fenniinsaat.com/httpdocs/protected/modules/proje/controllers/front/DefaultController.php(53)

41         $this->slug = $model->slug;
42         $this->image = $model->mobile_image;
43         $this->rows = [];
44 
45         foreach (Proje::rows() as $row) {
46             $this->rows[] = [
47                 'row' => $row,
48                 'child' => [],
49             ];
50         }
51 
52         $limit = 5;
53         $offset = ($page - 1) * 5;
54 
55         $this->layout = '//layouts/categoryLayout';
56         $this->render($model->parent ? 'show' : 'index', array(
57             'model' => $model,
58             'rows' => Proje::rows($model->id, $limit, $offset),
59             'count' => Proje::count($model->id),
60         ));
61     }
62 }

Stack Trace

#9
+
 /var/www/vhosts/fenniinsaat.com/httpdocs/protected/behaviors/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24 
25         $this->owner->run(); // Run application.
26     }
27 
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
#11
+
 /var/www/vhosts/fenniinsaat.com/httpdocs/index.php(58): CComponent->__call("runEnd", array("front"))
53         return parent::init();
54     }
55 }
56 
57 $app = new Pannel($config);
58 $app->runEnd('front');
59 
60 /*
61 if (!empty(Setting::get("smtpserver"))) { Yii::app()->Smtpmail->Host = Setting::get("smtpserver"); }
62 if (!empty(Setting::get("smtpmail"))) { Yii::app()->Smtpmail->Username = Setting::get("smtpmail"); }
63 if (!empty(Setting::get("smtppass"))) { Yii::app()->Smtpmail->Password = Setting::get("smtppass"); }
2024-03-28 10:28:08 Apache Yii Framework/1.1.19