We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27285
    • 29 Posts
    @openfire:

    did you get ditto running?

    my modx shows this error:

    I get this error:
    Code:

    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: Invalid argument supplied for foreach()
    Error type/ Nr.: Warning - 2
    File: /www/htdocs/fbo/assets/snippets/ditto/ditto.class.inc.php
    Line: 84
    Line 84 source: foreach ($modx->documentMap as $mapEntry) {

    seems like we have the same problem!

    simon
      • 18397
      • 3,250 Posts
        • 22302
        • 42 Posts
        @simon79:

        Yes it’s running now but... I reuploaded the install and all the files for 0.9.2.1 and did the udpate again. Now it’s working but QuickEdit is rendering weirdly.
          [b]Benoit Deziel[b]
          • 27285
          • 29 Posts
          Quote from: Mark at Jul 14, 2006, 09:17 PM

          Have you applied this fix: http://modxcms.com/forums/index.php/topic,5344.msg40314.html#msg40314

          yes, my ditto is fixed wink

          Quote from: openfire3
          Yes it’s running now but... I reuploaded the install and all the files for 0.9.2.1 and did the udpate again. Now it’s working but QuickEdit is rendering weirdly.

          did you upload all files or just teh 0.9.2.1 upgrade like i did?

          and i got this error:

          « MODx Parse Error »
          MODx encountered the following error while attempting to parse the requested resource:
          « PHP Parse Error »
           
          PHP error debug
            Error: 	Invalid argument supplied for foreach()	 
            Error type/ Nr.: 	Warning - 2	 
            File: 	/www/htdocs/w00643b4/fbo/assets/snippets/ditto/ditto.class.inc.php	 
            Line: 	84	 
            Line 84 source: 	foreach ($modx->documentMap as $mapEntry) { 	 
           
          Parser timing
            MySQL: 	0.0094 s s	(11 Requests)
            PHP: 	0.1296 s s	 
            Total: 	0.1390 s s	 
            • 22302
            • 42 Posts
            @simon79:
            Not the patch, I uploaded the whole thing.
              [b]Benoit Deziel[b]
              • 27285
              • 29 Posts
              thx!

              i uploaded the 0.9.2.1 files and now its runnig!
                • 22303 MODX Staff
                • 10,725 Posts
                FYI -- the 0.9.2.1 patch is only for users who upgraded to 0.9.2 already, so it would not work if coming from an earlier version.
                  • 18397
                  • 3,250 Posts
                  Ok, I have incorperated the bugfix’s in this thread into a quick beta release (attached ONLY to this post).

                  @Doze, all of your feature requests have been implimented

                  @Marschant, use the tagging support in ditto as described but use the new tagData source keywords.
                    • 18397
                    • 3,250 Posts
                    Do you think it would make sense for metatags in the keywords string to be formatted type:value or keep it as just value?
                      • 7923
                      • 4,213 Posts
                      Quote from: Mark at Jul 15, 2006, 01:04 PM

                      Ok, I have incorperated the bugfix’s in this thread into a quick beta release (attached ONLY to this post).

                      @Doze, all of your feature requests have been implimented
                      The JSON data comes now nicely and evals too if there is no html content in it. But if the content field has for example an image, it wont eval, because the " chars wont get escaped. So it will make something like:

                      "content":"Test with image:<br /><br /><img width="118" height="74" src="http://www.netguru.fi/modx/assets/images/logo.png" alt="" />"


                      What ofcourse fails.. Could you do a snippet parameter that when enabled would do addslashes() to all of the fields what will be outputted (title, description, tvs, etc..). Or maybe another parameter to go with that where it would be possible to tell what fields should be addslashed (comma delimitted string, default with all). The it should eval ok..



                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."

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