我能够在本地环境中创建报告。但是,当部署到服务器时,其失败的jrxml创建pdf。
带有错误信息:
Type: PHPJasper\Exception\ErrorCommandExecutable
Message: Your report has an error and couldn 't be processed!\ Try to output the command using the function `output();` and run it manually in the console
Filename: /var/www/html/myapp/vendor/geekcom/phpjasper/src/PHPJasper.php我遵循错误信息。
这是产出:
./jasperstarter --locale id process "/var/www/html/myapp/archives/reports/jrxml/default/invoices.jrxml" -o "/var/www/html/myapp/archives/reports/output/330200006/103/" -f pdf -t json --data-file /var/www/html/myapp/archives/reports/output/330200006/103/invoices_data.json --json-query data在控制台中手动运行输出。它成功地创建了pdf。
有什么帮助吗?为什么它在从网页执行时会失败?
输出目录的所有者和组都是apache,权限为777。
环境:
发布于 2021-12-22 04:21:32
它由apache造成,无法使用内存setsebool -P httpd_execmem 1作为this answer。
https://stackoverflow.com/questions/70433592
复制相似问题