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

    I am nearing the completion of my first major Modx project, and must say it’s been a good experience, and will lighten the load of the maintenance effort required to support the site.

    I am however, having a few intermittent issues with the behaviour of the Gallery functionality, and GalleryItem...

    If I navigate through the site hierachy, and end up at a product detail page, sometimes the images in the gallery do not load properly (uses gallery and gallerific plugin)... Likewise the "Other products in the range:" images at the bottom of the page do no always load properly either.

    I have caching switch on, and normally after a full refresh of the page, all the images show... But still then, after subsequent navs to the same page the images will sometimes not appear.

    I have seen this problem in firefox and IE so it seems to be a problem pulling the page together, rather than a browser specific issue...

    To recreate...

    > go to... http://www.freewaymedical.co.uk/modx/index.php?id=18 (There are purposefully no images here yet)

    >Then Click on "Standard Room Divider Range" (sometimes some of the images are missing from this page)

    >Click on any product, when the page loads, sometimes the gallery main image does not load (continously displays the loading image). Also some or all of the images in the bottom section, "Other products in the range:" do not load.

    Please help! Is there a setting that I am missing?
      • 14605
      • 40 Posts
      Hi Guys

      I would really appreciate your help with the above issue...

      Not sure if it is an issue with Gallery, or certain network connections... But I am getting erratic behaviour with my Gallery generated images...

      Problems appear to be worse when using Firefox 3.6.16

      Please help!
        • 14605
        • 40 Posts
        I think this may have something to do with multiple calls to GalleryItem on one page...

        Some pages call GalleryItem 10 or more times, to construct the page.

        Would be great if someone could look and at least confirm the problem, and make some suggestions to how to resolve (in IE, on some of the images that don’t display correctly, i can right click and select show picture, and the image will then display!)

        this page is an example that is not displaying correctly...

        http://www.freewaymedical.co.uk/modx/index.php?id=84
          • 32316
          • 387 Posts
          problem confirmed - that is there are two images missing - no idea why. If you click the second missing one that page does not work either... possibly a clue, maybe not.

          I was going to suggest the w3c validator - but it comes up with tons of errors (well 211) might not be too helpful for figuring out this problem quickly.

          Safari says there are errors on the page - maybe fix these first:
          Resource interpreted as image but transferred with MIME type text/html.
          drop_down_menu.jsResource interpreted as script but transferred with MIME type text/html.
          connector.phpResource interpreted as image but transferred with MIME type text/html.
          index.phpFailed to load resource: too many HTTP redirects
          index.phpFailed to load resource: too many HTTP redirects
          the first three are warnings - last pair are errors

          one of the last ones Request URL is:
          http://www.freewaymedical.co.uk/modx/images/home/home/home/home/home/home/home/home/home/home/home/home/home/home/home/home/index.php
          I think that is a clue to something amiss
            • 14605
            • 40 Posts
            Hi whistlemaker

            Thank you for your response... I have just taken a look through the site using the Tamper Data add-on for firefox and also noticed some strange URLs being generated...

            I had a dodgy .htaccess file in the root of my site which was not working as i anticipated...

            I have now changed this and the dodgy paths (/home/home/home...) have now been fixed...

            Still having the slightly odd behaviour of some images being missing... This seems to be apparent mainly when I am on my secure work network... but only intermittently and only to certain images!
              • 14605
              • 40 Posts
              OK

              I think I have got to the bottom of the problem here...

              I think the problem is with my 1and1 hosting package (1and1 Business)... It limits the number of parallel processes I can run at one time. I think the limit is between 10 and 16 (I am awaiting confirmation)...

              One some pages I use GalleryItem quite heavily. Up to 20 times on some pages to generate many thumbnails. the problem is that each time GalleryItem / PhpThumb returns an image, it uses a new process...
              ...
              3409642  25994  2214  0 21:51 ?        00:00:00 /usr/lib/cgi-bin/php5 /.../.../.../.../.../home/modx/assets/components/gallery/connector.php
              ...


              When I reach the limit, I get errors in the logs like...

              [2011-05-24 21:58:07] (ERROR @ /.../.../.../.../.../home/php/v2/v3/modx/core/model/phpthumb/phpthumb.functions.php : 474) PHP warning: shell_exec() [<a href='function.shell-exec'>function.shell-exec</a>]: Unable to execute 'which convert 2>&1'


              Has anyone had a similar problem to this before? I am considering upping the hosting package to one that offers unlimited parallel processes, as I feel this carries a better cost benefit than rewriting the way my images are managed and presented throughout the site.

              Your thoughts here would be much appreciated...

              Many thanks

              Jon