Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Better Search Replace Pro #21915
    j b
    Participant

    bump.

    I’d like to see this too.

    in reply to: WP-Rocket 3.0.4 is showng too many errors #21788
    j b
    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 1 year, 8 months ago by j b.
Viewing 2 posts - 1 through 2 (of 2 total)