We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Thank you for the update Mark - I’m sure the community appreciates your efforts - little bug I’ve found - clicking on the debug link produces the following output:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource: 
    « PHP Parse Error » 
      
    PHP error debug 
      Error:  implode() [function.implode]: Bad arguments.   
      Error type/ Nr.:  Warning - 2   
      File:  C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\sites\reichimmigration.com\assets\snippets\ditto\classes\debug.class.inc.php   
      Line:  59   
      Line 59 source:  $ditto_IDs = array($ditto_lang["ditto_IDs_all"]." (".count($ditto->prefetch["dbg_IDs_pre"]).")"=>implode(", ",$ditto->prefetch["dbg_IDs_pre"]),$ditto_lang["ditto_IDs_selected"]." (".count($ditto->prefetch["dbg_IDs_post"]).")"=>implode(", ",$ditto->prefetch["dbg_IDs_post"]));    
      
    Parser timing 
      MySQL:  0.0106 s (11 Requests) 
      PHP:  0.1357 s   
      Total:  0.1462 s 
    
    


    Moreover, I couldn’t figure out yet how to truncate the output shown on the page or how do I have to do it.

    Edit: Removed copied post.
      • 18397
      • 3,250 Posts
      Are you sure you overwrote all of the Ditto related files?
        • 19889
        • 616 Posts
        I think I did, but I’ll try again

        Edit: opening the console seems to work, but I’m getting an error now when clicking on the save console:

        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource: 
        « PHP Parse Error » 
          
        PHP error debug 
          Error:  filesize() [function.filesize]: Stat failed for Resource id #56 (errno=2 - No such file or directory)   
          Error type/ Nr.:  Warning - 2   
          File:  C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\snippets\ditto\classes\debug.class.inc.php   
          Line:  9   
          Line 9 source:  $size = filesize($temp);    
          
        Parser timing 
          MySQL:  0.0172 s (21 Requests) 
          PHP:  0.1467 s   
          Total:  0.1639 s   
        
        
          • 25663 MODX Staff
          • 12,272 Posts
          That sounds like a missing file or incorrect permissions.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 19889
            • 616 Posts
            Quote from: rthrash at Mar 04, 2007, 08:35 AM

            That sounds like a missing file or incorrect permissions.

            this is kind of strange, I got all the latest files from svn and permissions shouldn’t be an issue since I’m on Windows. - I’ll try to re-install the whole stuff.
              • 20751
              • 122 Posts
              Some questions from a noob!

              1. If &startID is deprecated, what do we use instead and how?

              2. If the ’tv’ before the template variable name is no longer needed, how come when I remove tv from tvmytemplatevar (just an example) so it becomes mytemplatevar, the template variable no longer displays?

              3. Pagination doesn’t seem to work now, can anyone provide some pointers to where i might be going wrong? My ditto call is currently:

              [!Ditto? &startID=`36` &tpl=`DittoYourIssues` &summarize=`3` &multiLevel=`1` &paginate=`1` &paginateAlwaysShowLinks=`1`!]
              Page [+current+] of [+total+] Articles
              [+previous+] [+pages+] [+next+]
              


              Many thanks!

                • 18397
                • 3,250 Posts
                @mmjaeger: Try the latest SVN head as I came up with a way of sending the document without the tmpfile php command.


                @myan24:
                1. Use &parents or &documents depending on what you want Ditto to retrieve. Start ID will still work in this version but no guarantees after that.

                2. You’d have to show a specific example as every test I’ve run works fine without the prefixes. Look at the debug output and see if your tv shows up in the tv colum of the fields table.

                3. Again, I can’t duplicate the pagination issue. If you have this on a live site I’d be happy to take a look.
                  • 2762
                  • 1,198 Posts
                  Quote from: Mark at Mar 04, 2007, 04:56 PM


                  3. Again, I can’t duplicate the pagination issue. If you have this on a live site I’d be happy to take a look.

                  paginate works for me, but there is a change in the css style:

                  in ditto 1.1 there is
                  #ditto_currentpage

                  in ditto 2
                  is .ditto_currentpage
                  smiley

                    Free MODx Graphic resources and Templates www.tattoocms.it
                    -----------------------------------------------------

                    MODx IT  www.modx.it
                    -----------------------------------------------------

                    bubuna.com - Web & Multimedia Design
                    • 19889
                    • 616 Posts
                    Hello Mark,

                    just downloaded the latest svn on a default modx installation and I’m getting the following error:

                    « MODx Parse Error »
                    MODx encountered the following error while attempting to parse the requested resource: 
                    « PHP Parse Error » 
                      
                    PHP error debug 
                      Error:  Missing argument 5 for ditto()   
                      Error type/ Nr.:  Warning - 2   
                      File:  C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\snippets\ditto\classes\ditto.class.inc.php   
                      Line:  13   
                      Line 13 source:  function ditto($dittoID,$format,$header,$footer,$language,$debug) {    
                      
                    Parser timing 
                      MySQL:  0.0048 s (3 Requests) 
                      PHP:  0.0942 s   
                      Total:  0.0990 s 
                    


                    do I have to make any changes to the ditto call:
                    [[Ditto? &parents=`2` &summarize=`2` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`date,summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]] 
                    


                    Thanks for your help
                      • 18397
                      • 3,250 Posts
                      Did you update the snippet code?

                      This discussion is closed to further replies. Keep calm and carry on.