简体   繁体   English

WKHTMLTOPDF引发错误代码127

[英]WKHTMLTOPDF throwing Error Code 127

I recently re-uploaded all the source files of a web-application and WKHTMLTOPDF stopped working. 我最近重新上传了Web应用程序的所有源文件,WKHTMLTOPDF停止工作。

I was getting this error from the "bindings" (wkpdf.php): 我从“绑定”(wkpdf.php)得到此错误:

WKPDF program error. WKPDF程序错误。 RESULT: 130 STDERR: STDOUT: 结果:130 STDERR:STDOUT:

And after doing some research I found this possible solution: 经过研究后,我发现了这种可能的解决方案:

https://code.google.com/p/wkhtmltopdf/issues/detail?id=289 https://code.google.com/p/wkhtmltopdf/issues/detail?id=289

So, I changed FilleZilla's file transfer type to Binary and uploaded wkhtmltopdf-i386 again. 因此,我将FilleZilla的文件传输类型更改为Binary,然后再次上传了wkhtmltopdf-i386。 However, now I get the following error when attempting to generate the PDF: 但是,现在尝试生成PDF时出现以下错误:

WKPDF program error. WKPDF程序错误。 RESULT: 127 STDERR: STDOUT: 结果:127 STDERR:STDOUT:

The website's server is running on Linux and I do not have access to the shell (only to web files via FTP). 该网站的服务器在Linux上运行,我无权访问Shell(仅通过FTP访问Web文件)。 Also, I have set all the proper permissions to the files. 另外,我已经为文件设置了所有适当的权限。

What I don't understand is why it was working before but after over writing the files (with the exact same files) it stopped working. 我不明白的是为什么它之前能工作,但是在覆盖文件(具有完全相同的文件)之后,它却停止了工作。

Anyone has any idea how to get out of this problem? 任何人都知道如何摆脱这个问题吗?

I have found the issue: The bindings file was detecting the wrong CPU. 我发现了问题:绑定文件检测到错误的CPU。 I altered so it executes wkhtmltopdf-amd64 regardless of the detection and everything works fine now. 我进行了更改,因此无论检测到什么,它都会执行wkhtmltopdf-amd64,并且现在一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM