• Resolved muffinmedic

    (@muffinmedic)


    I’m using the latest version of the plugin and WordPress and am continuously getting the following error in my nginx logs. Any help would be appreciated:

    PHP message: [Cloudflare] ERROR: Bad Request 
    PHP message: [Cloudflare] ERROR: [CLIENT API] Array
    (
        [type] => request
        [path] => https://api.cloudflare.com/client/v4/zones/ID/purge_cache
        [timeout] => 30
        [method] => DELETE
        [headers] => Array
            (
                [X-Auth-Key] => key
                [X-Auth-Email] => email
                [Content-Type] => application/json
            )
    
        [body] => {"files":["https:\/\/website.org\/author\/user\/","https:\/\/website.org\/author\/author\/feed\/","https:\/\/website.org\/uncategorized\/ID\/","https:\/\/website.org\/uncategorized\/ID\/","https:\/\/website.org\/uncategorized\/31610
    • This topic was modified 7 years, 7 months ago by muffinmedic.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @muffinmedic,

    This is an edge case of Automatic Cache Management feature. We’re planning to have a release next month. If you don’t want to get these errors until the new version is released, you can fix it manually by editing the code.

    Here is the code changes you’ll have to do.

    The file is located at WP_FOLDER/wp-content/plugins/cloudflare/src/WordPress/Hooks.php

    Let me know if you have questions.

    Thanks

    Thread Starter muffinmedic

    (@muffinmedic)

    This seems to have fixed the issue, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Constant Bad Requests’ is closed to new replies.