Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter authentico

    (@authentico)

    I tested on a fresh WordPress install on Stablehost, and I received the same 406 error ???♂? Does not like how your Advanced settings is managing the request.

    Plugin Author Ales

    (@alesmal)

    That’s super weird! It is just saving settings using standard WP methods.

    Is there any specific settings you are changing? Could you just fresh install CMP plugin and hit save without changing anything?

    Do you have access to server logs? There might some clue what’s going on..

    Ales

    Thread Starter authentico

    (@authentico)

    When submit “Advanced settings” without setting any values, same error is thrown.

    Checked all logs, could not find anything related to this error. Does not seem to be a PHP issue. And 406 error is not being logged in any of my logs (cpanel, server, php, etc).

    Chrome Tools shows that upon clicking Save, a redirect is being attempted, and fails as a result of a cross-origin error.

    cmp-error-2.jpg (1919×746) (ibb.co)

    cmp-error-3.jpg (894×382) (ibb.co)

    No idea how to even debug this.

    Maybe it’s because I have “opcache” turned on in PHP. I’m using PHP version 8.1.

    [Edit] Tried with “opcache” disabled and still no help. Here are the PHP options I have enabled/disabled.

    cmp-error-4.jpg (1089×918) (ibb.co)

    [Edit #2] The “Connection timed out” page says that the error could be related to something on the server hogging resources. Maybe there’s an API call in the Save request that is hanging.

    ie. When I toggle the setting “Cookie Notice Compatibility” between Enabled/Disabled, sometimes it will save successfully. Then I try again, and it freezes again.

    [Edit #3] New error message appeared, redirecting me to a help article about “mod_security”: https://support.stablehost.com/en/articles/2086975-working-with-modsecurity

    [Edit #4] With “mod_security” disabled for the domain, it’s working. After enabling it again, seems to be fine now. Is your plugin sending a large amount of data in the Save request perhaps?

    • This reply was modified 1 year, 2 months ago by authentico.
    • This reply was modified 1 year, 2 months ago by authentico.
    • This reply was modified 1 year, 2 months ago by authentico.
    • This reply was modified 1 year, 2 months ago by authentico.
    • This reply was modified 1 year, 2 months ago by authentico.
    Plugin Author Ales

    (@alesmal)

    Thanks for your intensive troubleshooting!

    When saving the settings, only settings data is sent in the request. Very small amount.

    But we are also triggering compatible caching plugins methods to clear their cache when saving the settings. But that should not be an issue.

    Ales

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Saving Advanced settings crashes server with 406’ is closed to new replies.