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

    When trying to upload images via maxigallery 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: 	chmod() [function.chmod]: No such file or directory	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/home/thepoint/public_html/assets/snippets/maxigallery/maxigallery.php	 
      Line: 	372	 
      Line 372 source: 	chmod($mg->path_to_gal.$name,0666); 	 
     
    Parser timing
      MySQL: 	0.0338 s	(8 Requests)
      PHP: 	0.0896 s	 
      Total: 	0.1233 s
    


    I’m including 6 different galleries in one chunk (the chunk is included on all pages of my site). Here’s my Maxi Call included in the 6 individual documents:
    [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` !]
    


    And here’s an example of the maxi calls in the chunk that the galleries are being included on:
    [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` &view_gallery=`148` !]
    



    The pictures are successfully uploading despite this error and there are definitely no permissions problems that i can see.

    I’m also having issues when adding in titles and descriptions. When I click save maxi says "changes have been saved" but my text disappears.

    I haven’t really touched any of the template files and I’m using version 0.5.2. Any ideas?
      Nick Hoag
      Creative Partner
      The FutureForward

      http://thefutureforward.com
      • 23849
      • 223 Posts
      It also appears that when I upload a file it changes the galleries folder to 333 (-wx-wx-wx). I have no idea why.. this is really weird stuff.
        Nick Hoag
        Creative Partner
        The FutureForward

        http://thefutureforward.com
        • 7923
        • 4,213 Posts
        I’m guessing you are using v0.5.x? Try the v0.6 test version. That should be fixed in it. You can find more info about that error through here: http://modxcms.com/forums/index.php/topic,36851.0.html


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 23849
          • 223 Posts
          Hi Doze,

          I just upgraded 0.6 and that did fix the upload error message, thanks a ton.

          The other problem is still happening, where titles and descriptions won’t save. I’ll explain my setup one more time so it’s super clear:

          I have a "sidebar" chunk. In this chunk are six galleries that appear on every page of the site. Each of these galleries is a child document inside a hidden folder. Here’s the Maxi call that exists on each of those documents (obviously each one has a unique id in for the manage_target parameter):

          [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` &manage_target=`148` &is_target=`1` !]
          


          This is the code in the sidebar chunk itself:

          <div class="banners">
          <img src="img/titles/sponsor.gif" alt="SPONSORED BY" title="SPONSORED BY" class="title"/>
          <div class="left">
          [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` &view_gallery=`148` &manage_target=`148` !]
          </div>
          <div class="right">
          [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` &view_gallery=`149` &manage_target=`149` !]
          </div>
          
          <br class="clear" />
          <br />
          <div class="left">
          [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` &view_gallery=`150` &manage_target=`150` !]
          </div>
          <div class="right">
          [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` &view_gallery=`151` &manage_target=`151` !]
          </div>
          
          <br class="clear" />
          <br />
          <div class="left">
          [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` &view_gallery=`152` &manage_target=`152` !]
          </div>
          <div class="right">
          [!MaxiGallery? &pics_per_row=`1` &thumb_use_dropshadow=`0` &limit=`1` &order_by=`random` &view_gallery=`153` &manage_target=`153` !]
          </div>
          </div>
          <br class="clear" />
          <br />
          


          On my homepage I also have a smoothgallery slideshow going. The call for that one is on a child page of my homepage and looks like this:

          [!MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_width=`599` &smoothgallery_height=`254` &smoothgallery_showCarousel=`1` &smoothgallery_textShowCarousel=`View All` &smoothgallery_embedLinks=`0` &smoothgallery_timed=`1` &smoothgallery_showInfopane=`true` &smoothgallery_slideInfoZoneOpacity=`.85` &max_pic_size=`1000` &smoothgallery_fadeDuration=`400` &smoothgallery_delay=`7000` &smoothgallery_carouselMaximizedOpacity=`.8` &smoothgallery_carouselMinimizedOpacity=`.6` &is_target=`1`!]
          


          I call that smoothgallery slideshow on my homepage like so:

          [!MaxiGallery? &smoothgallery_id=`12` &view_gallery=`12`  &manage_target=`12` &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_width=`599` &smoothgallery_height=`254` &smoothgallery_showCarousel=`1` &smoothgallery_textShowCarousel=`View All` &smoothgallery_embedLinks=`0` &smoothgallery_timed=`1` &smoothgallery_showInfopane=`true` &smoothgallery_slideInfoZoneOpacity=`.8` &max_pic_size=`1000` &smoothgallery_fadeDuration=`400` &smoothgallery_delay=`8000` &smoothgallery_carouselMaximizedOpacity=`.9` &smoothgallery_carouselMinimizedOpacity=`.7`!]
          


          Lastly (sorry for all of this!!), I have about 25 individual gallery pages, with a parent page that lists all of the galleries. Here’s the call on the parent page:

          [!MaxiGallery? &display=`childgalleries` &childgalleries_limit`0` &pics_per_row=`3` !]
          


          And here’s the code that appears on the individual child gallery pages:

          [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`170x170` &max_pic_size=`600x600` &thumb_use_dropshadow=`0` &quality_thumb=`100` !]
          


          I’m quite confident the problem with titles and descriptions not saving is because I have those 6 galleries appearing in the sidebar of every page and they are conflicting in some way with the rest of the galleries on the site (since multiple galleries are appearing on the same page in many instances). I hope I have outlined my setup clearly enough for you to understand, please let me know if it is unclear and thank you SO MUCH for your help!!
            Nick Hoag
            Creative Partner
            The FutureForward

            http://thefutureforward.com
            • 23849
            • 223 Posts
            SO I’ve kind of figured it out, but I still can’t think of what to do for the individual gallery pages that also include the sidebar galleries.

            What I realized is that the reason they weren’t saving was because the document that is the actual gallery and that is used for uploading images can NOT have multiple managers on it. When you click the "manage pictures" button on one of the pages that has it’s own gallery on it, the sidebar managers would also appear and this was my problem.

            I was able to take away the sidebar galleries for the "hidden" gallery documents that don’t ever get viewed and are only used for managing the pictures. My problem now is with the pages that are galleries and that act as their own managers... I want the sidebar galleries to appear on these pages, but when I goto manage these the manager comes up for both the individual gallery AND all 6 sidebar galleries, thus creating the conflict.

            Any ideas on how to setup these individual child gallery pages and include the sidebar galleries would be AWESOME!!
              Nick Hoag
              Creative Partner
              The FutureForward

              http://thefutureforward.com
              • 7923
              • 4,213 Posts
              Yeah, the problem is simply that when you manage a gallery, you cannot have other galleries on the same document. Eg. you would need to create a template that doesn’t have any galleries on it. Then create a document with that template with &is_target=`1` parameter in the maxigallery call. Then use that document as your &manage_target for the other galleries. All galleries can use the same document to manage them btw, if the picture size settings are the same.

              So you need to create one document that runs with only one maxigallery call and use that to manage all the galleries.

              There is also this hack that adds parameter to disable picture management http://modxcms.com/forums/index.php/topic,20815.0.html


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 23849
                • 223 Posts
                Thanks Doze, the hack propsed on that post worked like a charm smiley I applied the hack parameter to the galleries in the sidebar on the pages that were galleries themselves and it’s good to go. You da man!!
                  Nick Hoag
                  Creative Partner
                  The FutureForward

                  http://thefutureforward.com