• Resolved Anonymous User 15089738

    (@anonymized-15089738)


    When updating to the newest version, my site completely crashes. I get a 502 cloudflare error when trying to access the backend or frontend.

    The only way to make my site accessible again is to remove the cloudflare plugin via FTP.

    I see in the change log that the new version removed HTTPS Protocol Rewriting. Could that be the issue? (My site uses HTTPS on both the back and frontend.)

    Thanks

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi,

    Removing protocol rewrite is most likely not the cause of your issue. All removing it will do is reintroduce mixed content warnings if you haven’t standardized your HTML to use //.

    Are there any errors in the logs? If you see a 502 from CloudFlare it might be an issue on your host. Generally when you see a CloudFlare 502 we’re forwarding the response we got from the host.

    Thanks,
    John

    • This reply was modified 8 years, 6 months ago by jwineman.
    Thread Starter Anonymous User 15089738

    (@anonymized-15089738)

    I don’t see anything in the logs, and everything works perfectly with the cloudflare plugin disabled, but completely breaks with it enabled after the update.

    I’m not sure of the cause, the removal of https rewrite was just the first thing that came to mind.

    Do you have SSL enabled on CloudFlare? If so what setting is it set to? Do you have an SSL certificate on your origin server?

    Thread Starter Anonymous User 15089738

    (@anonymized-15089738)

    Yes, I have it set to strict on cloudflare, and I have an SSL certificate on my server.

    I was getting 500 error crashes after installing he new version with this error:

    PHP Fatal error: Constructor CF\\Hooks\\Init::init() cannot be static

    plugins/cloudflare/src/Hooks/Init.php on line 79

    Seems to be related to PHP 5.3 and other versions. I downgraded to the older version and it’s working again.

    It errors out on all PHP versions ?? I’m running PHP 7. Its called programmer error. It happens ??

    @aschroder

    Do you have a more complete stacktrace?

    What version of PHP are you running?
    What version of WordPress?

    Your error is different from what @kilmanagh is seeing.

    PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch

    It’s to do with having a method named init() in a class named Init I think – something between versions of PHP – I googled a bit but couldn’t be bothered trying to understand weird PHP class/static/constructor BS – simpler to just downgrade! ??

    Thread Starter Anonymous User 15089738

    (@anonymized-15089738)

    @jwineman

    Any update on my support request? I assume you had something in mind when asking about SSL certificates.

    Similar issue here. Throwing a 520 Error. The front end is fine and up. ANytime I try to create something new in the back end, I get that error. New Post. New Event. New page. I can access the posts and the quick edits, but when I go to modify an existing post by the full edit, I also get the error.

    I can access the plug in menu, but when I try to disable CloudFlare I get a browser error that says my site is not working and unable to handle that request.

    @aschroder

    I think that error is caused by add_action registering the init method on CF\Hooks\Init. I’m guessing add_action is trying to instantiate CF\Hooks\Init before calling init and it gets the error because that class is static and can’t be instantiated.

    I still cant reproduce it on my dev environment though which makes me think that isn’t whats happening.

    @jfrenaye

    Do you have any errors in your php error log?
    What version of WordPess are you running?
    What verision of PHP are you reading?
    What is your include path?
    Are you loading your site over http or https?

    Something is indeed incredibly wrong with the new plugin. Every time I try to post or update something, the whole website crashes. I’m loading my entire site over https.

    This is above my pay grade. I have sent this thread to my tech support people and they hopefully can chime in with the answers to your questions.

    Thread Starter Anonymous User 15089738

    (@anonymized-15089738)

    @jwineman I saw the plugin was updated again, this still does not fix my issue. I still get the same error when the plugin is active.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Update crashes site’ is closed to new replies.