Comments (10)
After researching, I've worked around it by installing the legacy interface, as well as locking psr/http-message
to 1.*
:
In the composer.json:
"psr/http-message": "1.*",
from laravel-printing.
Ah - found out what it was. I added the following to composer.json:
"php-http/message-factory": "^1.1",
"psr/http-message": "1.*",
.. and my printing began to work again.
I'll mount the package and see if I can get its dependencies updated into a PR so that we don't need to perform this legacy package fiddling đ
from laravel-printing.
Yes, so basically I now have both installed, as well as pinned the psr/http-message
to 1.*
like you have. I've also had a quick look, but it looks like it will be quite some work to fix this issue, mostly because the smalot/cups-ipp
package is 6 years old and basically deprecated. We should probably upgrade that one first, to use the current modern client.
from laravel-printing.
I mentioned on #81 that I would like to just write my own implementation for CUPS at some point so we could just eliminate the smalot/cups-ipp
dependency completely, since they haven't updated their PSR implementation for some time. Since I don't use CUPS myself, I don't really have any real incentive besides making my automated tests run easier for the package, so I don't know when or if I'll get a chance to do that. If anyone is able to come up with a good solution in the meantime, I'd definitely appreciate PR's on this.
from laravel-printing.
Thanks for this @jelleroorda - trying to overcome this issue myself. I'm still seeing this issue after popping the following into our composer.json and updating:
"psr/http-message": "1.*",
Could you please elaborate on what you mean by "installing the legacy interface"? Doe you mean installing "php-http/message-factory" here, alongside psr/http-message?
Thanks again for raising this issue, hopefully I can assist with a PR of some kind
from laravel-printing.
This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.
from laravel-printing.
@rawilk Perhaps itâs an idea to remove this stale bot? You donât seem to actively maintain this package currently (which is okay!).
Closing all these âactual issuesâ through the bot makes it seem like this package is actively maintained (keeps the issue count low). This is not very helpful for people who find this package and donât immediately see this package is not actively maintained. It also has the effect that the same issue gets opened multiple times, because youâre unlikely to search for closed issues when you encounter an issue. For example, this issue is related to #70 which is found after opening this issue.
from laravel-printing.
@jelleroorda I can definitely remove the stale bot - seemed like a good idea at the time to add it.
I do maintain the package still, just not as frequently as I'd like to. I have email notifications turned off unless someone tags me, so I often forget to check all of my open source packages for new issues and PR's.
from laravel-printing.
@rawilk josh-gaby/cups-ipp
fixed smalot's repo and its working well
from laravel-printing.
@DmNick Thanks for the info. I'll look into it when I get a chance.
from laravel-printing.
Related Issues (20)
- SERVER ERROR HOT 1
- file method not working HOT 1
- Rawilk\Printing\Receipts\ReceiptPrinter Not Working HOT 1
- Cannot install on PHP version 8.1 or 8.2. HOT 1
- Unable to print ZPL code HOT 1
- I can not access to my php admin HOT 1
- Arabic not printing convert to wrong text HOT 2
- [Feature Request]: Doc Update with an example of Local IP Printer HOT 3
- Laravel 10 not support HOT 3
- cURL error 60: SSL certificate problem: self signed certificate in certificate chain HOT 1
- Fatal error: Declaration of Http\Client\Socket\Stream::close() must be compatible with Psr\Http\Message\StreamInterface::close(): HOT 2
- Printers not listed HOT 1
- Dynamic printer_node_api key not Updated From V-3.0.0 HOT 2
- [Feature Request]: HOT 2
- đ¨ď¸ Mock printer for local testing HOT 2
- `Error Interface "Http\Client\HttpClient" not found.` with CUPS driver HOT 1
- [Feature Request]: Support for Laravel 11.x HOT 2
- Rawilkâ\âPrintingâ\âExceptionsâ\âPrintNodeApiRequestFailed PHP 8.1.27 10.48.5 Incorrect request body: printer id must be an integer specified as (request body).printer.id or (request body).printer or (request body).printerId HOT 1
- You must provide an api key for the PrintNode driver.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-printing.