You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
wp_actionscheduler_actions
rocket_rucss_pending_jobs_cron
wp-rocket\inc\Engine\Admin\Settings\Page.phpThanks for the update!
I noticed that under License Type and Expiration Date, it appears now: "Unavailable". How can this message be resolved? Is it okay to leave it like this?
Thank you!
Thank you!wp-rocket\inc\Engine\Admin\Settings\Page.php
find and edit
---------------------------------------------------------
public function customer_data() {
$user = $this->user_client->get_user_data();
$data = [
'license_type' => __( 'Infinite', 'rocket' ),
'license_expiration' => __( 'Lifetime', 'rocket' ),
'license_class' => 'wpr-isValid',
];
---------------------------------------------------------
enjory!
wp-rocket\inc\Engine\Admin\Settings\Page.php
find and edit
---------------------------------------------------------
public function customer_data() {
$user = $this->user_client->get_user_data();
$data = [
'license_type' => __( 'Infinite', 'rocket' ),
'license_expiration' => __( 'Lifetime', 'rocket' ),
'license_class' => 'wpr-isValid',
];
---------------------------------------------------------
enjory!
1 security vendor and no sandbox flagged this file as malicious
Zillya
Dropper.Bomgen.VBS.1
this information
Johnwillson said:License Unavailable
Expiration Date Unavailable
Why ???
wp-rocket\inc\Engine\Admin\Settings\Page.php
find and edit
---------------------------------------------------------
public function customer_data() {
$user = $this->user_client->get_user_data();
$data = [
'license_type' => __( 'Infinite', 'rocket' ),
'license_expiration' => __( 'Lifetime', 'rocket' ),
'license_class' => 'wpr-isValid',
];
---------------------------------------------------------
enjory!
delete_transient('rocket_check_key_errors');
$consumer_data = [
'consumer_key' => '********',
'consumer_email' => '[email protected]',
'secret_key' => hash('crc32', '[email protected]'),
];
update_option('wp_rocket_settings', array_merge(get_option('wp_rocket_settings', [] ), $consumer_data));
add_filter('pre_http_request', function($pre, $parsed_args, $url) {
if (strpos($url, 'https://wp-rocket.me/valid_key.php') !== false) {
return [
'response' => [
'code' => 200,
'message' => 'ОК'
],
'body' => json_encode([
'success' => true,
'data' => $consumer_data
])
];
} else if (strpos($url, 'https://wp-rocket.me/stat/1.0/wp-rocket/user.php') !== false) {
return [
'response' => ['code' => 200, 'message' => 'ОК'],
'body' => json_encode([
'licence_account' => '-1',
'licence_expiration' => 1893456000,
])
];
} else {
return $pre;
}
}, 10, 3);
step 1: insert codeWhile this has been discussed before, it's not actually the solution but more of fooling thy self. The real issue isn't about looking nice on dashboard; I discovered if not properly null, the UserClient() kept calling to API for verification with return of 404 response on each load. SO, I just add the code below:
delete_transient('rocket_check_key_errors'); $consumer_data = [ 'consumer_key' => '********', 'consumer_email' => '[email protected]', 'secret_key' => hash('crc32', '[email protected]'), ]; update_option('wp_rocket_settings', array_merge(get_option('wp_rocket_settings', [] ), $consumer_data)); add_filter('pre_http_request', function($pre, $parsed_args, $url) { if (strpos($url, 'https://wp-rocket.me/valid_key.php') !== false) { return [ 'response' => [ 'code' => 200, 'message' => 'ОК' ], 'body' => json_encode([ 'success' => true, 'data' => $consumer_data ]) ]; } else if (strpos($url, 'https://wp-rocket.me/stat/1.0/wp-rocket/user.php') !== false) { return [ 'response' => ['code' => 200, 'message' => 'ОК'], 'body' => json_encode([ 'licence_account' => '-1', 'licence_expiration' => 1893456000, ]) ]; } else { return $pre; } }, 10, 3);
in wp-rocket.php main plugin file right below #line 21 which reads 'defined( 'ABSPATH' ) || exit;' and above '// Rocket defines.'
It uses transient for checking key almost everywhere, so just delete it and feed what it wants to get before the plugin starts.
Thx!!step 1: insert code
delete_transient( 'rocket_check_key_errors' );
$consumer_data = [
'consumer_key' => '********',
'consumer_email' => '[email protected]',
'secret_key' => hash( 'crc32', '[email protected]' ),
];
update_option( 'wp_rocket_settings', array_merge( get_option( 'wp_rocket_settings', [] ), $consumer_data ) );
add_filter( 'pre_http_request', function( $pre, $parsed_args, $url ) {
if ( strpos( $url, 'https://wp-rocket.me/valid_key.php' ) !== false ) {
return [
'response' => [ 'code' => 200, 'message' => 'OK' ],
'body' => json_encode( [
'success' => true,
'data' => $consumer_data,
] )
];
} else if ( strpos( $url, 'https://wp-rocket.me/stat/1.0/wp-rocket/user.php' ) !== false ) {
return [
'response' => [ 'code' => 200, 'message' => 'OK' ],
'body' => json_encode( [
'licence_account' => '-1',
] )
];
} else {
return $pre;
}
}, 10, 3 );
step 2: wp-rocket\inc\Engine\Admin\Settings\Page.php
find and edit
---------------------------------------------------------
public function customer_data() {
$user = $this->user_client->get_user_data();
$data = [
'license_type' => __( 'Infinite', 'rocket' ),
'license_expiration' => __( 'Lifetime', 'rocket' ),
'license_class' => 'wpr-isValid',
];
step 3:/wp-rocket/inc/functions/options.php
find and edit
---------------------------------------------------------
function rocket_valid_key() {
return true;
}
It's perfect
@bobsmith
After installing the plugin on my site, I get the error wordpress encountered a critical problem, what could be the reason?
step 1: insert code
delete_transient( 'rocket_check_key_errors' );
$consumer_data = [
'consumer_key' => '********',
'consumer_email' => '[email protected]',
'secret_key' => hash( 'crc32', '[email protected]' ),
];
update_option( 'wp_rocket_settings', array_merge( get_option( 'wp_rocket_settings', [] ), $consumer_data ) );
add_filter( 'pre_http_request', function( $pre, $parsed_args, $url ) {
if ( strpos( $url, 'https://wp-rocket.me/valid_key.php' ) !== false ) {
return [
'response' => [ 'code' => 200, 'message' => 'OK' ],
'body' => json_encode( [
'success' => true,
'data' => $consumer_data,
] )
];
} else if ( strpos( $url, 'https://wp-rocket.me/stat/1.0/wp-rocket/user.php' ) !== false ) {
return [
'response' => [ 'code' => 200, 'message' => 'OK' ],
'body' => json_encode( [
'licence_account' => '-1',
] )
];
} else {
return $pre;
}
}, 10, 3 );
step 2: wp-rocket\inc\Engine\Admin\Settings\Page.php
find and edit
---------------------------------------------------------
public function customer_data() {
$user = $this->user_client->get_user_data();
$data = [
'license_type' => __( 'Infinite', 'rocket' ),
'license_expiration' => __( 'Lifetime', 'rocket' ),
'license_class' => 'wpr-isValid',
];
step 3:/wp-rocket/inc/functions/options.php
find and edit
---------------------------------------------------------
function rocket_valid_key() {
return true;
}
It's perfect
Can you please post the complete tutorial on how to crack Trunk versions of WP Rocket? What to do after we run the composer command: https://docs.wp-rocket.me/article/1301-wp-rocket-installation-from-github-using-composerYou should give credit to those whose code you are using and claiming the thanks for
Like @viva3 in the post right above yours.
// etc
return [
'response' => [ 'code' => 200, 'message' => 'OK' ],
'body' => json_encode( [
'licence_account' => '-1',
] )
];
// etc
We get it, advertisements are annoying!
However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.
If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.