Closed codinglife456 closed 7 months ago
Any solution found for this? Getting the same error on a Linux install.
Yup, managed to resolve it by changing the executable permission allowing access to apache on /home/ec2user which previously wasn't granted @MarcPinnell
Yup, managed to resolve it by changing the executable permission allowing access to apache on /home/ec2user which previously wasn't granted @MarcPinnell
i'm having same issue even tho i granted full permission to my node executable but i'm still getting "Shell error: 126"
can you give a bit detailed explanation if possible / you remember how you fixed it i'll be grateful
thanks in advance
Manually set the path to your Node.js executable using the $converter->setNodePath() method.
Manually set the path to your Node.js executable using the $converter->setNodePath() method.
even if you set the path and with correct permission it didn't work for some reason especially on EC2 RHEL , any other EC2 instances works fine
main issue is RHEL doesn't grant permission for node to execute for god knows why even if it has the needed permission while it works fine on other os
The library works fine on local host however after pushing it to the production branch and running
composer require spiritix/php-chrome-html2pdf
, I am now receiving shell error 127Error message
production.ERROR: Shell error: 127 {"exception":"[object] (Spiritix\\Html2Pdf\\ConverterException(code: 0): Shell error: 127 at /var/www/html/vendor/spiritix/php-chrome-html2pdf/src/Spiritix/Html2Pdf/Converter.php:$ [stacktrace]
Attempted solutions 1) I have tried changing permissions and ownership to the Converter.php file however the error remains
2) I have also tried to specify the filepath of node
$converter->setNodePath('/home/ec2user/.nvm/versions/node/v10.16.0/bin');
however this results in shell error 126 but upon inspecting the permission node it is already-rwxrwxr-x 1 ec2-user ec2-user 41115408 May 28 2019 node