jeudi 26 septembre 2019

The exit status code '1' says something went wrong: stderr: "'C:\Program' is not recognized as an internal command or ... "

I am getting this:

> The exit status code '1' says something went wrong:
stderr: "'C: \ Program' is not recognized as an internal command
or external, an executable program or a batch file."

I am using wkhtmltopdf to generatepdf under laravel, and it is working fine. I use windows for local project. Now when I try to generate it, I get this error. Nothing change, just my .env file I accidentally deleted. I create a new one, but either I get a totally blank page for all my project or I get this error when I do ajax request for generating pdf.

I try:

"C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf"
"C:\'Program Files'\wkhtmltopdf\bin\wkhtmltopdf"
"C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf"

in barryvdh/laravel-snappy config file directly (in order to check what is wrong), or in .env file (by phpdotenv) , nothing solve the issue.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2llzupG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire