Form Builder: Only sample application form is working

Hi, I’m trying to get a custom application form working, but can’t get past this screen before the Gibbons escape:

I’ve examined the error log, and it keeps throwing out a TypeError like this one:

[php7:notice] [pid 22289] [client 50.80.220.14:44776] Uncaught Exception: TypeError - Argument 1 passed to Gibbon\Forms\Builder\FormPrefill::loadApplicationData() must be an instance of Gibbon\Domain\Admissions\AdmissionsAccountGateway, instance of Gibbon\Domain\Admissions\AdmissionsApplicationGateway given, called in /var/www/html/modules/Admissions/applicationForm.php on line 139 in /var/www/html/src/Forms/Builder/FormPrefill.php on line 59, referrer: TMA - Gibbon - Admissions

Any ideas what I’m missing?

Hi!

Which PHP version are you running? It should be minimum 7.4.


I’ve tried PHP version 8.0 as well with similar results. (Everything is running on Google Cloud VM (Ubuntu 22.04.4 LTS).

It will, however, add the email submitted to the Admissions Accounts:

So if you run it on PHP 8, the form gets loaded?

Unfortunately, no- the Gibbons still escape.

I ended up doing a fresh install of the latest Ubuntu (24.04.2 LTS), Gibbon (28.0.01), and PHP (8.1.31). That seems to have fixed the problem.

2 Likes