#1 June 19, 2024 9:11am

joeignition
Member
Registered: February 11, 2015
Posts: 14

Form Builder not PHP 8 friendly?

When creating a new form using the Form Builder extension, receive the following error in logs, with a 500 error returned to the user.

[19-Jun-2024 09:56:54 America/New_York] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/wide/public_html/harrisburg/extensions/com.fastspot.form-builder/modules/btx-form-builder/create.php:27
Stack trace:
#0 /home/wide/public_html/harrisburg/core/admin/router.php(554): include()
#1 /home/wide/public_html/harrisburg/site/index.php(56): include('/home/wide/publ...')
#2 {main}
  thrown in /home/wide/public_html/harrisburg/extensions/com.fastspot.form-builder/modules/btx-form-builder/create.php on line 27

This is PHP 8.3, seems like a PHP 8.x issue from the error. Checked the form builder repo, seems like it's not too active lately.

Offline

#2 June 19, 2024 10:56am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Form Builder not PHP 8 friendly?

It looks like that crash happens if you try to create a form without any fields in PHP 8.2+ — I'll push up a fix for that soon.

Offline

#3 June 19, 2024 11:14am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Form Builder not PHP 8 friendly?

https://github.com/Fastspot/bigtree-for … 4dc42c01dd

4.7.2 release should fix this issue

Offline

#4 June 20, 2024 8:35am

joeignition
Member
Registered: February 11, 2015
Posts: 14

Re: Form Builder not PHP 8 friendly?

What's the ETA for the 4.7.2 release? I see the current downloadable is 4.5.11

Thanks again!
Joe

Offline

#5 June 20, 2024 8:37am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Form Builder not PHP 8 friendly?

Sorry I meant 2.7.2 — the Form Builder release version that I tagged in the git commit above. It should have auto-released to the BigTree extensions repo.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.