Problem when sending a pdf

0

Hello everyone, sorry, I have a problem when generating a pdf since I get an error, I do not know who could help me

 Warning: count(): Parameter must be an array or an object that   
implements Countable in C:\xampp\htdocs\simple-invoice-master\pdf\_class
\locale.class.php on line 68


Warning: count(): Parameter must be an array or an object that implements  
Countable in C:\xampp\htdocs\simple-invoice-master\pdf\_class
\locale.class.php on line 68
TCPDF ERROR: Some data has already been output, can't send PDF file

I would be very grateful if someone could give me some clue as to what is involved in clearing the line 68 that is shown in the error is this

     if (count($line)!=2) continue;
      self::$_list[trim($line[0])] = trim($line[1]);
       }

Apart from if it is when the problem starts,

    
asked by Guillermo Mireles 17.08.2018 в 07:16
source

1 answer

1

Good I solved it adding at the beginning of the function load ($ code) (the function that contains the line 68 that you comment) the following thing:

ob_start();

and at the end of it:

ob_end_clean();
    
answered by 09.01.2019 в 20:07