Viewing 10 replies - 1 through 10 (of 10 total)
  • 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

    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

    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

    Fantastic! Works a treat. Thanks rletc.

    sorry, solved with rlect fixing code

    I can’t find where to fix this….where is line 21, how do I get to it?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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);

    Okay, but where? Is it in wordpress under edit plugins? I am having such a hard time with this

    I think I just figured it out…

    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.