We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10266
    • 2 Posts
    I am using ModX o.9.6 RC3 and MaxiGallery .51. I see the manage pictures link on the page, but when I click it, 1 of 3 things happen:
    1. Nothin smiley
    2. Manage page comes up correctly, but I cna not do anything on it...
    3. 404

    There is no rhyme or reason to it - seems random. I removed all parameters from the snippet calls to reduce the potential issues. I checked permissions on the folders and the gallery directory... I re-installed the snippet and maxigallery following the directions carefully...

    Could this be related to the version of ModX I am using?

    Please help! (see http://www.voguebistro.com/gallery.html)
      • 20349 ☆ A M B ☆
      • 453 Posts
      - Can you write your call for MaxiGallery?


      - Try using the latest version of MaxiGallery.
        BASE - Web Design Studio
        MODX Ambassador

        Website
        • 3749
        • 24,544 Posts
        I had the same problem. I think it has to do with caching because if I had the manager open in another window (in another browser), if I cleared the site cache before every action, things worked ok.

        I finally solved it by trial and error setting the page to cached or uncached and changing the snippet call back and forth between [[ ]] and [! !]. I believe an uncached page and a [[MaxiGalllery ]] call worked for me.

        I think things were more complicated for me when some pages call a snippet directly and others call it by having a chunk that contains the snippet along with some nested chunks and snippets.

        There seems to be some weirdness in MODx when it comes to the cache and nested snippets and chunks.

        Hope this helps,

        Bob
          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
          • 7923
          • 4,213 Posts
          Yes, MaxiGallery needs to run uncached, so use [!MaxiGallery!] when calling it. I suggest to read this: http://www.modxcms.com/document-caching.html

          There is some weirdness in MODx when using nested snippets and chunks like Bob said. I believe you have to alter the caching on each level, so if parent is [!uncached!] nested one must be [[cached]].. This weirdness will be sorted in 0.9.7 btw.




            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 3749
            • 24,544 Posts
            Quote from: doze at May 15, 2007, 01:45 PM

            Yes, MaxiGallery needs to run uncached, so use [!MaxiGallery!] when calling it.

            doze,

            I thought I read earlier that I should use [[MaxiGallery]] when calling it on an uncached page.

            I ended up doing it that way and it seems to work.

            Also, I understand about reversing the caching of nested snippet calls. Does this also apply to snippets contained in chunks?

            If a non-cached page contains a chunk that contains a snippet -- does [[snip]] make the snippet call cached or uncached?

            Man, I hope 0.9.7 gets here soon. I’ve spent about a week wrestling with cache issues and things I thought might be cache issues.

            Bob
              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
              • 7923
              • 4,213 Posts
              Quote from: BobRay at May 15, 2007, 05:24 PM

              I thought I read earlier that I should use [[MaxiGallery]] when calling it on an uncached page.
              Yes, at some point there was a bug in modx that if snippet was run uncached on a uncached page, it did not register javascripts. But this should be fixed.

              Quote from: BobRay at May 15, 2007, 05:24 PM

              If a non-cached page contains a chunk that contains a snippet -- does [[snip]] make the snippet call cached or uncached?
              If document is uncached, everything in it will be uncached.

              Quote from: BobRay at May 15, 2007, 05:24 PM

              Man, I hope 0.9.7 gets here soon. I’ve spent about a week wrestling with cache issues and things I thought might be cache issues.
              Keep wrestling, 0.9.7 has still long way to go smiley


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 3749
                • 24,544 Posts
                If document is uncached, everything in it will be uncached.

                Good to know.

                Thx,

                Bob
                  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