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

Open
biloubil83 opened this Issue Nov 6, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@biloubil83

biloubil83 commented Nov 6, 2018

Bonjour
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

code

`            // 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

@LittleBigFox

This comment has been minimized.

Contributor

LittleBigFox commented Nov 7, 2018

Hi!
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;

Regards,
LBF

@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