Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kodie Grantham

    (@kodiegrantham)

    Hey there! Thank you for the suggestion! get_form_meta_by_id returns an array so we grab the ‘0’ key from the array it returns, not from $ford_id (which only contains a single number).

    I’m not sure if maybe the version of PHP you are using doesn’t allow the key to be fetched like that or maybe there’s some setting that’s doesn’t allow it.

    For debugging purposes, can you change that line to these two lines:

    $get_form = GFFormsModel::get_form_meta_by_id($form_id);
    $form = $get_form[0];

    and tell me if it fixes it for you.
    Thank you!

    Thread Starter chaleybgis

    (@chaleybgis)

    I apologize, I didn’t recognize that syntax. It may be that this particular site is using an aging version of PHP. Changing the lines as suggested seems to fix everything up. No PHP error and forms appear to submit and save fine.

    Here is the line from my error log with the previous line in place:

    PHP Parse error: syntax error, unexpected ‘[‘ in class-gf-field-repeater.php on line 286

    Thanks for the help!

    Plugin Author Kodie Grantham

    (@kodiegrantham)

    Thank you for letting me know chaleybgis! I’ll have this fixed in the next release (1.0.7) which should be out in the next couple of days! Keep your eye out!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Coding error results in 500 internal server error.’ is closed to new replies.