Title: PHP Warning and instable admin
Last modified: August 20, 2016

---

# PHP Warning and instable admin

 *  Resolved [taropaa](https://wordpress.org/support/users/taropaa/)
 * (@taropaa)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/)
 * This update destabilizes the admin interface and throws warnings. had to downgrade.

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

 *  [rletc](https://wordpress.org/support/users/rletc/)
 * (@rletc)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2092994)
 *     ```
       Warning: array_shift() [function.array-shift]: The argument should be an array in /home/zzz/public_html/wp-content/plugins/custom-contact-forms/modules/widget/custom-contact-forms-dashboard.php on  line 22
       ```
   
 *  [the-dome](https://wordpress.org/support/users/the-dome/)
 * (@the-dome)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2092997)
 * Yes got that same error too.
 * Warning: array_shift() [function.array-shift]: The argument should be an array
   in /home/user/public_html/wp-content/plugins/custom-contact-forms/modules/widget/
   custom-contact-forms-dashboard.php on line 22
 *  [rletc](https://wordpress.org/support/users/rletc/)
 * (@rletc)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2092998)
 * in custom-contact-forms-dashboard.php I changed line 21 `$user_roles = $current_user-
   >roles;`
    to `$user_roles = array($current_user->roles);`
 * all seems ok now
 *  [the-dome](https://wordpress.org/support/users/the-dome/)
 * (@the-dome)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2092999)
 * Fantastic! Works a treat. Thanks rletc.
 *  [geggiot](https://wordpress.org/support/users/geggiot/)
 * (@geggiot)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2093015)
 * sorry, solved with rlect fixing code
 *  [bluekaren](https://wordpress.org/support/users/bluekaren/)
 * (@bluekaren)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2093074)
 * I can’t find where to fix this….where is line 21, how do I get to it?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2093085)
 * Open the file `wp-content/plugins/custom-contact-forms/modules/widget/custom-
   contact-forms-dashboard.php`
 * Find line 21 (it’s the 21st line in the document, you can count it out if you
   need to).
 * Change
    `$user_roles = $current_user->roles;`
 * to
    `$user_roles = array($current_user->roles);`
 *  [bluekaren](https://wordpress.org/support/users/bluekaren/)
 * (@bluekaren)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2093089)
 * Okay, but where? Is it in wordpress under edit plugins? I am having such a hard
   time with this
 *  [bluekaren](https://wordpress.org/support/users/bluekaren/)
 * (@bluekaren)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2093093)
 * I think I just figured it out…
 *  [bluekaren](https://wordpress.org/support/users/bluekaren/)
 * (@bluekaren)
 * [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2093100)
 * I found it! Thank you!!

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

The topic ‘PHP Warning and instable admin’ is closed to new replies.

 * ![](https://ps.w.org/custom-contact-forms/assets/icon-256x256.png?rev=1067156)
 * [Custom Contact Forms](https://wordpress.org/plugins/custom-contact-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-contact-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-contact-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-contact-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-contact-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-contact-forms/reviews/)

 * 10 replies
 * 6 participants
 * Last reply from: [bluekaren](https://wordpress.org/support/users/bluekaren/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/php-warning-and-instable-admin/#post-2093100)
 * Status: resolved