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

    I installed the latest version of MaxiGallery and I created the galleries folder making it writable. Now I hit the upload form and I tried to upload a picture. I got 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:  move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10080 is not allowed to access /usr/local/psa/home/vhosts/rachelheller.org/httpdocs/assets/galleries/153 owned by uid 2525   
      Error type/ Nr.:  Warning - 2   
      File:  /usr/local/psa/home/vhosts/rachelheller.org/httpdocs/assets/snippets/maxigallery/maxigallery.php   
      Line:  371   
      Line 371 source:  move_uploaded_file( $_FILES['file'.$i]['tmp_name'] , $path_to_gal.$name );    
      
    Parser timing 
      MySQL:  0.0055 s (9 Requests) 
      PHP:  0.0579 s   
      Total:  0.0634 s   


    I’m using the latest version of ModX. I tried changing the folders to different permissions but it didn’t change anything.

    Looking forward hearing from you..

    Wouter
      • 7923
      • 4,213 Posts
      You have to make MaxiGallery use the ftp commands to make the galleries filesystem folders, see MaxiGallery wiki page and 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."
        • 6341
        • 10 Posts
        I’m experiencing the exact same error wouterjj has documented above. It appears we’ve followed the exact same tutorial to set up MaxiGallery and have the exact same errors. I attempted to include the ftp parameters within a call to the snippet from a gallery page and still get the same errors. Perhaps I’m using the ftp parameters incorrectly, maybe even at the wrong place, after all, I am just starting to play around with Modx. However, I have successfully installed other Modx modules without error, this one seems to be a bit tricky...Any help would be appreciated.
          • 7923
          • 4,213 Posts
          What’s your snippet call like? what MODx / MaxiGallery version?


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 6341
            • 10 Posts
            Here’s the call I’m using -

            [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`!]


            I’m using version 0.5.1 of MaxiGallery and 0.9.5 Modx.
            I’m not exactly sure where to go from here...I’ve followed the directions on the wiki very closely.

            Should I modify the call by including the &ftp related parameters, or should I modify the maxigallery.php file and update with my ftp info?
              • 7923
              • 4,213 Posts
              You need to add the ftp related snippet parameters to your snippet call, eg. &use_ftp_commands=`1` &ftp_server... etc...


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 6341
                • 10 Posts
                So, I’ve added these parameters to my call and I still get the same error...=/

                [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &use_ftp_commands=`1`  &ftp_server=`myftp.server.com` &ftp_port=`21`  &ftp_user=`myusername` &ftp_pass=`mypassword` &ftp_base_dir=` /`  &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`!]


                  • 7923
                  • 4,213 Posts
                  Don’t know then..


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 7455
                    • 2,204 Posts
                    It hase to do with the php save_mode thats on. but the ftp option should work.
                      follow me on twitter: @dimmy01