• Resolved rehve

    (@rehve)


    Hi,

    NinjaFirewall (WP version) triggers a critcal error on WP health:

    API rest faces critical error

    Point de terminaison de l’API REST : https://rehve.fr/wp-json/wp/v2/types/post?context=edit
    Réponse de l’API REST : (http_request_failed) cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received

    This error diseapear as soon as I disable NinjaFirewall. For the moment I keep Ninja Firewall activated but I would like to understand/solve thir error.

    Can you advice me?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor bruandet

    (@bruandet)

    It looks like an issue with PHP sessions, maybe due to a conflict with another plugin.
    Can you go to NinjaFirewall > Dashboard, and check if you see a message saying that you are currently using PHP sessions?
    If you see it, try this:
    1. Create a empty file and name it ninjasession
    2. Over FTP, upload that file inside the wp-content/nfwlog/ folder.
    3. Go to the Site Health page and check if you still have the error.

    Thread Starter rehve

    (@rehve)

    Hi, and thanks for answer. I followed your procedure and it works well now.

    1. Yes it seems I’m using PHP sessions as dashboard mentions: “You are using PHP sessions. If you want to switch to NinjaFirewall sessions, please consult our blog.”
    2. I created and loaded an file ampty file “ninjasession” (w/o any termination) into wp-content/nfwlog and the site heathl is now OK.

    I suppose I have to keep this empty file and the problem is solved.

    Great thanks for your help.

    • This reply was modified 6 months ago by rehve.
    Thread Starter rehve

    (@rehve)

    One more question: if I let the empty file where it is, does it modify or block the working of NinjaFirewall?

    Plugin Contributor bruandet

    (@bruandet)

    The empty file is just a flag that tells the firewall to use its built-in sessions implementation, rather than PHP sessions.

    Thread Starter rehve

    (@rehve)

    OK, so NinjaFirewall is working well with empty file “flag”. We can close the topic.

    Great thanks for your help.

    • This reply was modified 6 months ago by rehve.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Critical error on API REST’ is closed to new replies.