We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15001
    • 697 Posts
    Hi,

    I’m refering to this thread telling that MaxiGallery works fine only when connected in the MODx manager:
    http://modxcms.com/forums/index.php/topic,47965.0.html

    I experience similar problem.

    ---- Edit ---
    Not a MaxiGallery problem. See 3rd message in this thread.
    ---- end of edit ----

    What I observe is that MaxiGallery works fine when connected or not to the manager, at least for a classical "Large picture and clickable thumbnails" configuration like here: http://www.altipoint.ch/demo_product

    But when not connected to the manager, MaxiGallery prevents other scripts to work.
    For example, when following above link, the "Add product" button does not work unless I’m logged in the MODx manager.

    Logged in or not in MODx manager, all works fine on a localhost but not on a remote host.

    I compared outputed HTML code for another page with similar problem, wether I logged in the MODx manager or not:
    http://www.altipoint.ch/demo_catalogue
    The code is 100% identical in both cases.

    So, certainly is the problem due to Javascript, but I’m not totally satisfied with the Javascript conflict explanation.

    I assume that MaxiGallery is unable to retrieve some useful info when the user is not logged in MODx and the host is remote.

    Any idea?

      • 26016
      • 561 Posts
      Allo,
      I’m not sure, but I have a couple ideas for you. If I’m not mistaken, you’re trying out Treasure Chest. I haven’t been following that closely, but I’ve heard that this can be tricky to set up. Maybe searching the forum for Treasure Chest info would give better ideas.

      Apart from that, I have something you can try. I would guess that indeed, you are lacking a Javascript library. When you are logged into the Manager, take a look at the page HTML, and make a note of all Javascript libraries being used. Then log out of the Manager, look at the HTML again, and see if any of those Javascript libraries are lacking after log-out.

      Then try adding each of these libraries one-at-a-time to your MODx template, so they load whether you’re logged in or not. Eventually, I think you will figure out which library you need.

      Good luck, Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 15001
        • 697 Posts
        Hello Dave,

        Thanks for your answer.
        The strangest is that the shop works perfectly when I’m connected to the MODx manager.
        As I told, outputed HTML code is identical if I’m connected or not to the MODx backend.
        I checked, with PSPad, an editor which allows comparing two files.

        MaxiGallery is not the culprit. I tried removing the call to MaxiGallery from the catalogue page and the problem remains.

        Regards.

        Julien

          • 26016
          • 561 Posts
          Julien,
          C’est interessant. I agree, Maxi is not the culprit. Following my thought a little further... you’re logged into the Manager when it’s working correctly.

          I’m in the unknown here, but here’s another thought. When I’m logged into the Manager, these libraries are loaded, and they’re Mootools-related. I wonder if you put these lines into your template, and then logged out of the Manager, what would happen?

          <script type="text/javascript" src="media/script/mootools/mootools.js"></script>
          <script type="text/javascript" src="media/script/mootools/moodx.js"></script>

          My theory, possibly bogus, is that Treasure Chest may require some of this code to work. If this doesn’t help, I would suggest looking for the Treasure Chest section on the forum.

          Good luck, Dave

          PS: I know that a lot of people have had trouble with Treasure Chest, and I believe that project is now dormant. I know people like free stuff, but if I were setting up a shop now of any complexity, I would probably go for FoxyCart, which is constantly developed and full of nice features. I may actually set one up next week myself.



            MODx and Wordpress development
            Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
            • 15001
            • 697 Posts
            Thanks Dave,

            I’ll try your idea.


            > I know that a lot of people have had trouble with Treasure Chest, and I believe that project is now dormant.

            For your info TreasureChest was improved in 2010:

            - TreasureChest 1.1 was released in March 2010
            - TreasureChest 1.2 was released in May 2010

            There are real enhancements (despite the small increase in version numbers).
            (see www.altipoint.ch/treasurechest for details)

            Unfortunately, the demo does not work when not connected to the MODx manager. I assume some problem with file permissions, although I checked them and they seem a priori OK. I think the problem occured with the upgrade to TreasureChest 1.2.

            I’m currently writing a book about TreasureChest, but I must first make the demo available again.



            Ciao!
            Julien
              • 15001
              • 697 Posts
              I tried adding
              <script type="text/javascript" src="media/script/mootools/mootools.js"></script>
              <script type="text/javascript" src="media/script/mootools/moodx.js"></script>

              but it does not work.

              Most probably is the bug due to a file permission problem. So, I have to check all file permissions very carefully...