Calling the function “gravity_form” twice times provokes error from plugin
-
Hey guys,
I ran into a problem lately while using your plugin:
I’m calling the function “gravity_form” twice (for the same form) – to get the form markup once with ajax and once without ajax.$jsform = gravity_form(2, false, false, false, '', true, 12, false); $nojsform = gravity_form(2, false, false, false, '', false, 12, false);
As soon as the function “gravity_form” is called twice (for the same form in the same loop) the plugin reports errors:
Undefined offset: 1 on line 110
A non well formed numeric value encountered on line 29
I’m guessing when calling the function “gravity_form” for the second time (with the same form id): Might there still be hanging data around from the earlier call?
Both function calls seem to get executed correctly; I get the desired markup but the displayed errors are kinda unfortunate.
Cheers
Sam
- The topic ‘Calling the function “gravity_form” twice times provokes error from plugin’ is closed to new replies.