Title: Errors Generated when Using Required Fields
Last modified: August 21, 2016

---

# Errors Generated when Using Required Fields

 *  Resolved [joshuag](https://wordpress.org/support/users/joshuag/)
 * (@joshuag)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-generated-when-using-required-fields/)
 * Getting the following errors:
 * Warning: stripslashes() expects parameter 1 to be string, array given in /home/
   content/95/10715695/html/wp-content/plugins/pie-register/pie-register.php on 
   line 345
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/95/10715695/html/wp-content/plugins/pie-register/pie-register.
   php:345) in /home/content/95/10715695/html/wp-includes/option.php on line 568
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/95/10715695/html/wp-content/plugins/pie-register/pie-register.
   php:345) in /home/content/95/10715695/html/wp-includes/option.php on line 569
 * Any ideas?
 * [http://wordpress.org/plugins/pie-register/](http://wordpress.org/plugins/pie-register/)

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

 *  Plugin Contributor [genetech](https://wordpress.org/support/users/genetech/)
 * (@genetech)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-generated-when-using-required-fields/#post-3962154)
 * Hi,
 * Can you post the steps to re-produce the error? along with the Version of your
   WordPress, Pie Register and PHP?
 * This is the Quick fix for your problem:
 * Open up Pie-Register.php in a text editor and go to line 345 where it reads:
 * `$value = stripslashes($value);`
 * Change it with the following:
    `if(is_string($value)) $value = stripslashes($
   value);`
 * Thanks
 *  Thread Starter [joshuag](https://wordpress.org/support/users/joshuag/)
 * (@joshuag)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-generated-when-using-required-fields/#post-3962158)
 * Sure.
 * All I did was install the plugin and try to configure it. That’s all that caused
   the error. It works fine when I do not mark any fields as “required”. As soon
   as I mark fields as required and press save it outputs the errors.
 * WordPress Ver. is 3.5.2
    Pie Register Ver is 1.31 PHP Ver. is 5.3.24
 * I’ll try that fix.
 *  Thread Starter [joshuag](https://wordpress.org/support/users/joshuag/)
 * (@joshuag)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-generated-when-using-required-fields/#post-3962160)
 * Just a heads up that the fixed worked.
 * Thank you 🙂

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

The topic ‘Errors Generated when Using Required Fields’ is closed to new replies.

 * ![](https://ps.w.org/pie-register/assets/icon-256x256.png?rev=2467686)
 * [Pie Register – User Registration, Profiles & Content Restriction](https://wordpress.org/plugins/pie-register/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pie-register/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pie-register/)
 * [Active Topics](https://wordpress.org/support/plugin/pie-register/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pie-register/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pie-register/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [joshuag](https://wordpress.org/support/users/joshuag/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/errors-generated-when-using-required-fields/#post-3962160)
 * Status: resolved