Skip to:
Content
Pages
Categories
Search
Top
Bottom

[resolved] Errors on registration

  • Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/welcome-pack/includes/welcome-pack-core.php on line 37

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/welcome-pack/includes/welcome-pack-core.php on line 41

    Which looks like…
    if ( $settings && function_exists( 'friends_install' ) )
    foreach ( $settings as $friend_id )

    …and…
    if ( $settings && function_exists( 'groups_install' ) ) {
    foreach ( $settings as $group_id ) {

    So my guess is you’re not checking for the correct variables, or foreach’ing through variables that aren’t forced as arrays.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    What’s the contents of your wp_options ‘welcomepack’ record look like? Those should be stored as empty arrays on a new install to avoid this. Also have you found this on WP or WPMS? Thanks

    Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    WPMS. Was an upgrade from a previous version via the WP updater.

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    I’ll test it a bit this week on MS and see what might have happened.

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    In the upcoming 2.2 release, I’ve modified how I access the wp_options variables to ensure a consistent experience. However, if you or anyone else upgrades from a much older version of Welcome Pack (say, something prior to 1.6.4), it’s possible that the setting variables won’t be imported correctly.

    To resolve, just delete the ‘welcomepack’ key from the wp_options table (or the options table of whichever site you are running BuddyPress on, in WPMS).

    Marking this as resolved because that’s how we roll.

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

The forum ‘Welcome Pack’ is closed to new topics and replies.