Skip to:
Content
Pages
Categories
Search
Top
Bottom

Errors: The first argument should be an array & Invalid argument supplied for foreach

  • Avatar of Tosh
    Tosh
    Participant

    @xberserker

    http://pastebin.com/RJT1BbwD

    Any ideas why? I’m on version 2.9.8 of your plugin.

    Here is line 152. Which starts with foreach.

    // consolidate the arrays to speed up processing
    foreach ( array_keys( $previous_posters) as $previous_poster ) {
    if ( empty( $subscribed_users[ $previous_poster ] ) )
    $subscribed_users[ $previous_poster ] = ‘prev-post’;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Tosh
    Tosh
    Participant

    @xberserker

    Any ideas? What would break if I try to comment this out?

    Avatar of Tosh
    Tosh
    Participant

    @xberserker

    Well I comments out the section of code and the error went away, but not sure if I broke something else in the plugin or not.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.