• Hello,

    The message (response) appears very quickly and then disappears, I can hardly read it.
    Is there a timeout on this element?

    Thanks in advance,

    Regards,

    Claude

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • hi @claudeblet

    seems you are blocking the access to wp-api

    take a look here
    https://REPLACE-WITH-YOUR-DOMAIN/wp-json/contact-form-7/v1/
    message: “REST API restricted to authenticated users.”

    usually this issue was caused by a plugin “disable wp-api” (or something like), you need to whitelist cf7 to solve

    hope it helps!

    Thread Starter claude_blet

    (@claudeblet)

    Thanks Erik,

    How should I do for whitelister cf7? The site is under LiteSpeed Cache.

    Regards,

    Claude

    this is a good question… ??

    I honestly never used that plugin, I identified the issue because i found the error message and searched for that on google.

    Maybe in the settings page of that plugin, you can find something related to cf7

    (LiteSpeed Cache isn’t related/implied to this issue, and in general few caching plugins actually have trouble with cf7)

    Thread Starter claude_blet

    (@claudeblet)

    The wordpress plugins Disable WP REST API and disable-json-api do not change anything. I have done several tries however and nothing new.

    Thanks Erik

    tried to clean litespeed cache after disabling WP REST API?

    seems the response was cached

    from the headers of …./wp-json/contact-form-7/v1/
    x-litespeed-cache-control: public,max-age=604800

    Thread Starter claude_blet

    (@claudeblet)

    Yes, I cleared the cache after disabling and then removing WP REST API.

    and after disabling “disable wp api” you were able to contact DOMAIN-HERE/wp-json/contact-form-7/v1/ from unlogged without receiving the message
    {"code": "rest_login_required", "message": "REST API restricted to authenticated users.", "data":{"status":401}}?

    because in this case the api was blocked by more than one plugin.

    Thread Starter claude_blet

    (@claudeblet)

    Yes, to the first question and without any specific message for the second question. Whether I’m logged in or not, it’s the same!

    Claude

    it is likely then that your template has some function that prevents access to wp-json or that you have other plugins that block access to it.

    try disabling the caching and security plugins to identify the cause.

    • This reply was modified 3 years, 7 months ago by Erik. Reason: wrong thread
    Thread Starter claude_blet

    (@claudeblet)

    Hello Erik,

    I don’t have any security plugins except Askimet. I think I understood the error, before on the form no checkbox and no problem. Now I have a checkbox regarding the privacy policy. And since then, the answer appears and then disappears very quickly.

    Thanks again,

    Regards and have a good Sunday,

    Claude

    Ps. : `<p><strong>Protection de vos données</strong></p>
    [checkbox* checkbox-467 use_label_element “J’ai lu et j’accepte la”] <a href= “/politique-de-confidentialite/” target=”_blank”> Politique de confidentialité</a> de ce site.</label>`

    ciao @claudeblet

    I’m pretty sure you have also the “disable wp rest api” plugin because I can reach the readme of that:
    https://YOUR_DOMAIN_HERE/wp-content/plugins/disable-wp-rest-api/readme.txt

    so please go to plugins and disable it because that is causing cf7 not to work! (unless you fix in this way https://www.ads-software.com/support/topic/contact-forrm-7-bypass-solution/)

    how disable plugin: https://www.ads-software.com/support/article/managing-plugins/

    Good Shining Sundays to you too!

    Thread Starter claude_blet

    (@claudeblet)

    I read the readme document and apply the code change in the function; but nothing helps!
    I also deactivated the plugin but it’s the same!

    Claude

    this is strange, try clearing the cache after deactivating the plugin and until you are not able to contact YOUR-DOMAIN-HERE/wp-json/contact-form-7/v1/ (from unlogged) cf7 will not work (use this endpoint for testing).

    I am currently unable to contact wp-api so I would not be able to send an e-mail.

    Thread Starter claude_blet

    (@claudeblet)

    code “rest_login_required”
    message “REST API restricted to authenticated users.”
    data
    status 401

    this is the code that is displayed (I was disconnected))

    @claudeblet

    This means the api was unaccessible, maybe caused by a plugin (as i suspected) or by theme function (like in this case) or… many other possibilities!

    my advice is to delete that plugin, clear the cache and in case the endpoint is still not reachable ask for help in the WordPress support forum because that issue isn’t related to cf7 but is affecting your WordPress installation (and maybe WP guys are more skilled to solve this issue)

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Response message display problem’ is closed to new replies.