receipt-print-hq / escpos-tools

Utilities to read ESC/POS print data
MIT License
197 stars 72 forks source link

Unable to generate with Esc2html #71

Open stephyswe opened 3 years ago

stephyswe commented 3 years ago

Hi, I get this error when using Mike42 - esc2html

D:\xampp\htdocs\escpos-tools>php esc2html.php receipt-with-logo.bin > output.html
PHP Fatal error:  Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in D:\xampp\htdocs\escpos-tools\esc2html.php:63
Stack trace:
#0 D:\xampp\htdocs\escpos-tools\esc2html.php(63): implode(Array, ' ')
#1 {main}
  thrown in D:\xampp\htdocs\escpos-tools\esc2html.php on line 63
opensource-emr commented 3 years ago

Any updates on this...

marcdeotis commented 3 years ago

I'm guessing you're using PHP8? Using implode with the arguments in that order was deprecated in PHP7.4 and removed in PHP8. This should be fixed if PR #74 gets merged in. 🤞

Achicken7301 commented 2 years ago

I downgrade php to php-7.3.9-Win32-VC15-x64 and use php_imagick-3.6.0-7.3-ts-vc15-x64 and no error from implode() Link php and imagick archive for windows: php and imagick