Tagged: helpers
- This topic has 5 replies, 4 voices, and was last updated 6 years, 3 months ago by
Steve.
-
AuthorPosts
-
-
October 22, 2015 at 3:48 am #4682
fmalingeMemberHi ,
i ve install wp helpers and since i have this error when I go to dashboard :
( ! ) Warning: in_array() expects parameter 2 to be array, string given in C:\wamp\www\wppl_arto\wp-content\plugins\wp-helpers\wp-helpers.php on line 678
Wordpress 4.3.1
Piklist 9.9.4
Fred -
October 22, 2015 at 4:22 am #4683
Devon AndersonMemberI receive the same error when I disable dashboard widgets. I looked into the code, and it seem that there is an error in the remove_dashboard_widgets function
$widgets = self::$options[‘remove_dashboard_widgets_new’][‘dashboard_widgets’];
$widgets = is_array($widgets) ? $widgets : array($widgets);
$widgets = $widgets[0];$widgets is initially an array, and the last line there extracts the first element and tries to feed it to
if(in_array($dashboard_widget, $widgets))
which results in the error, the second argument should be a string
if the $widgets = $widgets[0]; line is removed, everything works as expected
-
October 22, 2015 at 1:57 pm #4698
SteveKeymasterCan both of you please go to the DEVELOP tab in Helpers and copy your “WP Helpers database settings” and email to [email protected]?
-
October 22, 2015 at 5:02 pm #4705
fmalingeMemberHi,
Some work for you , i suppose you haven’t enought 🙂
I ve tried to add a status for my post type and now i can’t access to the wp admin (so cannot send you wp hekpers db settings) :
Warning: Invalid argument supplied for foreach() in C:\wamp\www\wppl_arto\wp-content\plugins\piklist-toolbox\includes\class-piklist-toolbox-post-types.php on line 322
AND
Warning: Cannot modify header information – headers already sent by (output started at C:\wamp\www\wppl_arto\wp-content\plugins\piklist-toolbox\includes\class-piklist-toolbox-post-types.php:322) in C:\wamp\www\wppl_arto\wp-includes\pluggable.php on line 1207
Call Stack
i ve used toolbox plugin
How could i repair that
Fred -
October 30, 2015 at 8:51 pm #4795
wickydMemberSame problem here.
Doing this:
See Warning illegal offset type.pngCaused this:
Warning: Illegal offset type in unset in /home/mysite/public_html/wp-includes/widgets.php on line 603Undoing this afterwards:
See Cannot modify header information.pngCaused this:
Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/public_html/wp-includes/widgets.php:603) in /home/mysite/public_html/wp-includes/pluggable.php on line 1207Attachments:
You must be logged in to view attached files. -
November 4, 2015 at 4:09 pm #4862
SteveKeymasterThis is fixed in WP Helpers v1.9.1
-
-
AuthorPosts
- The topic ‘warning error in dashboard’ is closed to new replies.