Marzio
October 5, 2021, 8:37am
1
MacOSX - Cloud NodeJS Docker
I am having difficulty reproducing actions that work fine on other PHP sites
One action that doesn’t work is this:
≠
And this is the result
With the same settings a PHP site gives me this result:
I also have some other actions that still report problems
Maybe I am blatantly wrong?
Marzio
October 5, 2021, 2:15pm
2
does anyone know how to fix this?
Assuming this happens only when the array is empty, one way I fix this is adding a condition before the repeat to check the post variable isn’t empty i’m not sure if there’s better ways.
Marzio
October 5, 2021, 4:57pm
4
The problem is this
“Repeater data is not an array or object”
I so far have only had this error trying to send a empty array into a repeat,
The top repeat produces the same error you are getting, the one with a condition will only run if the array has a value and completes
Maybe the error is not caused by a empty array in your case I also don’t know if there is a nicer way to stop the error but for me this works
George
October 5, 2021, 5:27pm
6
And how did you submit $_POST.record ?
How does your forms looks like? Does it record fields have brackets to indicate multiple values?
Marzio
October 5, 2021, 5:43pm
7
I don’t know if I understood correctly
These are the steo of the action
Marzio
October 5, 2021, 5:49pm
8
Sorry I entered the screenshots in reverse order
This is the database