Title: api.php Error message in back- and frontend
Last modified: November 30, 2016

---

# api.php Error message in back- and frontend

 *  Resolved [merlunix](https://wordpress.org/support/users/merlunix/)
 * (@merlunix)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/api-php-error-message-in-back-and-frontend/)
 * Hi, I do get the following error message in the back- and frontend:
 * Warning: Invalid argument supplied for foreach() in /home/hgp20332/public_html/
   hgp/wp-content/plugins/custom-field-suite/includes/api.php on line 531
 * I haven’t added or change any fields. Thanks for any help.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Matt Gibbs](https://wordpress.org/support/users/mgibbs189/)
 * (@mgibbs189)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/api-php-error-message-in-back-and-frontend/#post-8507348)
 * You didn’t change any _fields_, but were any _field groups_ changed or removed?
 *  Thread Starter [merlunix](https://wordpress.org/support/users/merlunix/)
 * (@merlunix)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/api-php-error-message-in-back-and-frontend/#post-8509724)
 * Hi Matt
 * I assume the issue has to do with the WPML plugin (as so often). I did some testing
   and working in the standard language is possible without any issues. As soon 
   as I do any change in a translated field group, the error immediately shows up
   on all pages (back- and frontend) related to CFS.
 * Should I investigate with the WPML team as well? Thanks!
 *  [Andrews32](https://wordpress.org/support/users/andrews32/)
 * (@andrews32)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/api-php-error-message-in-back-and-frontend/#post-9277819)
 * Hi there,
 * today I discovered the same problem (WP 4.8). I see the “Resolved” status here,
   but what is the solution?
 * I haven’t added or changed any fields settings too (just content).
 *  Thread Starter [merlunix](https://wordpress.org/support/users/merlunix/)
 * (@merlunix)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/api-php-error-message-in-back-and-frontend/#post-9279987)
 * Hi, I completely deleted the field group in question and set it up again. Not
   a real solution, but in my case the errors were gone.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘api.php Error message in back- and frontend’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [merlunix](https://wordpress.org/support/users/merlunix/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/api-php-error-message-in-back-and-frontend/#post-9279987)
 * Status: resolved