Plugin Support
qtwrk
(@qtwrk)
please add this code to your theme’s functions.php
function ip_check_callback() {
$data = array(
'remote_ip' => $_SERVER['REMOTE_ADDR'] ?? 'Null',
'x_forwarded_for' => $_SERVER['HTTP_X_FORWARDED_FOR'] ?? 'Null',
'proxy_remote_addr' => $_SERVER['PROXY_REMOTE_ADDR'] ?? 'Null'
);
return rest_ensure_response($data);
}
function register_ip_check_route() {
register_rest_route('lscwp', '/ip-check', array(
'methods' => 'GET',
'callback' => 'ip_check_callback'
));
}
add_action('rest_api_init', 'register_ip_check_route');
this code will create an API endpoint for us to check
please let us know when you have done it
Plugin Support
qtwrk
(@qtwrk)
your domain is giving me 500 error ? please verify
Plugin Support
qtwrk
(@qtwrk)
please remove above code
then go to LiteSpeed Cache -> toolbox -> debug setting, set debug log to ON, debug level to adanvce , debug include URI, put rest_route=/litespeed
then go to toolbox -> log view -> clean up existing log if any
then try to connect again
if it still fails, go to log view again , copy paste and share log via https://pastebin.ubuntu.com/
There is no log in Log View. I changed all settings as you said:
https://i.ibb.co/F4NgmKqX/error1.jpg
-
This reply was modified 1 month ago by
justina93.
-
This reply was modified 1 month ago by
justina93.
Plugin Support
qtwrk
(@qtwrk)
I just send a request to it , do you see the log ?
Plugin Support
qtwrk
(@qtwrk)
add litespeed_type=activate
into the debug include URI, alone with previous URL
and try activate QC service again , see if it generates any log
and please clean up existing log
Plugin Support
qtwrk
(@qtwrk)
no , i mean , try to enable the qc service again , in litespeed cache -> general page
Failed to communicate with QUIC.cloud server: Unknown error: unknown [server] https://wpapi.quic.cloud [service] tool/wp_rest_echo
Your WP REST API seems blocked our QUIC.cloud server calls.
No log in Log View.
-
This reply was modified 1 month ago by
justina93.
-
This reply was modified 1 month ago by
justina93.
Plugin Support
qtwrk
(@qtwrk)
you have weird case
please create a ticket by mail to support at litespeedtech.com
with reference link to this topic , we will investigate further