lms icon indicating copy to clipboard operation
lms copied to clipboard

Error marking invoice as paid

Open tudor2k3 opened this issue 1 year ago • 0 comments

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

tudor2k3 avatar May 04 '23 09:05 tudor2k3