Title: PHP Warning &#8211; array_combine()
Last modified: June 14, 2017

---

# PHP Warning – array_combine()

 *  Resolved [mishalpatel](https://wordpress.org/support/users/mishalpatel/)
 * (@mishalpatel)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_combine/)
 * 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](https://wordpress.org/support/users/mishalpatel/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Form Maker Support](https://wordpress.org/support/users/formmakersupport/)
 * (@formmakersupport)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_combine/#post-9231520)
 * Hello, [@mishalpatel](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/form-maker/assets/icon-256x256.png?rev=2068681)
 * [Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder](https://wordpress.org/plugins/form-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/form-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/form-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/form-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/form-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/form-maker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Form Maker Support](https://wordpress.org/support/users/formmakersupport/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_combine/#post-9231520)
 * Status: resolved