We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    Quote from: JorgenM at Nov 03, 2008, 08:25 AM

    Thanks for the advice - unfortunately the SAFE MODE prevents me from using the MaxiGallery management in any way - also if I just try to resynch, I get the same error message.
    I think the conclusion is that I wont be able to use ModX / MaxiGallery for the project.
    Still I don’t understand why you couldn’t use MaxiGallery in SAFE MODE environment.. I haven’t seen any error message from you, it’s pretty hard to just guess what’s the problem. If the problem is with apache / ftp user accounts being different and user permissions, then you can configure maxigallery to use the FTP functions to upload pictures.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 14724
      • 27 Posts
      Quote from: doze at Nov 04, 2008, 08:13 AM

      Still I don’t understand why you couldn’t use MaxiGallery in SAFE MODE environment.. I haven’t seen any error message from you, it’s pretty hard to just guess what’s the problem. If the problem is with apache / ftp user accounts being different and user permissions, then you can configure maxigallery to use the FTP functions to upload pictures.

      Sorry Doze for not showing the error message - here it is:

      « PHP Parse Error »

      PHP error debug
      Error: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid/gid is 182431/182431 is not allowed to access /hsphere/local/home/mysite/demo/assets/galleries/2 owned by uid/gid 398/398
      Error type/ Nr.: Warning - 2
      File: /hsphere/local/home/mysite/demo/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.0054 s (5 Requests)
      PHP: 0.1226 s
      Total: 0.1280 s
        • 7923
        • 4,213 Posts
        Yes, that’s the error I thought it would be.. You just need to setup maxigallery to use the FTP functions. See MaxiGallery wiki page and the snippet 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."
          • 25483
          • 741 Posts
          Quote from: doze at Nov 04, 2008, 09:12 AM

          Yes, that’s the error I thought it would be.. You just need to setup maxigallery to use the FTP functions. See MaxiGallery wiki page and the snippet parameters that have "ftp" in them.

          Or just ask if your hoster can allow you to write to that map, some hosters will do that, some don’t.... But you can always use the above mentioned FTP function smiley
            with regards,

            Ronald Lokers
            'Front-end developer' @ h2o Media

            • 23299
            • 1,161 Posts
            Anything more on this thread?

            It was a good read but without a real ending. Did the OP give up or did he find something that worked?

            I am also looking for an easy gallery system that plays nicley with jQuery...

            Max
              • 7923
              • 4,213 Posts
              What more information do you need?

              The error that is described above happens because the PHP user does not have rights to move the uploaded files to the destination folder.

              That is usually the case when host uses SAFE_MODE to help with their server security. The "fix" for this is to use the ftp commands in MaxiGallery to upload pictures. It means that when a picture is uploaded in maxigallery, the script will take a FTP connection to the server with defined ftp user account and transfer the file via that connection.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 23299
                • 1,161 Posts
                Well, I was just curious if it worked for the OP (only 11 posts I see...)
                  • 7231
                  • 4,205 Posts
                  I am also looking for an easy gallery system that plays nicley with jQuery...
                  Use a jQuery gallery driven gallery display (I have used both ThickBox and FancyBox (and also SlideShowPro), but you can use any one you find since you can easily display the MaxiGallery output with any format you need). Then use Maxi to manage the images. With custom templates you can virtually do whatever you need with the front end.
                    [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                    Something is happening here, but you don't know what it is.
                    Do you, Mr. Jones? - [bob dylan]