Preview not working

Home Forums WP Shop Styling PDF invoice Preview not working

This topic contains 3 replies, has 2 voices, and was last updated by  Thomas 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15261 Reply

    Thomas

    Hi, I have an issue with the preview of the PDF not working, any clue what this might be? It shows a blank screen.

    #15262 Reply

    Thomas

    If I wiev the source, it says (in red)

    <?php
    ob_start();
    require_once(__DIR__."/../../../../wp-admin/admin.php");
    ob_end_clean ();
    if( strpos($_GET['filename'], '/') !== FALSE )
        die();
    if( strrpos( strtolower($_GET['filename']), '.pdf') !== strlen($_GET['filename'])-4 )
        die();
    header('Content-disposition: attachment; filename='.$_GET['filename']);
    header('Content-type: application/pdf');
    readfile(HAET_INVOICE_PATH.$_GET['filename']);
    ?> 
    #15263 Reply

    Hannes
    Keymaster

    What is the actual error message?

    #15264 Reply

    Thomas

    Not shure where to look for errormessages, but when previewing the blank goes white (no content) on this adress: /wp-content/plugins/wp-ecommerce-shop-styling/includes/download.php?filename=preview.pdf

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Preview not working
Your information: