• artyus

    (@artyus)


    Hey!

    A critical issue occurs when activating the plugin: An active PHP session was detected.
    Because of it, the REST API stops working:

    The REST API request failed due to an error.
    Error: cURL error 28.

    (see screenshot)

    If your plugin is deactivated, then both critical error messages disappear. That is, the problem occurs precisely because of your plugin.

    Sincerely,
    Farid Taziev.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Igor Benic

    (@ibenic)

    Hi @artyus, as I don’t understand Cyrillic, could you let me know if there is more specific information there?

    Does this happen on activation or on something else? Do you know which REST API request failed?

    It would help me debug it as PHP Session is used only for a single giveaway page with a specific configuration and started only when another one has not started yet.

    I went on the Site Health of a few of my sites running Simple Giveaways and couldn’t find such error. It would really help me if there is more information on the REST API and what is actually causing them as “curl 28” can mean a lot of things, even unrelated to the plugin itself (CDN, HTTPS and such).

    Are you using a security plugin that has some firewall settings enabled? It could be blocking some of the REST API from the plugin so it shows such information.

    Thread Starter artyus

    (@artyus)

    In English it looks like this:

    First error:
    An active PHP session was detected

    A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.

    Second error:
    The REST API encountered an error

    The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.

    The REST API request failed due to an error.
    Error: cURL error 28: Operation timed out after 10002 milliseconds with 0 bytes received (http_request_failed)

    This is a site for tests, if required I can give you admin access.
    Please tell me where to send a login info?

    • This reply was modified 3 years ago by artyus.
    Thread Starter artyus

    (@artyus)

    As for using other plugins: I have currently removed or disabled all plugins except yours— and the problem remains. Only deactivation of your plugin removes these errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin causes critical issues on the site’ is closed to new replies.