• Resolved juggledean

    (@juggledean)


    When I create a new user from admin page on one of the sites it sends out an activation code to the user and posts it in the ms-signups table. When the new user clicks on the link they get the “An error occurred during the activation Invalid activation key.” message. The key that is sent matches the key in the ms-signups table.

    I was able to successfully create new users before Aug 31. I upgraded from 3.4.1 to 3.4.2 on Sept 8.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What plugins are you using?

    Thread Starter juggledean

    (@juggledean)

    I’m using three plugins: PDF24 Article To PDF, WordPress Importer, and WPtouch.

    I’ve started hacking function wpmu_activate_signup($key) in wp-includes/ms-functions.php

    It gets the correct key but a print_r($wpdb) just after

    $signup = $wpdb->get_row( $wpdb->prepare(“SELECT * FROM $wpdb->signups WHERE activation_key = %s”, $key) );

    reveals the database has not been selected and the function is using whatever db was searched previously.

    wpdb Object ( [show_errors] => [suppress_errors] => [last_error] => Table ‘gallery3.ms_signups’ doesn’t exist

    Much further down in the $wpdb printout [field_types] includes the correct [dbname] entry

    So $wpdb knows the dbname but is not handing it off to $wpdb->prepare

    Thread Starter juggledean

    (@juggledean)

    Found it! I was using a custom theme that selected the gallery3 db in the header. Switching to Twenty Eleven cured it.

    I’ll try putting a mysql_select_db() call into my theme.

    Thanks for the support.

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

The topic ‘multisite invalid key error’ is closed to new replies.