• Hi,

    I′m using WordPress PDF Templates for a while and it was working fine.
    But since last week, the pdf only shows a blank page.
    Below error_log…

    [02-Feb-2017 14:19:31 UTC] PHP Warning:  file_get_contents(https://localhost/db/database/sow-idy/?pdf-template): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
    
     in /home/aclidb/public_html/db/wp-content/plugins/wp-pdf-templates/wp-pdf-templates.php on line 243
    [02-Feb-2017 14:19:31 UTC] PHP Warning:  file_get_contents(https://localhost/db/database/sow-idy/?pdf-template): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
    
     in /home/aclidb/public_html/db/wp-content/plugins/wp-pdf-templates/wp-pdf-templates.php on line 247
    [02-Feb-2017 14:19:31 UTC] PHP Warning:  file_get_contents(https://www.xxx.ext/db/database/sow-idy/?pdf-template): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
    
     in /home/aclidb/public_html/db/wp-content/plugins/wp-pdf-templates/wp-pdf-templates.php on line 254
    [02-Feb-2017 14:19:31 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/aclidb/public_html/db/wp-content/themes/acli-joints-microtag/single.php on line 533
    [02-Feb-2017 14:19:31 UTC] PHP Warning:  array_shift() expects parameter 1 to be array, null given in /home/aclidb/public_html/db/wp-content/themes/acli-joints-microtag/single.php on line 533
    [02-Feb-2017 14:19:31 UTC] PHP Warning:  array_values() expects parameter 1 to be array, null given in /home/aclidb/public_html/db/wp-content/themes/acli-joints-microtag/single.php on line 534
    [02-Feb-2017 14:19:31 UTC] PHP Warning:  array_shift() expects parameter 1 to be array, null given in /home/aclidb/public_html/db/wp-content/themes/acli-joints-microtag/single.php on line 534
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Colin

    (@colinsafranek)

    I am having a similar problem. In chrome, when navigating to the /pdf or /?pdf endpoint, the browser’s PDF viewer loads but the following error displays: “Failed to load PDF document”.

    Please help! This is a very important feature for my website.

    I have the same problem. The plugin does not work anymore.
    Does anyone has an idea how to fix it?

    Hope this help:

    wp-pdf-templates.php
    line 211

    // $link = $url[‘scheme’] . ‘://localhost’ . $url[‘path’];
    $link = get_the_permalink();

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page blank after updatr WordPress’ is closed to new replies.