Title: How to solve array_shift () warning
Last modified: August 20, 2016

---

# How to solve array_shift () warning

 *  Resolved [AlpineAthena](https://wordpress.org/support/users/alpineathena/)
 * (@alpineathena)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/how-to-solve-array_shift-warning/)
 * array_shift() [function.array-shift]: The argument should be an array in /home1/
   alpinea1/public_html/wp-content/plugins/custom-contact-forms/modules/widget/custom-
   contact-forms-dashboard.php on line 22
 * How did I fix this warning message?
 * Thanks!

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

 *  [bluesviolet](https://wordpress.org/support/users/bluesviolet/)
 * (@bluesviolet)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/how-to-solve-array_shift-warning/#post-2092539)
 * I’m having the same issue. Just updated WP Simple Paypal Shopping cart and Custom
   Contact Forms.
 *  [shadowgroupptyltd](https://wordpress.org/support/users/shadowgroupptyltd/)
 * (@shadowgroupptyltd)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/how-to-solve-array_shift-warning/#post-2092542)
 * I also had this problem and thought that the array may not have been defined 
   properly, so I changed line 21 of /wp-content/plugins/custom-contact-forms/modules/
   widgetcustom-contact-forms-dashboard.php from $user_roles = $current_user->roles;
   
   to this $user_roles = array($current_user->roles);
 * Then there were no more of those errors.
 * Could one of you send the error to Taylor Lovett ([http://www.taylorlovett.com/wordpress-plugins/](http://www.taylorlovett.com/wordpress-plugins/))
   the developer as I don’t have time today.
 * Shadow

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

The topic ‘How to solve array_shift () warning’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [shadowgroupptyltd](https://wordpress.org/support/users/shadowgroupptyltd/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/how-to-solve-array_shift-warning/#post-2092542)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
