New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message erreur maj php7 #407

biloubil83 opened this Issue Nov 6, 2018 · 1 comment


None yet
3 participants

biloubil83 commented Nov 6, 2018

Depuis la migration vers php7 j'ai ce message d'erreur :
Since migrating to php7 I have this error message::

_Parameter must be an array or an object that implements Countable in /customers/3/1/f/blabla/httpd.www/Facturier2/PDF/class/locale.class.php on line 68


`            // load the file
              self::$_list = array();
               $handle = fopen($file, 'r');
                  while (!feof($handle)) {
                    $line = fgetcsv($handle);
**line 68=>**  if (count($line)!=2) continue;
                   self::$_list[trim($line[0])] = trim($line[1]);

merci de votre aide
Thank you for your help


This comment has been minimized.


LittleBigFox commented Nov 7, 2018

Je ne pense pas que vous ayez la dernière version de Html2pdf, ce bug a été résolu depuis un bout...
Essayez un composer update avec la nouvelle version?

Sinon ligne 68, ajoutez avant if(count...:
if (!is_array($line)) continue;


@spipu spipu added the duplicate label Nov 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment