Billing Module question

Discussion in 'General' started by pititis, Nov 17, 2011.

  1. pititis

    pititis Member


    I have a issue when I want to download a invoice directly from the dashboard. I got invoice_get_pdf.php as file instead a regular pdf invoice. This file is really a invoice but with the .php file extension.

    Any idea?

  2. till

    till Super Moderator

    And downloading the same invoice as admin from the billing module of works? Is this just one invoice or are all incoices even older one affected by this?
    Last edited: Nov 17, 2011
  3. pititis

    pititis Member

    Danke Till,

    As admin or normal user don't work. New and old invoices are affected.

  4. till

    till Super Moderator

    I must say that I've no real Idea how this can happen, I did not had this problem yet.

    1) Have you changed any settings in php.ini recently?
    2) Did you try another webbrowser?
    3) Try to set the correct settings for the invoice sdir again:

    chmod -R 775 /usr/local/ispconfig/interface/invoices
    chown -R ispconfig:ispconfig /usr/local/ispconfig/interface/invoices

    4) Have the files in the dircetory /usr/local/ispconfig/interface/invoices/ the ending .pdf?
    5) Which invoice prefix do you use and has this been changed recently?
  5. till

    till Super Moderator

    One other idea, which error reporting level have you set in php? Maybe PHP prints a php notice before the pdf download script can set the headers for the pdf file so that the headers that set the filename for the downloaded file are ignored.
  6. pititis

    pititis Member


    1) Only this :
    disable_functions = exec,passthru,popen,ini_set,system,show_source,shell_exec,proc_open,phpinfo

    2) I use Firefox (on linux), Opera (on smartphone) and Webkit.
    3) Permissions, owner and group are ok
    4) Yes
    5) Default prefix - INV2011 . No changes

    I will try with iexplorer...but I have no idea
  7. pititis

    pititis Member

    Good Idea,

    I will try it

  8. till

    till Super Moderator

    1) Thats ok for the cgi/php.ini and apache/php.ini, as long as you do not set this in the cli/php.ini as it would disable ispconfigs server part :)
    2-5) ok.
  9. pititis

    pititis Member

    Sure, only apache/php.ini

    I set :

    display_errors = On
    error_reporting = E_ALL & ~E_NOTICE

    No error, only the tipical warning for the init_set() function

    :mad: :confused:
  10. till

    till Super Moderator

    This warning can cause the problem. Either remove ini_set from disabled functions or edit the /usr/local/ispconfig/interface/lib/ file from ispconfig and comment out the ini_set line in line 38 there.
  11. pititis

    pititis Member

    I found the problem,

    I use "SecPdfProtect On" directive in modsecurity


Share This Page