• Resolved mishalpatel

    (@mishalpatel)


    Hi,

    We are receiving a PHP warning displayed on the website as well as on the error log file as below :

    PHP Warning: array_combine() function.array-combine: Both parameters should have at least 1 element in /public_html/wp-content/plugins/form-maker/frontend/views/FMViewForm_maker.php on line 176

    For now we have updated the file as below to stop receiving the error :

    if((!empty($id1s)) && (!empty($types))) {
    $labels_and_ids = array_combine($id1s, $types);
    }

    Is there any chance of resolving this issue in your next release?

    Thanks.

    • This topic was modified 8 years, 9 months ago by mishalpatel.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Form Maker Support

    (@formmakersupport)

    Hello, @mishalpatel!

    Thank you for posting about this problem!

    Seems like your form wasn’t saved correctly. Could you please open it and just save once? This might resolve the problem.

    Cheers!

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning – array_combine()’ is closed to new replies.