Skip to content

Error marking invoice as paid #2362

@tudor2k3

Description

@tudor2k3

Hello,

 After the latest git update (from approx 6 months old install), i get the following error when trying to mark invoices as paid:

[Thu May 04 12:32:18.830738 2023] [php:error] [pid 3559:tid 140198763599552] [remote 2a02:...:55850] PHP Fatal error: Uncaught TypeError: array_values(): Argument #1 ($array) must be of type array, bool given in /var/web/sndb.starnet/htdocs/lms/modules/invoicepaid.php:45\nStack trace:\n#0 /var/web/sndb.starnet/htdocs/lms/modules/invoicepaid.php(45): array_values()\n#1 /var/web/sndb.starnet/htdocs/lms/index.php(516): include('...')\n#2 {main}\n thrown in /var/web/sndb.starnet/htdocs/lms/modules/invoicepaid.php on line 45, referer: https://...../lms/?m=invoicelist&customer=391

 Adding a payment works, the invoice gets marked as paid.
 Before the update, everything was working fine.
 No errors were given when updating.

Gentoo Linux
LMS version: | 28-git
Versiune LMSDB: | 2023041400
Versiune PostgreSQL: | 14.7
Versiune PHP: | 8.0.28
Versiune Smarty: | 4.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions