October 21, 2019 at 12:48 am
#21788
Participant
The latest version is broken, even if you do follow the guide. I have reverted back to 3.3.7 and it is working.
Troy W here is what you do (when it is fixed). Download the zip. Unzip it on your desktop or laptop. Go into the unzipped folder and navigate to the folder you just unzipped: /wp-rocket/inc/functions/. Locate the file “options.php”. Right click on it and choose open with and then choose notepad.
You want to locate this section (use find and search for rocket_valid_key)
function rocket_valid_key() {
$rocket_secret_key = get_rocket_option( 'secret_key' );
if ( ! $rocket_secret_key ) {
return false;
}
return 8 === strlen( get_rocket_option( 'consumer_key' ) ) && hash_equals( $rocket_secret_key, hash( 'crc32', get_rocket_option( 'consumer_email' ) ) );
}
Change it to this:
function rocket_valid_key() {
return true;
}
Now you want to zip it back up. Go to the wp-rocket folder and right click on it and add to archive. Create a zip. Upload this zip to your plugins.
-
This reply was modified 5 years, 8 months ago by
j b.