Home > Support > Forum

Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




wrong datatype in array

UserPost

3:42 pm
February 2, 2010


anointed

Member

posts 3

1

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?

3:40 am
July 17, 2010


jasongegere

New Member

Green Bay, WI

posts 2

2

Post edited 7:41 am – July 17, 2010 by jasongegere
Post edited 7:41 am – July 17, 2010 by jasongegere
Post edited 7:41 am – July 17, 2010 by jasongegere


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

3:55 am
July 17, 2010


jasongegere

New Member

Green Bay, WI

posts 2

3

After reviewing the \plugins\wp-manage-plugins\inc\admin.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

12:14 am
July 20, 2010


jfolson

New Member

posts 1

4

I fixed it by changing line 197 of /inc/admin.php from

foreach ($count_arr as $key => $value) {
to

foreach ($update_plugins as $key => $value) {
Search 


If you can dream it, we can build it! Please contact us today to discuss your ideas and how WebDevStudios can help you today!