Skip to content
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

Unable to generate with Esc2html #71

Open
stephyswe opened this issue Feb 19, 2021 · 3 comments
Open

Unable to generate with Esc2html #71

stephyswe opened this issue Feb 19, 2021 · 3 comments

Comments

@stephyswe
Copy link

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
Copy link

Any updates on this...

@marcdeotis
Copy link

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
Copy link

Achicken7301 commented Mar 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants