Giter Site home page Giter Site logo

Comments (13)

thellimist avatar thellimist commented on July 20, 2024

@Betawolf1213 Do you have any other plugins installed? If so you should try to turn them on and off one by one to figure out which of those is causing the issue.

from cloudflare-wordpress.

Betawolf1213 avatar Betawolf1213 commented on July 20, 2024

Alright so I disabled everything on the site and still having the same issue.

from cloudflare-wordpress.

jwineman avatar jwineman commented on July 20, 2024

So the root cause is that we read the JSON body from the request with

file_get_contents('php://input');

The problem is versions of PHP lower than 5.6 (I think) php://input can only be read once. Something is reading the JSON request body before our plugin executes, which causes php://input to be null when we do the CSRF check.

Is there anything custom about your setup that reads JSON from a request?

from cloudflare-wordpress.

Betawolf1213 avatar Betawolf1213 commented on July 20, 2024

^^ Yea I know of this problem I didn't say anything to avoid sounding like I know when I clearly don't know how to fix the problem. Also to the best of my knowledge no. I checked and the only times the token is being called for is when Cloudflare asks for it but nothing is stopping it from going through it just request it and then nothing happens. I know you guys can't legally login to my site either... But this is kinda a drag. oh also idk if you'd know but has it taken longer than 24 hours to get your ssl cert?

from cloudflare-wordpress.

jwineman avatar jwineman commented on July 20, 2024

Can you tell us the other plugins you're currently running?
Where are you hosting your WordPress blog?
Is there anything else "non standard" about your blog set up?

from cloudflare-wordpress.

Betawolf1213 avatar Betawolf1213 commented on July 20, 2024

Hosting on Domain.com

plugins

Accesspress twitter autopost
Akismet
BBpress
Buddypress
Cloudflare
Essential grid
Jet pack
Mailchimp forms by mailmunch
MO core
Slider rev
W3 total cache
Wordfence security
WPsmush
WP theme optimizer
visual composer
Yoast SEO

from cloudflare-wordpress.

thellimist avatar thellimist commented on July 20, 2024

@Betawolf1213 I tried installed (almost) all of your plugins, Cloudflare plugin seems to work. What is your PHP version?

from cloudflare-wordpress.

Betawolf1213 avatar Betawolf1213 commented on July 20, 2024

5.5.22

from cloudflare-wordpress.

Betawolf1213 avatar Betawolf1213 commented on July 20, 2024

I can't update to 5.6 cause it breaks my site.

from cloudflare-wordpress.

Betawolf1213 avatar Betawolf1213 commented on July 20, 2024

I recently through my Myphpadmin disabled everything and only enabled Cloudflare and still had the same issue.

from cloudflare-wordpress.

thellimist avatar thellimist commented on July 20, 2024

Is there anything else "non standard" about your blog set up?

from cloudflare-wordpress.

Betawolf1213 avatar Betawolf1213 commented on July 20, 2024

Not to my knowledge.

from cloudflare-wordpress.

jwineman avatar jwineman commented on July 20, 2024

Maybe an obvious question but have you searched all the code on your wordpress blog (core + themes, plugins, etc) for php://input?

from cloudflare-wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.