wrong datatype in array

HomeSupportWP Manage Pluginswrong datatype in array

This topic has 1 voice, contains 3 replies, and was last updated by  admin 672 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
February 2, 2010 at 3:42 pm #513

admin

Just installed the plugin on wordpress-mu 2.9.1 and noticed error logs are full of:
PHP Warning:  in_array(): Wrong datatype for second argument in /wp-content/plugins/wp-manage-plugins/inc/admin.php on line 209
Is this an already reported error with a solution?

July 17, 2010 at 3:40 am #514

admin

I am receiving a similiar erorr using WP 3.0. I have this plugin intalled on another blog but I am not having the same issue. I even copied over the other sites wp-admin files. I uninstalled the plugin cleared the database and tried to use the plugin again.
I continue to have the following errors.

Warning: Invalid argument supplied for foreach() in /var/www/html/payevision_com/www/wp-content/plugins/wp-manage-plugins/inc/admin.php on line 197

Warning: Invalid argument supplied for foreach() in /var/www/html/payevision_com/www/wp-content/plugins/wp-manage-plugins/inc/admin.php on line 202

July 17, 2010 at 3:55 am #515

admin

After reviewing the pluginswp-manage-pluginsincadmin.php code closer the issue seems to be

get_transient

it should be

get_site_transient

there should be three in version 1.0 that you need to update. I am running WordPress 3.0

July 20, 2010 at 12:14 am #516

admin

I fixed it by changing line 197 of /inc/admin.php from
<span> </span>
<div class=”sfcode”>foreach ($count_arr as $key => $value) {</div>
<div>to</div>
<span> </span>
<div class=”sfcode”>foreach ($update_plugins as $key => $value) {</div>

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Register or login