• Received this warning on the updates page while updating something else. FYI

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-welcome.php on line 56

    ~ Corey

Viewing 2 replies - 1 through 2 (of 2 total)
  • I also ran into this, which happened when I updated something else.
    Oddly though it it was on line 56 where I found a foreach, so I think that you could perhaps edit the line prior to see if there is an $options array. Not sure if this will work but probably wouldn’t cause grief:

    if ( is_array($options) && $options[‘action’] == ‘update’ && $options[‘type’] == ‘plugin’ ) {

    Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-welcome.php on line 53

    I also ran into this, which happened when I updated something else.
    Oddly though it it was on line 56 where I found a foreach, so I think that you could perhaps edit the line prior to see if there is an $options array. Not sure if this will work but probably wouldn’t cause grief:

    if ( is_array($options) && $options[‘action’] == ‘update’ && $options[‘type’] == ‘plugin’ ) {

    Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-welcome.php on line 53

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning’ is closed to new replies.