• Resolved sta777

    (@sta777)


    Hi, this plugin used to work fine but since the latest WordPress update, or the plugin update, it has stopped working, giving blank pages instead of pdfs.

    There are a lot of people with similar issues in this support area; blank pdfs/pages, file_get_contents(), failed to open stream warnings etc.

    Error logs shows:

    file_get_contents(http://localhost/xxxxxx/xxxxxx/?pdf-template): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
     in /home/xxxxx/public_html/wp-content/plugins/wp-pdf-templates/wp-pdf-templates.php on line 243

    Adding these lines to wp-config.php fixed it for me: (as suggested by the plugin author – https://wordpress.org/support/topic/warning-file_get_contents-13#post-8195915)

    define('WP_DEBUG', false);
    define('WP_DEBUG_DISPLAY', false);
    define('SCRIPT_DEBUG', false);
    
    ini_set('display_errors', 0);
    ini_set('log_errors', 'On');

    Hope this helps others 🙂

    https://wordpress.org/plugins/wp-pdf-templates/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Blank PDF Page & Warning: file_get_contents’ is closed to new replies.