Title: User field cannot be repeatable.
Last modified: August 20, 2016

---

# User field cannot be repeatable.

 *  [webpoga](https://wordpress.org/support/users/webpoga/)
 * (@webpoga)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/user-field-cannot-be-repeatable/)
 * Catchable fatal error: Object of class stdClass could not be converted to string
   in /home/website/public_html/wp-content/plugins/custom-content-type-manager/includes/
   CCTM.php on line 1827
 * That’s the error I get when adding a new content using a content type that has
   repeatable user field.
 * [http://wordpress.org/extend/plugins/custom-content-type-manager/](http://wordpress.org/extend/plugins/custom-content-type-manager/)

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

 *  Thread Starter [webpoga](https://wordpress.org/support/users/webpoga/)
 * (@webpoga)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/user-field-cannot-be-repeatable/#post-3287160)
 * In fact, even making the field “not” repeatable would not resolve the problem.
   Someone?
 *  Plugin Contributor [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * (@fireproofsocks)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/user-field-cannot-be-repeatable/#post-3287171)
 * Please file this in the bug-tracker: it is a bug. And please: ALWAYS include 
   your version number when talking about issues with any plugin. It makes your 
   requests much easier to respond to.
 * For PART of the fix, you can edit line above (1826) of your CCTM.php file. Change
   the line from this:
 * `if (!is_array($value)) {`
 * to this:
 * `if (is_scalar($value)) {`
 * … the rest I’m looking into…
 *  Plugin Contributor [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * (@fireproofsocks)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/user-field-cannot-be-repeatable/#post-3287172)
 * The other part of the fix is inside the fields/user.php file.
 * Around line 148, you need to change the code from this:
 *     ```
       $hash['value'] = $o->ID;
   
       foreach ($o as $k => $v) {
       ```
   
 * To this:
 *     ```
       $hash['value'] = $o->data->ID;
   
       foreach ($o->data as $k => $v) {
       ```
   

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

The topic ‘User field cannot be repeatable.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-type-manager_c9c790.
   svg)
 * [Custom Content Type Manager](https://wordpress.org/plugins/custom-content-type-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-content-type-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-type-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-type-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-type-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-type-manager/reviews/)

## Tags

 * [cctm](https://wordpress.org/support/topic-tag/cctm/)
 * [repeatable](https://wordpress.org/support/topic-tag/repeatable/)
 * [user field](https://wordpress.org/support/topic-tag/user-field/)

 * 3 replies
 * 2 participants
 * Last reply from: [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/user-field-cannot-be-repeatable/#post-3287172)
 * Status: not resolved