escpos-tools
escpos-tools copied to clipboard
Unable to generate with Esc2html
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
Any updates on this...
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. 🤞