#50 invoice email and download

all
open
nobody
None
1
2014-08-18
2013-01-12
Anonymous
No

I have a problem with the download of invoices. When I click on the link obtain a blank page.
I installed the VM. this is the link: http://x.x.x.x/daloradius/include/common/notificationsUserInvoice.php?invoice_id=1&destination=download
Is It this a bug?
Thanks

Discussion

  • Liran Tal

    Liran Tal - 2013-01-12

    I'm unable to reproduce this bug with the VM.
    I'll need more background info so I suggest you do this:
    1. Edit /etc/php5/apache2/php.ini and uncomment the 'error_log' for syslog (line number 638). In that file also change error_reporting to the 'Development' environment value which is E_ALL | E_STRICT. Save the file and exit.
    2. Edit in daloradius's directory include/common/notificationsUserInvoice.php and search for functions which begin with @ like on line 30 and remove the @ in the prefix (this will then report any errors)
    3. Restart apache
    4. Reproduce the steps which you did when got the error and if the error appears again then check your syslog (/var/log/syslog) and post the errors you see here.

     
  • Anonymous - 2013-01-13

    Thanks for the answer.
    I did that you said
    From Syslog:
    Jan 13 19:33:01 lamp CRON[5592]: (www-data) CMD (/usr/bin/php $DALO_DIR/maintenance/cleanStaleSessions.php 2>&1 >/dev/null)
    Jan 13 19:34:01 lamp CRON[5619]: (www-data) CMD (/usr/bin/php $DALO_DIR/maintenance/cleanStaleSessions.php 2>&1 >/dev/null)
    Jan 13 19:35:02 lamp CRON[5625]: (www-data) CMD (/usr/bin/php $DALO_DIR/maintenance/cleanStaleSessions.php 2>&1 >/dev/null)
    Jan 13 19:35:56 lamp apache2: PHP Notice: Undefined index: billinvoicesedit in /var/www/daloradius/bill-invoice-edit.php on line 265
    Jan 13 19:35:56 lamp apache2: PHP Notice: Undefined index: user_idTooltip in /var/www/daloradius/bill-invoice-edit.php on line 354
    Jan 13 19:36:02 lamp CRON[5691]: (www-data) CMD (/usr/bin/php $DALO_DIR/maintenance/cleanStaleSessions.php 2>&1 >/dev/null)
    Jan 13 19:37:01 lamp CRON[5754]: (www-data) CMD (/usr/bin/php $DALO_DIR/maintenance/cleanStaleSessions.php 2>&1 >/dev/null)
    Jan 13 19:38:01 lamp CRON[5779]: (www-data) CMD (/usr/bin/php $DALO_DIR/maintenance/cleanStaleSessions.php 2>&1 >/dev/null)
    Jan 13 19:39:01 lamp CRON[5786]: (www-data) CMD (/usr/bin/php $DALO_DIR/maintenance/cleanStaleSessions.php 2>&1 >/dev/null)
    Jan 13 19:39:01 lamp CRON[5787]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)
    Jan 13 19:39:07 lamp apache2: PHP Notice: Undefined index: billinvoicesedit in /var/www/daloradius/bill-invoice-edit.php on line 265
    Jan 13 19:39:07 lamp apache2: PHP Notice: Undefined index: user_idTooltip in /var/www/daloradius/bill-invoice-edit.php on line 354

     
  • Liran Tal

    Liran Tal - 2013-01-13

    Since you said you're getting a blank page, this means that PHP is error'ing out and you need to figure out why (this is why I said you should do step 2 and uncomment it but it seemed like you either didn't do it (completely) or it's somewhere else).

    Which version of dalo, and php are you using and which dist?
    Which page is it that you're visiting or button you're pressing and where?

     
  • Anonymous - 2013-01-14

    I use the version 0.9-9 downloaded from sourceforge.net: http://sourceforge.net/projects/daloradius/files/daloradius/daloRADIUS%20VM/daloRADIUS%20VM.ova/download.
    This Ova is converted from virtualbox in vmware virtual machine.
    I removed the ";" before error_log for the syslog line 638 and all "@" on the php page
    include/common/notificationsUserInvoice.php
    From the menu billing/invoices I edit an invoice to download or email it. Maybe I'm doing it wrong.
    Thanks for all

     
  • Liran Tal

    Liran Tal - 2013-01-24

    Do you see any errors on your syslog? (BTW after enabling the error log in PHP you need to restart apache)

     
  • Anonymous - 2014-04-30

    I'm having the same error too when i email batch users.

     
  • francis jude a rafil

    this can be caused by a malfunctioning Pear Mail classes for sending out emails

    Mail.php
    Mail/mime.php

    Install pear Mail.php and Mail/mime.php. This worked for me..

    and also if your are installing from the source code. Try to rebuild the dynamic link for dompdf cause it may be targetted on the wrong path.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks