escpos-tools icon indicating copy to clipboard operation
escpos-tools copied to clipboard

Unable to generate with Esc2html

Open ghost opened this issue 4 years ago • 3 comments

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

ghost avatar Feb 19 '21 07:02 ghost

Any updates on this...

opensource-emr avatar Apr 03 '21 06:04 opensource-emr

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. 🤞

marcdeotis avatar Jun 29 '21 14:06 marcdeotis

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

Achicken7301 avatar Mar 09 '22 07:03 Achicken7301