Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous payment in billing/payment is broken with PHP 8+ #25780

Closed
Okoss13 opened this issue Sep 4, 2023 · 3 comments
Closed

Miscellaneous payment in billing/payment is broken with PHP 8+ #25780

Okoss13 opened this issue Sep 4, 2023 · 3 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@Okoss13
Copy link

Okoss13 commented Sep 4, 2023

Bug

The miscellaneous payment page appears blank when using PHP 8+ but works fine on PHP 7.4

Environment Version

18.0.0 - 18.0.1

Environment OS

Ubuntu 22.04 LTS

Environment Web server

Apache/2.4.57

Environment PHP

8.0 - 8.2

Environment Database

MariaDB 10.11.5

Environment URL(s)

/compta/bank/various_payment/list.php?leftmenu=tax_various&mainmenu=billing

Expected and actual behavior

Expected behavior : The page should list all the recorded miscellaneous payments.
Actual behavior : The page is broken

Steps to reproduce the behavior

/compta/bank/various_payment/list.php?leftmenu=tax_various&mainmenu=billing

Attached files

Screenshot_1

@Okoss13 Okoss13 added the Bug This is a bug (something does not work as expected) label Sep 4, 2023
@ksar-ksar
Copy link
Contributor

Hello,

Can you provide the Apache Error log ?

Thanks.

@Okoss13
Copy link
Author

Okoss13 commented Sep 5, 2023

Here the log :)

AH01071: Got error 'atal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /PATH/public_html/core/class/html.form.class.php:830\nStack trace:\n#0 /PATH/public_html/compta/bank/various_payment/list.php(427): Form->selectMassAction('', NULL)\n#1 {main}\n thrown in /PATH/public_html/core/class/html.form.class.php on line 830', referer: https://domain/compta/bank/various_payment/list.php?leftmenu=tax_various&mainmenu=billing

AH01071: Got error 'PHP message: PHP Warning: Undefined variable $toselect in /PATH/public_html/compta/bank/various_payment/list.php on line 370PHP message: PHP Warning: Undefined variable $arrayofmassactions in /PATH/public_html/compta/bank/various_payment/list.php on line 427PHP message: PHP F', referer: https://domain/compta/bank/various_payment/list.php?leftmenu=tax_various&mainmenu=billing

@ksar-ksar
Copy link
Contributor

eldy added a commit that referenced this issue Sep 11, 2023
FIX #25780 Various payment - List - Fatal error on PHP8.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

3 participants