We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37104
    • 19 Posts
    I have a MODx 2.2.8 site running on GoDaddy shared hosting that returns a blank home page (no source code) a minimum of once a day, sometimes up to 3 times daily. Before you all groan and tell me it's my hosting, please note that I run several other MODx sites on GoDaddy shared hosting with no issues. I'm a web DESIGNER... or "Front-End Developer" if that's what you wanna call me. I am primarily a visual designer who has delved in to HTML/CSS markup and styling, and along the way learned a bit about how actual programming languages work. Not enough to code PHP, but enough to know what I'm looking at most of the time. Again, before you groan... I'm not here to throw my hands up in dismay after trying NOTHING. I have been following this issue since 2.2.3 in hopes that it gets figured out and solved because as a Front-End Developer I don't believe there to be a better tool than MODx for creating websites for my clients.

    Onward!

    I've researched all the known bugs, and implemented all the fixes I can find, as I intend to document in this post. And still, this one site persists on "going white" up to several times a day. I built the site originally on 2.2.5 (IIRC) last fall, and in December of 2012 it was taken over by new owners who had a "web guy". Fast forward to a few weeks ago, and the "web guy" has moved on and the new site owners have contacted me to help them maintain the site. I mention this as the "web guy" they had is not a MODx guy, and changed quite a bit of stuff around. There are now ads being served with DoubleClick for Publishers, using JavaScript that he put in there and I haven't had the time to explore, for instance. So you can see what we're working with, the link to the site in question is: http://www.bigmountainenduro.com/

    Clearing the cache seems to ALWAYS work to restore the site, and I have an alert set up with Pingdom.com to let me know when it's blank, I've set up Bob Ray's CacheClear AddOn and bookmarked it on my phone to easily reset the site when it goes down. I am considering using his RefreshCache AddOn and setting up a cron job to run both every few hours until I can get this figured out. To start, let's talk server configuration, etc. Allow me to proceed:

    MODX Version: revo 2.2.8 (traditional)
    Operating System: LINUX
    PHP Version: 5.3.24 (http://www.bigmountainenduro.com/phpinfo.php)
    Database Type/Version: MySQL 5.0.96-log
    Client API Version: 5.5.19 (I assume this is for MySQL)
    PDO support: enabled and driver for MySQL enabled
      The older I get, the faster I was.

      http://www.evanchute.com/
      • 37104
      • 19 Posts
      After much time and research, these are the things I have found to clear up this issue. Doing these things works for every other MODx site that I manage, nearly all of them use the same type of hosting service as Big Mountain Enduro. These fixes and MODx settings are documented HERE.

      1. Disabled cacheing of the homepage
      2. Ensure that all page requests are resolving to http://www.bigmountainenduro.com/ rather than http://bigmountainenduro.com/ using the .htaccess file. This is the only modification I have made to an otherwise "stock" MODx .htaccess file.
      3. Made sure the date/timezone setting was set to something (America/Denver in my case)
      4. Made sure the file robots.txt exists, since this issue has been linked to search engine spiders "crawling" the site and not finding this file
      5. Ensured that friendly URLs were enabled correctly using the .htaccess file
      6. Ensured that all functions/addons/snippets (except Wayfinder) on the homepage are being called uncached (in addition to disabling homepage cache)
      7. Made sure that the Error and Unauthorized pages are NOT the same as the homepage, and that they are a published page
      8. Added the following line to /core/config/config.inc.php in the $config_options array: 'use_flock' => '0',

      ***NOTE: looking at the error logs (attached) it seems the site was riddled with xPDOConnection errors up until 7-18-2013. Looking at my correspondence with the client, I believe the evening of that day is when I added the option to disable flock.

      A few other things that have been done, to clean up the site and attempt to improve performance:
      1. Optimized the entire database (specifically by truncating the modx_session table which had grown to be HUGE)
      2. Disabled "magic quote" in the php configuration (recommended for site performance)
      3. Disabled all MODx AddOns that aren't used for anything, and removing them completely
      4. Deleted all "default" files that come with GoDaddy hosting and are not part of MODx
      5. Deleted the cache files via FTP

      Below are all the forum threads and tracker issues I can find that might even be remotely related to this problem. As I've demonstrated, I think I've tried absolutely EVERYTHING to get rid of the problem, but it's still persists.

      http://rtfm.modx.com/pages/viewpage.action?pageId=36634926#FAQs%26Troubleshooting-3.1BlankfrontendpagesresolvedbyClearingCache

      http://forums.modx.com/thread/30702/please-have-a-look-at-bug-3111
      http://forums.modx.com/thread/30602/urgent-startpage-disappears---white-and-blank
      http://forums.modx.com/thread/80423/modx-having-a-hard-time-on-rackspace-cloud-sites
      http://forums.modx.com/thread/78611/core-cache-file-locks-and-will-not-update
      http://forums.modx.com/thread/85373/blank-whitescreen-on-pages-that-use-modx-blog-for-revolution-tutorial-code
      http://forums.modx.com/thread/84864/cache-corruption-problems-for-revo-2-2-5
      http://forums.modx.com/thread/30344/archivist-redirector-white-page-after-redirect

      http://tracker.modx.com/issues/3111
      http://tracker.modx.com/issues/7324
      http://tracker.modx.com/issues/8423
      http://tracker.modx.com/issues/9014

      And in the thread on the first page of this forum HERE it looks like that person might implement a similar "force refresh then rebuild" solution that I am thinking of. To him I say: "Cron job. Get some." So there it is, in all it's splendor. Did I miss something? Help? Do I simply need to move to different hosting? If so, recommend something similarly priced with better server configuration and I'm all for it. I'd prefer NOT to move this site and/or other sites to a new host if at all possible. Time equalling money and all of that, it's difficult to explain to a client that they need to pay you to migrate a site to a new web host to run a CMS that you recommended on a host that you recommended. So what else does this collective need to help me sort this out? Thanks in advance.


      Cheers,
      Evan [ed. note: full trucker last edited this post 10 years, 9 months ago.]
        The older I get, the faster I was.

        http://www.evanchute.com/
        • 37104
        • 19 Posts
        Oh yeah, a list of AddOns I'm using might be helpful, no?

        Google Analytics Dashboard Widget 1.0.1 pl
        Breadcrumbs 1.1.0 pl
        CacheClear 1.0.2 pl
        Copyright 1.0 pl
        EZfaq 3.3.0 pl
        FormIt 2.2.0 pl
        getFeed 1.0.0 pl
        getPage 1.2.3 pl
        getResourceField 1.0.3 pl
        getResources 1.6.0 pl
        GoogleSiteMap 1.3.1 pl
        HandyMan 1.0.0 pl
        phpThumbOf 1.4.0 pl
        SimpleSearch 1.6.1 pl
        sitemapfriend 1.0.0 rc1
        tinymce 4.3.3 pl
        VidLister 1.0.0 alpha6
        wayfinder 2.3.3 pl

        Looking through the error log there doesn't seem to be any consistent errors that coincide with when the site goes blank. And unfortunately, I cannot seem to get the error logs from GoDaddy... they're just not available.
          The older I get, the faster I was.

          http://www.evanchute.com/
        • And unfortunately, I cannot seem to get the error logs from GoDaddy... they're just not available.
          And that is why you need to move hosts. smiley Well, I could come up with more reasons why you need to move from GoDaddy, but the fact that you are being obstructed in researching a problem because there are no server error logs available is a pretty big one. While you say you have other sites working just fine, that doesn't make GoDaddy a good host and there's likely something different about this one. Maybe more traffic, more search engines hitting it or it simply is a heavier website that requires more resources than other sites you run there.

          A blank page (infamous bug 3111; I've followed it for a bit as well but never had it myself) has a reason it pops up and if they're not in the MODX error log (which based on what you've provided, they're not) it is likely in the server error log. Without that, you're stabbing in the dark and that's not a great way to debug or solve issues.
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 37104
            • 19 Posts
            While I don't doubt that GoDaddy and other inexpensive shared hosting providers aren't the best environment for MODx (or really even "good" as web hosts go), it still baffles me that this particular site has these troubles. It's also a bit frustrating that the party line on this issue always seems to be "shared hosting is the problem" right out of the gate. I was hoping that through providing in depth information about my particular case, perhaps I could help shed some light on this. As detailed above, I've tried every "fix" for bug #3111 (or #7324) including the use_flock fix and am still experiencing issues.

            The one thing I've noticed is there are 8 files sitting in the directory core/cache/resource/web/resources/1/ and when I view them, they all look like they contain information for the home page, which is resource 1. There are files that reside in that one's parent directory (core/cache/resource/web/resources/) with names like 8.cache.php, and I do NOT see a file named 1.cache.php. Since I have my home page (resource 1) set to uncacheable, I don't expect to see a file here. But what are the files in the /1/ directory? And all these directories seem to have the correct permissions (705).

            Also, I'm working through the error logs from the past few days. Just needed to look a little harder for them, it turns out. Because as easy as it is to say the answer is to move hosts, I personally would like to see the issue truly solved—with the outcome of MODx being able to run flawlessly in even the least sophisticated ("shabby" in the parlance of the day) of shared hosting environments. According to the email alerts I've received from Pingdom.com these are the times the site has gone blank over the past few days:

            7/18/2013 5:11:50
            7/18/2013 10:30:50
            7/18/2013 18:04:50
            7/18/2013 18:45:50
            7/18/2013 20:17:50
            7/19/2013 15:50:50
            7/20/2013 7:55:50
            7/20/2013 13:51:50
            7/22/2013 4:45:50
            7/22/2013 7:47:50
            7/22/2013 23:55:50
            7/23/2013 7:21:50

            So, what the heck am I looking for? Can someone point me in the right direction?



            A question for the MODx team regarding web hosts: are the providers listed on the services page at http://modx.com/services/ reputable and endorsed by MODx? Has the core development team researched these host providers and deemed them worthy and trouble free? Or are these simply a few providers that have chosen to advertise here? One might deduce that if these particular providers were willing to spend a few bucks to advertise to us MODxers, then they also must support MODx as well. I am not opposed to moving hosts, and will most certainly recommend whatever hosting will work best for future projects.
              The older I get, the faster I was.

              http://www.evanchute.com/
            • I can attest to Godaddy being the issue I've had a few clients whom I've had to move to new servers and all issues were solved, the issue with this particular site might be like Mark said more traffic or less resources or maybe it's a real Godaddy old server.

              If server cost is an issue maybe hosting multiple sites on a single MODX installation might be the solution and charge your clients a monthly hosting fee to cover bandwidth etc.

              I have a few client sites hosted on 1and1 which is another not so great host but I have never had issues with it and it's very dirt cheap my other sites are hosted on Skytoaster which is awesome and Patrick is part of the MODX community and his support is superb.
                Benjamin Marte
                Interactive Media Developer
                Follow Me on Twitter | Visit my site | Learn MODX
              • It's great that you have spent time trying to resolve this problem, however I would tend to agree with Mark's assessment. You don't have access to the error logs, which you need for troubleshooting the issue. I suspect even if you did, the problem is likely with that server's configuration - which they are unlikely to change for you. If we go back to time is money, how much money does it cost you to continue hosting this site on GoDaddy?

                My suggestion would be migrating to a MODX focused/friendly hosting provider. In most cases they offer free migrations, so no additional cost to your client. You are also likely to get better support in relation to your sites performance, and growth needs instead of blindly stabbing.

                I am slightly bias in my recommendation, but would suggest SkyToaster (I know Mark uses them). If you discuss your needs they can match you up with the right plan too.
                  Patrick | Server Wrangler
                  About Me: Website | TweetsMODX Hosting
                • Quote from: full at Jul 24, 2013, 01:24 AM
                  A question for the MODx team regarding web hosts: are the providers listed on the services page at http://modx.com/services/ reputable and endorsed by MODx? Has the core development team researched these host providers and deemed them worthy and trouble free? Or are these simply a few providers that have chosen to advertise here? One might deduce that if these particular providers were willing to spend a few bucks to advertise to us MODxers, then they also must support MODx as well. I am not opposed to moving hosts, and will most certainly recommend whatever hosting will work best for future projects.

                  It's typically paid advertisers, granted they all aren't bad. I am unsure if there is any review/auditing process going on in the background. I do know A2 Hosting, Arvixe, and Site5 get decent feedback from some MODX users.
                    Patrick | Server Wrangler
                    About Me: Website | TweetsMODX Hosting
                    • 3749
                    • 24,544 Posts
                    SkyToaster is very highly regarded. I've also had good luck with Arvixe (see my sig).

                    Bob's Guides has been at Bluehost for several years (http://bit.ly/Hb5CAY). I've been very happy with them and they're reasonably priced.
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                    • My reseller account at SkyToaster is only $15/mo. Compared to HostGator which was at $25/mo. It's the smaller reseller plan at 25/500 and when and if I need more, I will upgrade it to the $20 as the next step, further as needed of course but for right now with about 10 domains, I still have room to go on the small plan.

                      Insofar as MODX friendly hosts, they win in my opinion. They use MODX, build sites with MODX, and support MODX. Hostgator support hardly knew what MODX was when I had to call them. I will say however, that Hostgator was not a bad host and if I didn't want a premium MODX friendly host, I'd still be with them.

                      ^^ the above OP's problem would have been solved by now if Patrick had his fingers in it. That kind of support isn't found just anywhere... In fact just today he solved a problem for me in seconds. Who knows how long I would have searched forums or whatnot wondering what I did wrong.

                        Frogabog- MODX Websites in Portland Oregon
                        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                        Having server issues? These guys have MODX Hosting perfected - SkyToaster