PHP warning

A non-numeric value encountered

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

11         $this->rows = [];
12 
13         foreach (Proje::rows() as $row) {
14             $this->rows[] = [
15                 'row' => $row,
16                 'child' => [],
17             ];
18         }
19 
20         $model = Proje::first();
21 
22         $limit = 5;
23         $offset = ($page - 1) * 5;
24 
25         $this->render('index', array(
26             'model' => $model,
27             'rows' => Proje::rows($model->id, $limit, $offset),
28             'count' => Proje::count($model->id),
29         ));
30     }
31 
32     public function actionShow($id, $page = 1)
33     {
34         $model = Proje::row($id);
35 

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 23:11:24 Apache Yii Framework/1.1.19