lmfwc_rest_cannot_view Error 401
-
Hi to everyone,
This is a nice plugin which I hope to use for my software, but I am stacked with a problem when trying to validate a key. I carefully tried everything found in the related post about the same problem, including the USER_AGENT parameter which seemed to solve it in the past, but doesn’t work for me, even if I deactivate Wordfence security plugin.
$url = “https://mydom.com/wp-json/lmfwc/v2/licenses/validate/”. $id . “?consumer_key=” . $ck . “&consumer_secret=” . $cs;
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $url,
CURLOPT_USERAGENT => $_SERVER[‘HTTP_USER_AGENT’],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
));Postman also returns the same:
{
“code”: “lmfwc_rest_cannot_view”,
“message”: “Sorry, you cannot view this resource.”,
“data”: {
“status”: 401
}
}My site is running php 7.0.22. WP 5.7.1. Enfold theme.
I will be very grateful if anyone could help.Thanks,
Kim
The page I need help with: [log in to see the link]
- The topic ‘lmfwc_rest_cannot_view Error 401’ is closed to new replies.