We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38031
    • 15 Posts
    Hi Tom, haven't found anything to work yet other than completely disabling the cache on both the sites. Which is not ideal because i can tell the sites are slower as a result.

    It seems really similar to issues going on in this bug: http://bugs.modx.com/issues/3111

    but that was supposed to be fixed in 2.1.x

    I'm worried about producing more sites in modx and having to deal with this again.
      • 33974
      • 156 Posts
      I think this is based on server settings. I never had this specific errors yet with MODX. Had several others but not this one. But I heard of it on some hosts so I think there might be *some* setting on server which causes the issues.
        • 22303 MODX Staff
        • 10,725 Posts
        #3111 was addressed with the release of 2.1. If you are having blank pages after caching the site_start, I would venture a guess that you have a MODX parsing issue on your site_start page. Caching Resources should never cause a blank page.
          • 30271
          • 19 Posts
          Thanks for your replies. In fact, I remember the problem start when I upgraded from Modx 2.0 to 2.1, so I need to check my site_start. Do you have any advice or give me tools to check this page ?
            • 1343 ☆ A M B ☆
            • 2,213 Posts
            What do you have on the page/template as far as snippets and such?
              Patrick | Server Wrangler
              About Me: Website | Tweets |  MODX Hosting
              • 30271
              • 19 Posts
              On the site_start:
              Snippets are: getResources 1.4.2, wayfinder 2.3.3, copyrightFacile (from me !... see code below) and diaporama connecting with TV (adapted by me... see code below).

              Plugins are: Mobile Detection 2.1 (it's why there are tags "mobile" and "standard">.

              Code of Snippet CopyrightFacile
              <?php
              if (!isset($nom)){
               $nom = '';
                 }
              return $nom.' © '.date(Y);


              Code of Snippet Diaporama
              <?php
              $diapo=explode(",",$modx->resource->getTVValue('tri'));
              return '
              <standard>
                <div id="slider">
                <script type="text/javascript">
                $(document).ready(function(){
                  $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
                });
              </script>
              <div id="featured" >
              
                <!-- First Content -->
                <div id="fragment-1" class="ui-tabs-panel" style="">
                  [[*slider_photo_'.$diapo[0].']]
                  <div class="info" >
                  <h2><a href="[[~[[*slider_lien_'.$diapo[0].']]]]" >[[*slider_titre_'.$diapo[0].']]</a></h2>
                    <p>[[*slider_accroche_'.$diapo[0].']] <a href="[[~[[*slider_lien_'.$diapo[0].']]]]" >Lire la suite...</a></p>
                  </div>
                </div>
                <!-- Second Content -->
                <div id="fragment-2" class="ui-tabs-panel ui-tabs-hide" style="">
                  [[*slider_photo_'.$diapo[1].']]
                  <div class="info" >
                  <h2><a href="[[~[[*slider_lien_'.$diapo[1].']]]]" >[[*slider_titre_'.$diapo[1].']]</a></h2>
                  <p>[[*slider_accroche_'.$diapo[1].']] <a href="[[~[[*slider_lien_'.$diapo[1].']]]]" >Lire la suite...</a></p>
                  </div>
                </div>
                  <!-- Third Content -->
                  <div id="fragment-3" class="ui-tabs-panel ui-tabs-hide" style="">
                  [[*slider_photo_'.$diapo[2].']]
                  <div class="info" >
                  <h2><a href="[[~[[*slider_lien_'.$diapo[2].']]]]" >[[*slider_titre_'.$diapo[2].']]</a></h2>
                  <p>[[*slider_accroche_'.$diapo[2].']] <a href="[[~[[*slider_lien_'.$diapo[2].']]]]" >Lire la suite...</a></p>
                    </div>
                </div>
                  <!-- Fourth Content -->
                  <div id="fragment-4" class="ui-tabs-panel ui-tabs-hide" style="">
                  [[*slider_photo_'.$diapo[3].']]
                  <div class="info" >
                  <h2><a href="[[~[[*slider_lien_'.$diapo[3].']]]]" >[[*slider_titre_'.$diapo[3].']]</a></h2>
                  <p>[[*slider_accroche_'.$diapo[3].']] <a href="[[~[[*slider_lien_'.$diapo[3].']]]]" >Lire la suite...</a></p>
                    </div>
                </div>
                  <ul class="ui-tabs-nav">
                    <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1">[[*slider_photo_'.$diapo[0].']]<span>[[*slider_titre_'.$diapo[0].']]</span></a></li>
                  <li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2">[[*slider_photo_'.$diapo[1].']]<span>[[*slider_titre_'.$diapo[1].']]</span></a></li>
                    <li class="ui-tabs-nav-item" id="nav-fragment-3"><a href="#fragment-3">[[*slider_photo_'.$diapo[2].']]<span>[[*slider_titre_'.$diapo[2].']]</span></a></li>
                    <li class="ui-tabs-nav-item" id="nav-fragment-4"><a href="#fragment-4">[[*slider_photo_'.$diapo[3].']]<span>[[*slider_titre_'.$diapo[3].']]</span></a></li>
                </ul></div>
              
                </div><!--fin slider -->
              </standard>
              
              <!--Mobile-->
              <mobile>
              </div><!-- fin classe contenu-->
              <div class="smenu">Actualité</div>
                <div class="contenu">                                                                                                    
                  <div class="menu_smenu">
                  <ul>
                  <li><a href="[[~[[*slider_lien_'.$diapo[0].']]]]" title="[[*slider_titre_'.$diapo[0].']]" >[[*slider_titre_'.$diapo[0].']]</a>
              <span class="pt_txt_ita">[[*slider_accroche_'.$diapo[0].']]</span></li>
                  <li><a href="[[~[[*slider_lien_'.$diapo[1].']]]]" title="[[*slider_titre_'.$diapo[1].']]" >[[*slider_titre_'.$diapo[1].']]</a>
              <span class="pt_txt_ita">[[*slider_accroche_'.$diapo[1].']]</span></li>
                  <li><a href="[[~[[*slider_lien_'.$diapo[2].']]]]" title="[[*slider_titre_'.$diapo[2].']]" >[[*slider_titre_'.$diapo[2].']]</a>
              <span class="pt_txt_ita">[[*slider_accroche_'.$diapo[2].']]</span></li>
                  <li><a href="[[~[[*slider_lien_'.$diapo[3].']]]]" title="[[*slider_titre_'.$diapo[3].']]" >[[*slider_titre_'.$diapo[3].']]</a>
              <span class="pt_txt_ita">[[*slider_accroche_'.$diapo[3].']]</span></li>
                  </ul>
                </div>
              </div><!-- fin classe contenu-->
              </mobile>  
              ';
                • 30271
                • 19 Posts
                It's really seem to have problem with the start_site page, because I have no problem anymore with a simple page without snippet calling.
                In my previous post, I forgot to mention a snippet: limitWords call in a chunk that getRessources use in the start_site page template.

                Code of the snippet LimitWords
                <?php
                //Snippet name: limitWords
                //Parametres: &chaine (string) - &max (number of chars)
                //Example: [[!limite? &chaine=`[[*longtitle]]` &max=`10`]]
                if (isset($chaine, $max)){
                 if (strlen($chaine) > $max) {
                 $chaine = substr($chaine, 0, $max);
                 $espace = strrpos($chaine, " ");
                 $chaine = substr($chaine, 0, $espace)."...";
                }
                }
                return $chaine;


                Call in the chunk "derniere_nouvelle"
                <p class="texte_derniere_nouvelle">[[!limitWords? &chaine=`[[+introtext]]` &max=`202`]]</p>


                Call in the start_site page template
                [[!getResources? &parents=`27` &tpl=`derniere_nouvelle` &limit=`1`]]


                Do you thing that this could make problems ?
                  • 30271
                  • 19 Posts
                  Good news, my provider OVH has updated Mysql and all is working fine now.
                  Thanks for all.
                  [ed. note: Tom Pouce last edited this post 14 years, 8 months ago.]
                    • 38031
                    • 15 Posts
                    Update on my end... a third site failed today running on godaddy (www.lakecountryremodeling.com). this one had been running for 4 months fine and suddenly the same issue occurred. And i doubt godaddy is going to upgrade their mysql any time soon.

                    Just kind of frustrating, I'm moving away from godaddy mainly because of this issue (and they aren't as fast as other providers) but alot of the clients i deal with already have their hosting purchased through godaddy.

                    so still open to any suggestions, thanks for the input so far... i have the caching turned off on all my godaddy hosted sites currently