PHP warning

Trying to access array offset on value of type null

/websites/html/themes/basiccn/views/site/invest_notice.php(81)

69                             'trade'=>'', 
70                             'seDate'=>$date1
71                             );
72             echo "obj = new Array();\n";
73             $i = 1;
74             do {
75                 $content['pageNum'] = $i;
76                 $result = SiteHelper::getStockData('http://www.cninfo.com.cn/new/hisAnnouncement/query', $content, $header);
77                 echo "\t\tobj[".$i."] = JSON.parse('" .$result. "');\n";
78                 $json_test = json_decode($result, true);
79                 $i++;
80             }
81             while ( $i <= $json_test['totalpages']);
82             /* First period */
83             
84             /* Second period */
85             $date2 = Date('Y-m-d', strtotime("-7 year")).'+~+'.Date('Y-m-d', strtotime("-5 year 1 day"));
86             $content2 = array(
87                             'pageNum'=>'', 
88                             'pageSize'=>'30', 
89                             'tabName'=>'fulltext', 
90                             'column'=>'szse', 
91                             'stock'=>'002250,9900004895;', 
92                             'searchkey'=>'', 
93                             'secid'=>'', 

Stack Trace

#4
+
 /websites/html/protected/modules/wfbase/wftactions/WFTAction.php(135): CController->render("invest_notice", array("forms" => array(), "data" => null))
130         {
131       if ($thislayout===false)
132       {
133         $controller->renderPartial($viewFile,$viewData);       
134       }else{
135             $controller->render($viewFile,$viewData); 
136           }
137         }
138         $this->onAfterRender(new CEvent($this)); 
139     } 
140 
#5
+
 /websites/html/protected/modules/wfbase/wftactions/WFTAction.php(81): WFTAction->render(array("forms" => array(), "data" => null))
76   public function run()
77   {
78     $this->validateForms();
79     $this->runAction();
80     WFTDataHelper::setParameter('ActionData',$this->data);
81     $this->render($this->viewData);
82   }
83   protected function prepar()
84   {
85       $preparer=WFHelper::createComponent($this->pagePreparer);
86       if (isset($preparer))
#10
+
 /websites/html/protected/modules/wfbase/components/WfThemeController.php(38): CFilter->filter(CFilterChain)
33         }
34         public function filterAccessControl($filterChain)
35         {
36             $filter=new WfAccessControlFilter;
37             $filter->setRules($this->accessRules());
38             $filter->filter($filterChain);
39         }        
40         public function getNodeHelper()
41         {
42           if (!isset($this->_nodeHelper))
43           {
2024-06-25 01:01:27 Apache/2.4.57 (Debian) Yii Framework/1.1.12
XML 地图