Comments (7)
I am able to get this library to work only if I start my laravel project using
"php artisan serve"
If I try to access the API, or PHP files directly (via URL) then it is giving the issues mentioned in the above post
fwrite() .....
shell error 127
I have got it to work on a Windows server. There is still some issue in running it from Linux server.
from php-chrome-html2pdf.
Shell error 127 usually means that the command (resp. the binary) could not be found. Try to set the path to the node executable manually using the $converter->setNodePath()
method.
from php-chrome-html2pdf.
Thanks for the reply
Tried that as well.
I had set the path like so. Let me know if this is correct
$converter->setNodePath('/home/ec2-user/.nvm/versions/node/v17.2.0/bin/node')
I even tried this
$converter->setNodePath('/home/ec2-user/.nvm/versions/node/v17.2.0/bin')
After I set the node path, I started getting this error
Shell error 126
from php-chrome-html2pdf.
Shell error 126 means your Node binary is missing executable permissions.
from php-chrome-html2pdf.
Hi @bahadurvaibhav, i am facing the exact same issue as you. May i know if you have resolved it and how?
from php-chrome-html2pdf.
I was not able to solve the issue, but I got it to run on server
I had to use this command in server (the same one I was using in local machine)
php artisan serve --port=8080
Then I was able to connect to my API using http://SERVER_IP:8080/....
from php-chrome-html2pdf.
I was not able to solve the issue, but I got it to run on server
I had to use this command in server (the same one I was using in local machine) php artisan serve --port=8080
Then I was able to connect to my API using http://SERVER_IP:8080/....
Oh, this work around doesn't seem applicable for me. So weird that it works just fine on local but not on the server. I have also updated the permission of all the files but it still doesn't work.
from php-chrome-html2pdf.
Related Issues (20)
- Problem with page.waitFor HOT 1
- Headers displayed in PDF HOT 1
- Change content-disposition to attachment HOT 6
- Unable to install on Linux Server HOT 1
- Uncaught PHP Exception: Shell error: 133 HOT 4
- Shell error 127 on linux ECS aws server but works fine on local HOT 5
- Binary error HOT 1
- Failed to launch the browser process HOT 1
- Cookies are not sent to Server while fetching content of the URL HOT 1
- No images/css/assets on relative urls HOT 3
- CSS Issue unexpected identifier "font"
- Fatal error: Uncaught Spiritix\Html2Pdf\ConverterException: Binary error: # # Fatal error in , line 0
- [Upgrade] Replace eloquent/composer-npm-bridge by php-forge/foxy HOT 1
- Binary Error -> import getStdin from 'get-stdin'; ^^^^^^^^ SyntaxError: Unexpected identifier at Module._compile HOT 5
- Binary error: Puppeteer old Headless deprecation warning HOT 3
- pageNumber and totalPages are not displayed in footerTemplate HOT 3
- Feature request: Add Auto Height
- urls with "file://" get a "net::ERR_UNKNOWN_URL_SCHEME " error
- Landscape Option Not Working
- Bug: Parameter type mismatch in Converter HOT 1
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 php-chrome-html2pdf.