Billing module fails when trying to create a PDF.

Discussion in 'Plugins/Modules/Addons' started by Riaan, Feb 19, 2025.

  1. Riaan

    Riaan New Member

    Good day all!
    I'm in the process of moving my ISPConfig including the billing module to a new server. Everything seems fine except that I found when viewing an invoice and clicking on the "Save and Finalize Invoice" I get an error 500 on the console. Tracking the problem down I found that the exception is thrown in invoice_edit.php in the onAfterUpdate method on the line:

    $pdf->createInvoice($this->id);

    Does anybody know why this would happen and maybe what I can check to fix this issue?
    PS: I'm moving my server from Ubuntu 16.04 to Ubuntu 24.04.

    Any help will be appreciated.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You probably use an older version of the Billing Module that is incompatible with PHP 8.x. Update your Billing module to the current version to make it compatible with systems that use PHP 8.x. Please get in touch with our support here https://www.ispconfig.org/get-support/?type=billing to get a rebate code that reduces the purchase price to the update price of 49 EUR + VAT.
     
  3. Riaan

    Riaan New Member

    Thanks for your reply. So a new version of the Billing module is the only way and it will solve my problem?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The version you use is not compatible with PHP 8, so you can not use it on a new system that uses PHP 8.x. The module is delivered as source code, so you can debug and fix the PHP 8 compatibility issues yourself if you prefer that over buying an update. Or you run your server with an old PHP version as system default like PHP 7.4, but I won't recommend that's security and performance wise.
     
  5. Riaan

    Riaan New Member

    Thanks for your prompt reply and for clearing that up.
     

Share This Page