WordPress.org

Ready to get started?Download WordPress

Forums

Invoice King Pro
Unable to create output file (xampp) (4 posts)

  1. sas-dev
    Member
    Posted 4 months ago #

    If I click on view pdf a error shows.

    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wp\wp-content\plugins\invoice-king-pro\includes\pdf.php on line 77
    
    Warning: fopen(C:\xampp\htdocs\wp\wp-content\plugins\invoice-king-pro\includes/../../outputs/88.pdf): failed to open stream: No such file or directory in C:\xampp\htdocs\wp\wp-content\plugins\invoice-king-pro\packages\fpdf\fpdf.php on line 1075
    FPDF error: Unable to create output file: C:\xampp\htdocs\wp\wp-content\plugins\invoice-king-pro\includes/../../outputs/88.pdf

    https://wordpress.org/plugins/invoice-king-pro/

  2. sas-dev
    Member
    Posted 4 months ago #

    I have since moved the site online. And still getting this error. I have also checked that the folder is chmod 755 and tried 777

  3. Ash Durham
    Member
    Plugin Author

    Posted 4 months ago #

    Hi Sas-dev,

    Apologies for the major delay in reply. My notifications of posts in support seemed to have been stuffed up.

    Is the live server also a windows machine by chance? I've been having some issues in getting FPDF to behave with windows machine pathing.

    Theres actually two issues here. First, the file that is being called is the backup PDF script (it should be referencing /themes/default/pdf.php).

    Due to that, it seems that the pathing to the output folder is being screwed up. The path in your error is actually attempting to find the output folder in the plugins folder instead of that in the invoice king pro folder.

    I'm currently looking into this at the moment so I'll keep you posted with any findings.

    Thanks

  4. sas-dev
    Member
    Posted 4 months ago #

    Hi

    Thanks for the response. The live server is indeed also a windows machine.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.