We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17412
    • 270 Posts
    Hi. The siteCache.idx.php weighs in at: 556kb

      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: lokust at Sep 26, 2007, 09:36 AM

      Hi. The siteCache.idx.php weighs in at: 556kb
      Something else must be going on...cause normally, a 556k siteCache will take a lot less than 4 seconds to be included. Of course, depending on your host specs, it is possible it could be slowing down that much...especially on a shared host.

      I think I’m going to have to say Reflect is likely the problem then...
        • 17412
        • 270 Posts
        Right now - I have setup the news room to run on the latest Ditto version (2.0.3) without Reflect.
        Still getting the error 500 though :0

        huh
          • 33372
          • 1,611 Posts
          And if you remove your Ditto calls does the 500 error go away?
            "Things are not what they appear to be; nor are they otherwise." - Buddha

            "Well, gee, Buddha - that wasn't very helpful..." - ZAP

            Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
            • 17412
            • 270 Posts
            Yep - page loads without issue.

            All pages load on the site (a wee bit slow) however it’s only this particular section ( http://tinyurl.com/29ewlg ) where the issue lies.

            There is another section that runs the very same ditto/reflect combo without issues (see: http://tinyurl.com/22rj5a ) - however there are only approx 30 items currently in that directory as opposed to 2,000-odd.
              • 33372
              • 1,611 Posts
              OK so it’s definitely Ditto. Can you post your Ditto call and templates? You might need your host to bump up your processing power if the problem really is just fundamental, but I use Ditto excessively on sites with hundreds or thousands of pages and I’ve never had it crap out like this.
                "Things are not what they appear to be; nor are they otherwise." - Buddha

                "Well, gee, Buddha - that wasn't very helpful..." - ZAP

                Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                • 17412
                • 270 Posts
                With regards the hosting - the server is pretty okay - the current site has the same number of documents running off a custom-built CMS and the load-time is rapid: http://tinyurl.com/248lzc

                --------------------------------
                Contents of Ditto index page:
                --------------------------------

                [[ReflectAmended? &parents=`350` &display=`10` &summarize=`10000` &removeChunk=`Comments` &tpl=`ditto_blog_amended` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`0` &tagData=`documentTags` &sortBy=`display-date` &dateSource=`display-date` &tplAlt=`blogFirstItem` &id=`archive` &dateFormat=`%d %B %Y` &noResults=`<br /><br /><p>No articles were written in the time period specified.</p>`]]
                
                <p id="blogShow">Showing <strong>[+archive_start+]</strong> - <strong>[+archive_stop+]</strong> of <strong>[+archive_total+]</strong> Articles</p>
                
                <div id="ditto_pages"> [+archive_previous+] [+archive_pages+] [+archive_next+] </div>


                ***Explantion
                "The custom Reflect version actually outputs a complete Ditto call including the filters needed to show only the month/year selected. Thus, there’s no need to use Ditto after the Reflect call in this instance."
                You can see the custom Reflect snippet here: http://tinyurl.com/26lwco

                To confirm - I have debugged by installing the latest Ditto/Reflect versions and using the calls:

                [[ditto-test? &parents=`350` &display=`10` &summarize=`10` &removeChunk=`Comments` &tpl=`ditto_blog_amended` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`0` &tagData=`documentTags` &sortBy=`display-date` &dateSource=`display-date` &tplAlt=`blogFirstItem` &dateFormat=`%d %B %Y`]]
                
                [[reflect-test? &dittoSnippetParameters=`startID:350` &groupByYears=`0` &showItems=0` &tplMonth=`reflect_month_tpl`]]
                


                I get the very same error 500 issues.

                --------------------------------
                Templates
                --------------------------------

                template: ditto_blog_amended

                <div class="news-box-content">
                <div class="home-txt">
                <div class="icons">[!chunkListParser?chunks=`[+tviconChunks+]`!]</div>
                <div class="news-title"><h2><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h2></div>
                <div class="news-txt-pic-box">
                
                <div id="indexImage"><a href="[~[+id+]~]" title="[+title+]">[+tvindexImage+]</a></div>
                
                <strong>[+date+]</strong> <br /><br />
                <p>[+summary+]</p>
                <p class="ditto_link"><a href="[~[+id+]~]" title="[+title+]">Read more about [+title+] »</a></p>
                </div>
                </div>
                </div>


                template: blogFirstItem

                <div class="news-box-content2">
                <div class="home-txt">
                <div class="icons">[!chunkListParser?chunks=`[+tviconChunks+]`!]</div>
                <div class="news-title"><h2><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h2></div>
                <div class="news-txt-pic-box">
                
                <div id="indexImage"><a href="[~[+id+]~]" title="[+title+]">[+tvindexImage+]</a></div>
                
                <strong>[+date+]</strong> <br /><br />
                <p>[+summary+]</p>
                <p class="ditto_link"><a href="[~[+id+]~]" title="[+title+]">Read more about [+title+] »</a></p>
                </div>
                </div>
                </div>
                


                ***Explantion
                The snippet call to chunkListParser is the TV-Based Chunks code found in the Wiki: http://wiki.modxcms.com/index.php/Create_TV-Based_Chunks it basically draws in icons that indicate the type of media that each item has attached.
                - For debugging - I have removed these calls from the Ditto templates though the problem persisted.
                  • 33372
                  • 1,611 Posts
                  What happens if you remove everything date-related from your simpler Ditto call and take dateFilter out of the extenders? I’m just trying to narrow down the issue to the specific part that’s causing the problem.
                    "Things are not what they appear to be; nor are they otherwise." - Buddha

                    "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                    Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                    • 17412
                    • 270 Posts
                    Ok, I now have this:

                    [[ditto-test? &parents=`350` &display=`10` &summarize=`10` &removeChunk=`Comments` &tpl=`ditto_blog_amended` &paginate=`1` &extenders=`summary` &paginateAlwaysShowLinks=`0` &tagData=`documentTags` &tplAlt=`blogFirstItem`]]
                    
                    <p id="blogShow">Showing <strong>[+archive_start+]</strong> - <strong>[+archive_stop+]</strong> of <strong>[+archive_total+]</strong> Articles</p>
                    
                    <div id="ditto_pages"> [+archive_previous+] [+archive_pages+] [+archive_next+] </div>
                    
                    [[reflect-test? &dittoSnippetParameters=`startID:350` &groupByYears=`1` &showItems=0` &tplMonth=`reflect_month_tpl`]]


                    I haven’t got an Error 500 yet.
                      • 33372
                      • 1,611 Posts
                      So it’s something about the date sorting or conversion code in particular... I’ve never had this happen and I use this sort of call a lot. I would ask Mark to help you debug that code in particular, or you could try an older version of Ditto since there may be a change in there from previous versions and that might be the root of the problem.

                      I just checked the site that we have with the most similar Ditto usage, and it’s running Ditto 2.0 RC3 and has about 900 pages.
                        "Things are not what they appear to be; nor are they otherwise." - Buddha

                        "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options