2014-10-04 102 views
2

我想弄清楚我的WKPDF.php文件正在生成哪些PDF文件。WKPDF系統錯誤?

這裏的電子郵件,當他們失敗(這是每次)我得到:

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>'); 

一一羣人談到了與使用WKPDF和SSL有關的類似問題,但我認爲這不會引起我的問​​題,因爲它說SSL錯誤被忽略了......任何幫助都會真正感激。每當我嘗試這樣做,似乎有一個500錯誤發生,但我找不到任何理由發生這種情況...

讓我知道是否需要更多的信息。

回答

0

在您的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">