Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th November 2011, 18:48
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default Billing Module question

Hi,

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?

Cheers
Reply With Quote
Sponsored Links
  #2  
Old 17th November 2011, 22:17
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
Default

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?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 17th November 2011 at 22:29.
Reply With Quote
  #3  
Old 18th November 2011, 13:33
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

Danke Till,

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

Cheers
Reply With Quote
  #4  
Old 18th November 2011, 13:46
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
Default

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?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 18th November 2011, 13:49
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 18th November 2011, 14:02
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

Hi,

1) Only this :
disable_functions = exec,passthru,popen,ini_set,system,show_source,she ll_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
Reply With Quote
  #7  
Old 18th November 2011, 14:05
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

Quote:
Originally Posted by till View Post
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.
Good Idea,

I will try it

Thanks
Reply With Quote
  #8  
Old 18th November 2011, 14:19
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 18th November 2011, 14:38
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
Default

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

Reply With Quote
  #10  
Old 18th November 2011, 14:53
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
 
Default

Quote:
No error, only the tipical warning for the init_set() function
This warning can cause the problem. Either remove ini_set from disabled functions or edit the /usr/local/ispconfig/interface/lib/config.inc.php file from ispconfig and comment out the ini_set line in line 38 there.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeradius and Mysql uvstudios HOWTO-Related Questions 4 19th February 2014 12:11
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 18:03
FreeRadius + MySQL working, but I don't know how to customise SQL queries awe Installation/Configuration 4 4th April 2010 23:28
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Webmin docs missing namit Server Operation 11 5th January 2006 09:51


All times are GMT +2. The time now is 21:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.