We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11585
    • 4 Posts
    Hello, I’ve recently started working with MODx for an art site.
    I’m trying to use MaxiGallery but I can’t seem to ever get a gallery to show up.

    I’ve tried the basic installation guides and a more advanced guide from the wiki titled "Open popup with prev/next links" (http://wiki.modxcms.com/index.php/MaxiGallery"" target="_blank" rel="nofollow">ctrl+f the title), but I can’t seem to get either to work.
    when I go to the page that I’m trying to make into a gallery all I see is the code printed out as text.

    basic guide: http://gymdawg.zymichost.com/index.php?id=47
    advanced: http://gymdawg.zymichost.com/index.php?id=49

    Any help would be greatly appreciated.
      • 3749
      • 24,544 Posts
      Try turning off the Rich Text Editor (uncheck the Rich Text Box and save) for the document. Possibly TinyMCE has mangled your snippet tag.
        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
        • 11585
        • 4 Posts
        That helped some, I think. I now have a "Manage Pictures" box on both pages.
        However, when I try to upload I get this error message:

        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource:
        « PHP Parse Error »
         
        PHP error debug
          Error: 	move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 6189 is not allowed to access /www/zymichost.com/g/y/m/gymdawg/htdocs/assets/galleries/49 owned by uid 2001	 
          Error type/ Nr.: 	Warning - 2	 
          File: 	/www/zymichost.com/g/y/m/gymdawg/htdocs/assets/snippets/maxigallery/maxigallery.php	 
          Line: 	371	 
          Line 371 source: 	move_uploaded_file( $_FILES['file'.$i]['tmp_name'] , $mg->path_to_gal.$name ); 	 
         
        Parser timing
          MySQL: 	0.0018 s	(1 Requests)
          PHP: 	0.0321 s	 
          Total: 	0.0339 s
          • 7923
          • 4,213 Posts
          You have your server setup so that PHP user does not have right’s to move the files from temp directory to the web directory.

          You can enable MaxiGallery to use FTP commands to upload files and that should solve your issues. See MaxiGallery wiki page and all the parameters that have "ftp" in them.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 11585
            • 4 Posts
            Okay, I added the ftp parameters to my snippet call:

            [!MaxiGallery? &js=`mgJs` &galleryPictureTpl=`mgGalleryPicture` &picture_target=`48` &use_ftp_commands=`1` &ftp_port =`21` &ftp_base_dir=`/` &ftp_user=`gymdawg_zymichost` &ftp_pass=`**********` &ftp_server=`gymdawg.zymichost.com`!]


            My directory path is "/www/zymichost.com/g/y/m/gymdawg/htdocs/assets/snippets/maxigallery/maxigallery.php" so I think I got the ftp_base_dir right ("&ftp_base_dir=`/"), however, I’ve tried "/htdocs/" as well.

            With all that said, I’m still getting the same error.
            I checked the folder permissions through FTP and they’re 777.
              • 7923
              • 4,213 Posts
              &ftp_base_dir should be the path where to go from ftp login root to get to modx installation base path.

              So if you use a FTP clien to login to your ftp, if it goes straight to MODx installation base direction, then it should be /. But if you need to navigate to some deeper directories from the ftp login root, then you need to set that path to the ftp_base_dir.

              If you still are getting the same issue, then I don’t know.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 11585
                • 4 Posts
                I just double checked and "/" is the correct path. I guess I’ll just have to find another gallery solution.
                It’s a shame really, MaxiGallery looked perfect.
                  • 7923
                  • 4,213 Posts
                  yeah.. seems quite odd though if you have the exactly same error message when using FTP commands in MaxiGallery, because the uploading should be now done via FTP and it should at least have different user id.


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