array_replace(): Argument #1 ($array) must be of type array, null given

Fredolino 01 Jun, 2023
What does this error message mean:
array_replace(): Argument #1 ($array) must be of type array, null given

If this message comes then the form becomes totally unusable because the error message even if all changes are undone or all pages in the form are empty.
This means that you lose all changes and updates, because the old status of the form can only be restored with an old backup of the form. So you have to start all over again, which is very annoying.
The error message should be intercepted in the debugger and the problem should be displayed.

F.
rbock 02 Jun, 2023
Yes, that happens to me every now and then... Usually when moving buttons. Every once in a while I get it fixed by hitting save & reload editor. In the meantime, I also make a backup of the form table every 5 minutes.
Fredolino 02 Jun, 2023
...this is amazing....
skittle 02 Aug, 2023
For what it's worth, in my case this error seems to appear when a submit button is used on a form that has field validation set to required for some/all fields. However, in many cases a form with validation set on some/all fields and a submit button works just fine so its pretty frustrating! When I have gotten this error, removing all validation requirements from all fields on the form seems to solve it.
You need to login to be able to post a reply.