TypeError

Cannot access offset of type string on string

/home/yii/framework/zii/widgets/CBaseListView.php(109)

097 
098     /**
099      * Initializes the view.
100      * This method will initialize required property values and instantiate {@link columns} objects.
101      */
102     public function init()
103     {
104         if($this->dataProvider===null)
105             throw new CException(Yii::t('zii','The "dataProvider" property cannot be empty.'));
106 
107         $this->dataProvider->getData();
108 
109         $this->htmlOptions['id']=$this->getId();
110 
111         if($this->enableSorting && $this->dataProvider->getSort()===false)
112             $this->enableSorting=false;
113         if($this->enablePagination && $this->dataProvider->getPagination()===false)
114             $this->enablePagination=false;
115     }
116 
117     /**
118      * Renders the view.
119      * This is the main entry of the whole view rendering.
120      * Child classes should mainly override {@link renderContent} method.
121      */

Stack Trace

#3
+
 /home/elitsolutions/protected/views/blog/index.php(36): CBaseController->widget()
31       <div class="col-lg-8">    
32     <?php $this->widget('zii.widgets.CListView', array(
33     'dataProvider'=>$dataProvider,
34     'itemView'=>'_view',
35     'summaryText'=>'',
36     'htmlOptions'=>'', 
37     )); ?>
38       </div>
39          <div class="col-lg-4">
40             <div class="filters_rb">
41                 <form role="search" action="" method="">
#8
+
 /home/elitsolutions/protected/controllers/BlogController.php(144): CController->render()
139                     'pageSize'=>$pageSize,
140                 )
141             )
142         );
143         $this->render('index',array(
144             'dataProvider'=>$dataProvider,
145         ));
146     }
147 
148     /**
149      * Manages all models.
#21
+
 /home/elitsolutions/public_html/index.php(14): CApplication->run()
09     defined('YII_DEBUG') or define('YII_DEBUG', true);
10     // specify how many levels of call stack should be shown in each log message
11     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
12 
13     require_once ($yii);
14     Yii::createWebApplication($config) -> run();
15 
16 
17 ?>
2024-03-29 03:07:13 nginx Yii Framework/1.1.13