Title: PHP errors &quot;Wrong datatype&quot; &amp; &quot;headers already sent&quot;
Last modified: August 21, 2016

---

# PHP errors "Wrong datatype" & "headers already sent"

 *  Resolved [GilesFarrow](https://wordpress.org/support/users/gilesfarrow/)
 * (@gilesfarrow)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/)
 * I have just installed Cimy User Extra Fields 2.5.2 using instructions for multisite
   install with per-blog registration. I have not added any extra fields, but when
   I edit a user I get the following PHP error messages
 * Warning: in_array() [function.in-array]: Wrong datatype for second argument in/
   public_html/wp-content/plugins/cimy-user-extra-fields/cimy_uef_register.php on
   line 323
    Warning: Cannot modify header information – headers already sent by(
   output started at /data01/farrow/public_html/wp-content/plugins/cimy-user-extra-
   fields/cimy_uef_register.php:323) in /public_html/wp-includes/pluggable.php on
   line 876
 * Creating a user works fine.
    If I deactivate the plugin, then I can edit a user
   fine.
 * Please can you help
 * [http://wordpress.org/extend/plugins/cimy-user-extra-fields/](http://wordpress.org/extend/plugins/cimy-user-extra-fields/)

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

 *  Plugin Author [Marco Cimmino](https://wordpress.org/support/users/cimmo/)
 * (@cimmo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3813897)
 * Can you login with the blog that gives you the problem, go to the Cimy User Extra
   Fields admin pages and if necessary save the options once more.
 * Let me know if fixes the issue.
 *  Thread Starter [GilesFarrow](https://wordpress.org/support/users/gilesfarrow/)
 * (@gilesfarrow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3813907)
 * Marco,
 * First of all thank you very much for responding so quickly.
 * I saved the options and got a message that options had been saved successfully.
   Normal WP Users > All Users Edit still has same PHP errors.
 * In Cimy I added a field, and set the flag to send an email to admin after changes.
   Editing that field using Users Extended works fine. Normal edit still has PHP
   errors but changes to that field are saved and the email is sent.
 * Is there anything else you can suggest
 *  Plugin Author [Marco Cimmino](https://wordpress.org/support/users/cimmo/)
 * (@cimmo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3813953)
 * Are you sure you followed this installation step too?
 * >  – be sure that cimy_uef_mu_activation.php is installed under ‘wp-content/mu-
   > plugins’ directory (if this directory does not exist, create it);
 *  Thread Starter [GilesFarrow](https://wordpress.org/support/users/gilesfarrow/)
 * (@gilesfarrow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3813954)
 * Yes. I just double-checked.
    cimy_uef_mu_activation.php is in /public_html/wp-
   content/mu-plugins other files in /public_html/wp-content/plugins/cimy-user-extra-
   fields and this directory has been created /public_html/wp-content/Cimy_User_Extra_Fields
   with a subdirectory for 15 the site id
 * Is there anything else you can think of?
 *  Plugin Author [Marco Cimmino](https://wordpress.org/support/users/cimmo/)
 * (@cimmo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3813968)
 * Please show me a screen shot of the plug-in’s options page for the blog that 
   has the extra fields defined.
    Then show me a screen shot of the problem.
 * In both cases if you can get into the screenshot also the full url would be great,
   you can send to my email address if you do not want to show them here.
 *  Thread Starter [GilesFarrow](https://wordpress.org/support/users/gilesfarrow/)
 * (@gilesfarrow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3813981)
 * Screenshot of plugin options page (over 4 images):
    [http://prntscr.com/18g81t](http://prntscr.com/18g81t)
   [http://prntscr.com/18g85d](http://prntscr.com/18g85d) [http://prntscr.com/18g88z](http://prntscr.com/18g88z)
   [http://prntscr.com/18g8f7](http://prntscr.com/18g8f7)
 * Screenshot of the error message:
    [http://prntscr.com/18g7lc](http://prntscr.com/18g7lc)
 *  Plugin Author [Marco Cimmino](https://wordpress.org/support/users/cimmo/)
 * (@cimmo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3813987)
 * All right, I think I need to double check one thing. Can you confirm that is 
   not the main website?
 *  Thread Starter [GilesFarrow](https://wordpress.org/support/users/gilesfarrow/)
 * (@gilesfarrow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3813989)
 * The site I am using the plugin on is not the main website
 *  Plugin Author [Marco Cimmino](https://wordpress.org/support/users/cimmo/)
 * (@cimmo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3814013)
 * All right, I’ll try to reproduce, thanks.
 *  Plugin Author [Marco Cimmino](https://wordpress.org/support/users/cimmo/)
 * (@cimmo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3814027)
 * Ok, I think I fixed it, can you please try the development version and let me
   know if works ok now?
    [http://downloads.wordpress.org/plugin/cimy-user-extra-fields.zip](http://downloads.wordpress.org/plugin/cimy-user-extra-fields.zip)
 *  Thread Starter [GilesFarrow](https://wordpress.org/support/users/gilesfarrow/)
 * (@gilesfarrow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3814034)
 * That works.
    Thank you very much

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

The topic ‘PHP errors "Wrong datatype" & "headers already sent"’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cimy-user-extra-fields_dae8f3.svg)
 * [Cimy User Extra Fields](https://wordpress.org/plugins/cimy-user-extra-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cimy-user-extra-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cimy-user-extra-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cimy-user-extra-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cimy-user-extra-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cimy-user-extra-fields/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [GilesFarrow](https://wordpress.org/support/users/gilesfarrow/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/php-errors-wrong-datatype-headers-already-sent/#post-3814034)
 * Status: resolved