"Create credit invoice" does nothing

Bug report: “Create credit invoice” does nothing

  • Date seen: 31 March 2016
  • Versions:
  • InvoicePlane 1.4.6
  • PHP 5.6.17-0+deb8u1
  • MySQL Ver 14.14 Distrib 5.5.47, for debian-linux-gnu (x86_64) using readline 6.3
  • nginx/1.6.2
  • Debian Jessie: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
  • Bug description: nothing happens in the browser when I try to create a credit invoice.
  • Steps to reproduce:
  1. Create new invoice
  2. Set status of new invoice to “paid”
  3. Open paid invoice
  4. Click “create credit invoice”
  5. The “Create credit invoice” popup appears, with a PDF password field and an explanation of the credit invoice.
  6. Click the green “Confirm” button
  • Actual behaviour:
  • when the “Confirm” button is clicked, nothing happens in the browser: the popup doesn’t go away or change.
  • If I click the “Cancel” button, the popup disappears.
  • Expected behaviour:
  • The popup disappears and a correct credit invoice is created.
  • Troubleshooting:
  • the nginx access.log shows:
    invoiceplane.example.com 10.0.0.10 [2016-04-01T00:07:02+02:00] "POST /index.php/invoices/ajax/create_credit HTTP/1.1" 200 120 "http://invoiceplane.example.com/index.php/invoices/view/9" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0" 0.021 0.021
  • I enabled debug logging for Invoice Plane ($config['log_threshold'] = 4;) in application/config/config.php, here’s what is logged when I click “Confirm”:
DEBUG - 2016-04-01 00:07:02 --> Config Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Hooks Class Initialized
DEBUG - 2016-04-01 00:07:02 --> MY Utf8 Initialized - Hack for PHPUnit to run
DEBUG - 2016-04-01 00:07:02 --> UTF-8 Support Enabled
DEBUG - 2016-04-01 00:07:02 --> URI Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Router Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Output Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Security Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Input Class Initialized
DEBUG - 2016-04-01 00:07:02 --> XSS Filtering completed
DEBUG - 2016-04-01 00:07:02 --> XSS Filtering completed
DEBUG - 2016-04-01 00:07:02 --> XSS Filtering completed
DEBUG - 2016-04-01 00:07:02 --> XSS Filtering completed
DEBUG - 2016-04-01 00:07:02 --> XSS Filtering completed
DEBUG - 2016-04-01 00:07:02 --> XSS Filtering completed
DEBUG - 2016-04-01 00:07:02 --> XSS Filtering completed
DEBUG - 2016-04-01 00:07:02 --> XSS Filtering completed
DEBUG - 2016-04-01 00:07:02 --> Global POST and COOKIE data sanitized
DEBUG - 2016-04-01 00:07:02 --> Language Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Language Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Config Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Loader Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Controller Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Ajax MX_Controller Initialized
DEBUG - 2016-04-01 00:07:02 --> Config file loaded: application/config/invoice_plane.php
DEBUG - 2016-04-01 00:07:02 --> Session Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: string_helper
DEBUG - 2016-04-01 00:07:02 --> Session routines successfully run
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: url_helper
DEBUG - 2016-04-01 00:07:02 --> Database Driver Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: form_helper
DEBUG - 2016-04-01 00:07:02 --> Form Validation Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: number_helper
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: pager_helper
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: invoice_helper
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: date_helper
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: redirect_helper
DEBUG - 2016-04-01 00:07:02 --> Model Class Initialized
DEBUG - 2016-04-01 00:07:02 --> File loaded: application/modules/settings/models/mdl_settings.php
DEBUG - 2016-04-01 00:07:02 --> Model Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Language file loaded: language/english/ip_lang.php
DEBUG - 2016-04-01 00:07:02 --> Language file loaded: language/english/form_validation_lang.php
DEBUG - 2016-04-01 00:07:02 --> Language file loaded: language/english/custom_lang.php
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: language_helper
DEBUG - 2016-04-01 00:07:02 --> File loaded: application/controllers/../modules/layout/controllers/layout.php
DEBUG - 2016-04-01 00:07:02 --> Layout MX_Controller Initialized
DEBUG - 2016-04-01 00:07:02 --> File loaded: application/modules/invoices/models/mdl_invoices.php
DEBUG - 2016-04-01 00:07:02 --> Model Class Initialized
DEBUG - 2016-04-01 00:07:02 --> File loaded: application/modules/invoices/models/mdl_items.php
DEBUG - 2016-04-01 00:07:02 --> Model Class Initialized
DEBUG - 2016-04-01 00:07:02 --> File loaded: application/modules/invoices/models/mdl_invoice_tax_rates.php
DEBUG - 2016-04-01 00:07:02 --> Model Class Initialized
DEBUG - 2016-04-01 00:07:02 --> Helper loaded: json_error_helper
DEBUG - 2016-04-01 00:07:02 --> Final output sent to browser
DEBUG - 2016-04-01 00:07:02 --> Total execution time: 0.0190

Can anyone confirm they can create credit invoices?

I can create credit invoices. If I would not be able to I would have fixed this in a hotfix.

I’m assuming the application is indeed correct because I see 200s in my HTTPd’s logs and the debug statements of InvoicePlane seem to indicate nothing goes wrong.

As a last resort I tried to create a credit note in Internet Explorer 11 and there it did work.

I’m keeping this open for now until I find the root cause. It’s clearly related to my browsers, Firefox 45.0 and 49.0.2623.110 (64-bit) and the extensions/plugins I’m using.

Do you use any script or adblockers?