【问题标题】:WKPDF system error?WKPDF系统错误?
【发布时间】:2014-11-29 03:35:48
【问题描述】:

我试图弄清楚我的 WKPDF.php 文件生成了哪些 PDF 文件。

这是我在失败时收到的电子邮件(每次都这样):

WKPDF system error: <pre>Loading pages (1/6)
[>                                                           ] 0%
[======>                                                     ] 10%
[=============>                                              ] 23%
[===================>                                        ] 32%
[============================>                               ] 47%
[============================>                               ] 48%
[===============================>                            ] 52%
Warning: SSL error ignored
[===============================>                            ] 52%
[===============================>                            ] 53%
[=================================>                          ] 55%
[==================================>                         ] 57%
[===================================>                        ] 59%
[=======================================>                    ] 66%
[========================================>                   ] 68%
[===========================================>                ] 72%
[==============================================>             ] 78%
[================================================>           ] 81%
[============================================================] 100%
Counting pages (2/6)
[============================================================] Object 1 of 1
Resolving links (4/6)
[============================================================] Object 1 of 1
Loading headers and footers (5/6)
Printing pages (6/6)
[>                                                           ] Preparing
[============================================================] Page 1 of 1
Done
</pre>

/dashboard/submit/overview

Array
(
    [info1] => pdf
    [attached_stuff] => 0
    [more_info] =>
    [stackoverflow] => exact
    [other_data] =>
    [sample_fields] => Array
        (
            [0] => option1
            [1] => option2
            [2] => option3
        )
    [test_option] => Url
    [last_test] => ASC
)

这是我的 PHP 文件中发送错误的行,以防万一:

if(strpos(strtolower($this->pdf['stderr']),'error')!==false)throw new Exception('WKPDF system error: <pre>'.$this->pdf['stderr'].'</pre>');

很多人都谈到了与使用带有 SSL 的 WKPDF 相关的类似问题,但我认为这不会导致我的问题,因为它说 SSL 错误被忽略了......任何帮助将不胜感激。每当我尝试这样做时,似乎都会发生 500 错误,但我找不到发生这种情况的任何原因......

如果需要更多信息,请告诉我。

【问题讨论】:

    标签: php pdf wkhtmltopdf internal-server-error


    【解决方案1】:

    在你的html中搜索http://协议,应该是https

    示例

    <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Georgia|Asap|Arial|Helvetica|Arial+Black|Gadget|Comic+Sans+MS|Impact|Charcoal|Tahoma|Geneva|Verdana|Geneva|Courier+New|Courier|serif">
        <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?subset=arabic&family=Cairo|Amiri|Changa|Mada|Lateef|Baloo+Bhaijaan|Reem+Kufi|Lalezar|Scheherazade|El+Messiri|Aref+Ruqaa|Harmattan|Lemonada|Mirza|Rakkas|Katibeh|Jomhuria">
    

    【讨论】:

      猜你喜欢
      • 2017-11-15
      • 1970-01-01
      • 1970-01-01
      • 2018-02-20
      • 2011-04-29
      • 2011-05-31
      • 2017-08-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多