Menu

#4845 (ok 4.4.3) White screen (Cloudflare)

4.4.2
fixed
None
Low
2015-04-20
2015-04-06
Staze
No

Seeing white screen when attempting to view the main index/login screen with Chrome 41.0.2272.118 (64-bit) on Yosemite 10.10.2. Safari and Firefox both work fine. Incognito doesn't work either. PHP version 5.6.6.

Cannot seem to find anyone reporting something similar. Please let me know if you need additional info.

Discussion

  • Staze

    Staze - 2015-04-06

    Correction, firefox doesn't work either. So Safari is the only browser that seems to work with 4.4 on the Mac (with my install).

     
  • Staze

    Staze - 2015-04-07

    This seems to be <style id="cfs-style">html{display:none;}</style> in the header for phpmyadmin.

    Not sure why, yet. This is someone else seeing this: http://stackoverflow.com/questions/21836978/phpmyadmin-slipping-stylehtmldisplaynone-style-into-head-tag-after-add

    Very strange. Also see other bugs with this... but checking the changes, this SHOULD be fixed.

     

    Last edit: Staze 2015-04-07
  • Staze

    Staze - 2015-04-07

    Two step fix, seemingly. Not sure if either can be addressed with PMA.

    First, set $cfg['AllowThirdPartyFraming'] = true; in config.inc.php. Second, since I was getting an error thrown that cloudflare.min.js was violating a security policy, in Cloudflare, you have to disable rocketloader (I just did it with a pagerule).

    Thanks.

     
  • Madhura Jayaratne

    • status: open --> invalid
     
  • Staze

    Staze - 2015-04-08

    I'm not sure I'd call this invalid. I'd love to see why phpmyadmin doesn't get along with Cloudflare rocketloader, and if we can address this with something simple.

     
  • Staze

    Staze - 2015-04-10

    Here's a patch that fixes the issue with Cloudflare, by simply setting data-cfasync="false" in Scripts.class.php

    Pretty, damn, simple.

     
  • Madhura Jayaratne

    • status: invalid --> open
     
  • Marc Delisle

    Marc Delisle - 2015-04-11
    • summary: Chrome white screen 4.4 --> White screen (Cloudflare)
     
  • Anonymous

    Anonymous - 2015-04-13

    I've opened a PR https://github.com/phpmyadmin/phpmyadmin/pull/1645 using the solution provided by @Staze.
    The data-cfasync='true' is a custom HTML5 attribute used by CloudFlare which I suppose isn't the same for other providers, but is solves the problem. In case many users have this problem the PR could be merged otherwise I don't think that the problem should be solved by pMA.

     
  • Staze

    Staze - 2015-04-13

    I'm not sure I see the harm in including it in base/core. I have asked if CF can address the issue with Rocketloader, but it seems like enough people use cloudflare, and the extra bytes to the code base seem reasonable to me.

     
  • Marc Delisle

    Marc Delisle - 2015-04-14
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2015-04-14

    @Staze I agree to apply your patch and fix the unit tests. But do you agree to our DCO (https://github.com/phpmyadmin/phpmyadmin/blob/master/DCO)?

    Also we need your full name and email.

     
  • Staze

    Staze - 2015-04-14

    I do, though I'm not sure how to actually formally agree? Do I email it somewhere, post it here, etc?

     
    • Marc Delisle

      Marc Delisle - 2015-04-14

      Posting here is sufficient. May I have your full name and email?

       
  • Staze

    Staze - 2015-04-14

    Ryan Stasel
    staze@staze.org is probably the best bet.

     
  • Marc Delisle

    Marc Delisle - 2015-04-14
    • summary: White screen (Cloudflare) --> (ok 4.4.3) White screen (Cloudflare)
    • status: open --> resolved
    • Group: 4.4.0 --> 4.4.2
    • Priority: Normal --> Low
     
  • Marc Delisle

    Marc Delisle - 2015-04-20
    • Status: resolved --> fixed