0

在新的 CentOS 7 服务器中,Joomla 3.9.x CMS 上的 Chronoforms5 组件的 TCPDF 插件存在问题,而在我的旧服务器 Debian 8 上则没有。两台服务器中的 Joomla 安装相同。

旧服务器(运行良好):Debian 8 / Apache 2.4.10 / PHP 7.1.30 / Joomla 3.9.10;

新服务器(有错误):CentOS 7.6.1810 / Apache 2.4.6 / PHP 7.3.7 / Joomla 3.9.10。

当我提交应在“缓存”之类的文件夹上创建 PDF 的表单时(因此 url 将是http://www.example.com/cache/filexxx.pdf和路径 /var/www/html/cache/ filexxx.pdf),在 Debian 上创建文件并在调试时 $form->files['cf_pdf_file']['link'] 值为 'cache/filexxx.pdf',这是正确的行为。

在 CentOS 上使用相同表单的问题是,当我提交表单时,我收到此错误:

Warning: fopen(): remote host file access not supported, file://cache/tcpdf_20190712104304.pdf in /usr/share/php/tcpdf/include/tcpdf_static.php on line 1821

Warning: fopen(file://cache/tcpdf_20190712104304.pdf): failed to open stream: no suitable wrapper could be found in /usr/share/php/tcpdf/include/tcpdf_static.php on line 1821

TCPDF ERROR: Unable to create output file: cache/pdf/tcpdf_20190712124222.pdf

4

0 回答 0