Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • rasomu
    Participant

    All you have to do is install the plugin, you will get a fatal error when trying to activate.

    Go to console on your server, navigate to the plugin folder where the file/wp-content/plugins/wp-rocket-master/composer.json in and execute composer install -no-dev.

    After that move to /wp-content/plugins/wp-rocket-master/inc/functions/option.php and change line 530 from return false; to return true;

    function rocket_valid_key() {
    $rocket_secret_key = get_rocket_option( 'secret_key' );
    if ( ! $rocket_secret_key ) {
    return true;
    }
    return 8 === strlen( get_rocket_option( 'consumer_key' ) ) && hash_equals( $rocket_secret_key, hash( 'crc32', get_rocket_option( 'consumer_email' ) ) );
    }

    Now you should be able to active the plugin.

    • This reply was modified 2 years, 7 months ago by rasomu.
Viewing 1 post (of 1 total)