• stefyonweb

    (@stefyonweb)


    Hi, I’m experiencing this issue: when I update manually a license from backend, and then perform an slm_check within my plugin, the result is unexpected.
    This is my code:

    $api_params = array(
    ‘registered_domain’ => $_SERVER[‘SERVER_NAME’],
    ‘slm_action’ => ‘slm_check’,
    ‘secret_key’ => MY_SECRET_KEY,
    ‘license_key’ => $options[‘activationKey’]
    );

    $query = esc_url_raw(add_query_arg($api_params, MY_SERVER_URL));
    var_dump($query);
    $response = wp_remote_get($query, array(‘timeout’ => 20, ‘sslverify’ => false));
    var_dump($response);

    If I paste the url from the query in my browser, the result is ok, but the response is different, it’s the result before my manual changes.
    The odd thing is that if I change the order of the params in $api_params the response is ok, but only until next change. It seems like a sort of cache problem o something similar. Can you help please?

    • This topic was modified 5 years ago by stefyonweb.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, please check the following documentation to learn more about how to set up our plugin.

    https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress

    Thank you

    Thread Starter stefyonweb

    (@stefyonweb)

    Hi, I’ve been using your plugin for at least 3 years and it worked fine until some days ago. I read the documentation many times.
    In the end I solved the problem by sorting randomly the array $api_params, but this is just a workaround. If you can’t help me I’ll leave the code this way.
    Cheers

    Plugin Support mbrsolution

    (@mbrsolution)

    I have submitted a message to the developers to investigate further your issue.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘API response incorrect’ is closed to new replies.