PHP warning

count(): Parameter must be an array or an object that implements Countable

/var/www/sitios/old/lib/html2pdf/_class/locale.class.php(68)

56         $file = self::$_directory.self::$_code.'.csv';
57 
58         // the file must exist
59         if (!is_file($file)) {
60             throw new HTML2PDF_exception(0, 'language code ['.self::$_code.'] unknown. You can create the translation file ['.$file.'] and send it to the webmaster of html2pdf in order to integrate it into a future release');
61         }
62 
63         // load the file
64         self::$_list = array();
65         $handle = fopen($file, 'r');
66         while (!feof($handle)) {
67             $line = fgetcsv($handle);
68             if (count($line)!=2) continue;
69             self::$_list[trim($line[0])] = trim($line[1]);
70         }
71         fclose($handle);
72     }
73 
74     /**
75      * clean the locale
76      *
77      * @access public static
78      */
79     static public function clean()
80     {

Stack Trace

#0
+
 /var/www/sitios/old/lib/html2pdf/html2pdf.class.php(132): HTML2PDF_locale::load("fr")
127         $this->_langue       = strtolower($langue);
128         $this->_unicode      = $unicode;
129         $this->_encoding     = $encoding;
130 
131         // load the Local
132         HTML2PDF_locale::load($this->_langue);
133 
134         // create the  HTML2PDF_myPdf object
135         $this->pdf = new HTML2PDF_myPdf($orientation, 'mm', $format, $unicode, $encoding);
136 
137         // init the CSS parsing object
#1
+
 /var/www/sitios/old/protected/modules/tecnoticias/controllers/TecnoticiasController.php(46): HTML2PDF->__construct("P", "A4", "fr", true, ...)
41         ob_start();
42         // convert in PDF
43         require_once('lib/html2pdf/vendor/autoload.php'); 
44         try
45         {
46             $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', array(15, 15, 15, 15));
47             $html2pdf->pdf->SetDisplayMode('fullpage');
48             $html2pdf->writeHTML($content, isset($_GET['vuehtml']));
49             $html2pdf->Output('tecnoticia.pdf');
50         }
51         catch(HTML2PDF_exception $e) {
#16
+
 /var/www/sitios/old/index.php(19): CApplication->run()
14 defined('YII_DEBUG') or define('YII_DEBUG',true);
15 // specify how many levels of call stack should be shown in each log message
16 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
17 
18 require_once($yii);
19 Yii::createWebApplication($config)->run();
20 ?>
2024-03-28 04:19:21 Apache/2.4.52 (Ubuntu) Yii Framework/1.1.13