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?
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…