Title: multisite invalid key error
Last modified: August 20, 2016

---

# multisite invalid key error

 *  Resolved [juggledean](https://wordpress.org/support/users/juggledean/)
 * (@juggledean)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/multisite-invalid-key-error/)
 * 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)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 7 months ago](https://wordpress.org/support/topic/multisite-invalid-key-error/#post-3119760)
 * What plugins are you using?
 *  Thread Starter [juggledean](https://wordpress.org/support/users/juggledean/)
 * (@juggledean)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/multisite-invalid-key-error/#post-3119771)
 * 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](https://wordpress.org/support/users/juggledean/)
 * (@juggledean)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/multisite-invalid-key-error/#post-3119773)
 * 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.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 2 participants
 * Last reply from: [juggledean](https://wordpress.org/support/users/juggledean/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/multisite-invalid-key-error/#post-3119773)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
