PHP error

Methods with the same name as their class will not be constructors in a future version of PHP; pChart has a deprecated constructor

/home/aapp/www_survey/application/third_party/pchart/pchart/pChart.class(118)

106  define("TARGET_BACKGROUND",2);
107  define("ALIGN_TOP_LEFT",1);
108  define("ALIGN_TOP_CENTER",2);
109  define("ALIGN_TOP_RIGHT",3);
110  define("ALIGN_LEFT",4);
111  define("ALIGN_CENTER",5);
112  define("ALIGN_RIGHT",6);
113  define("ALIGN_BOTTOM_LEFT",7);
114  define("ALIGN_BOTTOM_CENTER",8);
115  define("ALIGN_BOTTOM_RIGHT",9);
116 
117  /* pChart class definition */
118  class pChart
119   {
120    /* Palettes definition */
121    var $Palette = array("0"=>array("R"=>188,"G"=>224,"B"=>46),
122                         "1"=>array("R"=>224,"G"=>100,"B"=>46),
123                         "2"=>array("R"=>224,"G"=>214,"B"=>46),
124                         "3"=>array("R"=>46,"G"=>151,"B"=>224),
125                         "4"=>array("R"=>176,"G"=>46,"B"=>224),
126                         "5"=>array("R"=>224,"G"=>46,"B"=>117),
127                         "6"=>array("R"=>92,"G"=>224,"B"=>46),
128                         "7"=>array("R"=>224,"G"=>176,"B"=>46));
129 
130    /* Some static vars used in the class */

Stack Trace

#0
+
 /home/aapp/www_survey/application/helpers/admin/statistics_helper.php(2392): require_once()
2387         $astatdata          = array();
2388 
2389         if ($usegraph==1 && $outputType != 'html')
2390         {
2391             //for creating graphs we need some more scripts which are included here
2392             require_once(APPPATH.'/third_party/pchart/pchart/pChart.class');
2393             require_once(APPPATH.'/third_party/pchart/pchart/pData.class');
2394             require_once(APPPATH.'/third_party/pchart/pchart/pCache.class');
2395             $MyCache = new pCache($tempdir.'/');
2396         }
2397 
#1
+
 /home/aapp/www_survey/application/helpers/admin/statistics_helper.php(4450): statistics_helper->displayResults(array("alist" => array(array("Y", "Yes"), array("N", "No"), array("", "No answer", false, "is_no_answer")), "qtitle" => "A0000", "qquestion" => "Do you know the AAPP (Alcatel-Lucent Enterprise Application Part...", "qtype" => "Y", ...), "67", "911434X5X382", "pdf", ...)
4445                 $outputs=$this->buildOutputList($rt, $language, $surveyid, $outputType, $sql, $sLanguageCode);
4446                 $sOutputHTML .= $outputs['statisticsoutput'];
4447                 //2. Collect and Display results #######################################################################
4448                 if (isset($outputs['alist']) && $outputs['alist']) //Make sure there really is an answerlist, and if so:
4449                 {
4450                     $display=$this->displayResults($outputs, $results, $rt, $outputType, $surveyid, $sql, $usegraph, $browse, $sLanguageCode);
4451                     $sOutputHTML .= $display['statisticsoutput'];
4452                     $aStatisticsData = array_merge($aStatisticsData, $display['astatdata']);
4453                 }    //end if -> collect and display results
4454 
4455 
#2
+
 /home/aapp/www_survey/application/controllers/admin/statistics.php(483): statistics_helper->generate_statistics("911434", array("datestampE", "datestampG", "datestampL", "idG", ...), array("datestampE", "datestampG", "datestampL", "idG", ...), 1, ...)
478             switch($outputType){
479                 case 'html':
480                     $statisticsoutput .=  $helper->generate_html_chartjs_statistics($surveyid,$summary,$summary,$usegraph,$outputType,'DD',$statlang);
481                     break;
482                 case 'pdf':
483                     $helper->generate_statistics($surveyid,$summary,$summary,$usegraph,$outputType,'I',$statlang);
484                     exit;
485                     break;
486                 case 'xls':
487                     $helper->generate_statistics($surveyid,$summary,$summary,$usegraph,$outputType,'DD',$statlang);
488                     exit;
2017-10-09 21:17:09 Apache Yii Framework/1.1.18