-
Notifications
You must be signed in to change notification settings - Fork 862
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
fclose() expects parameter 1 to be resource, boolean given #595
Comments
Hello, I have not seen this myself. Would you mind sharing a self-contained example which shows the problem? This would allow me to run it myself, and also ses how you are using the library. Ideally you could also add some information about your platform, such as your OS and PHP version. |
`<?php
I have just use above code |
Excellent. So, you are closing the printer twice. Remove the first call to It is a bug that escpos-php throws a warning here, I would expect it to silently ignore the second close(). |
Thank you mike42, you are great! You have just saved my ass! I had a problem of opencart upgrade php problem that shows "Warning: fclose() expects parameter 1 to be resource, boolean given in /var....../log.php on line 14 Warning: fclose() expects parameter 1 to be resource, boolean given in...."!! After your answer, I though there is ,also, double closed problem! So I comment out the line 14 on the log.php. So, now the problem has gone. My website working like a charm! Thank you mike42! Good man!! |
While connection from browser to printer print successfully but after $printer -> close(); it throws fclose() expects parameter 1 to be resource, boolean given error
The text was updated successfully, but these errors were encountered: