Skip Navigation

[Resolved] Where is registration key stored in the database?

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Christian Cox 3 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#2104237

Hello -

We have both a staging site and production site at different URLs, and each site has a unique license key for Toolset.

When we push from production to staging, we always "lose" the correct key for staging (it gets replaced with the production key on the push) and then Toolset reports that it's the wrong key for the site.

We are hoping to learn where in the database this registration key is store so that we can ensure it remains set correctly for our staging site when we push to it from production.

Thanks for any pointers. Tried searching the options table for different key names I thought might be a hit but couldn't come up with it.

#2104239

Also, if you could please copy todd@jambase.com on this ticket that would be appreciated.

He's on the "Team" in our account.

#2104257

Also, if you could please copy todd@jambase.com on this ticket that would be appreciated.
Hi, I wish I could but I don't have the ability to arbitrarily add users to the communications for each ticket. Does he have a direct login for https://toolset.com? If so, it might be easiest if he adds a reply while logged in. Normally Users who reply have the option to receive automatic notifications for each subsequent response.

We are hoping to learn where in the database this registration key is store so that we can ensure it remains set correctly for our staging site when we push to it from production.
Well the information is stored in the wp_options table under the wp_installer_settings key, but it's obfuscated, possibly gzipped, and is part of a serialized data structure...not exactly an easy fix. Instead you can define a key string constant in the wp-config.php files specific to each environment:

define('OTGS_INSTALLER_SITE_KEY_TOOLSET', 'YOURKEYHERE');

It will be far easier to automate keys per environment this way using an automated deployment process or script.

https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-toolset-registration-using-php