We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2402
    • 6 Posts
    Well then, i tried to install the MaxiGallery today and failed twice in a row.
    My problem is that everytime i try to upload an image, i get the following parse error:

    [tt]« 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 10222 is not allowed to access /var/www/vhosts/huizehoog.nl/httpdocs/assets/galleries/50 owned by uid 48
    Error type/ Nr.: Warning - 2
    File: /var/www/vhosts/huizehoog.nl/httpdocs/assets/snippets/maxigallery/maxigallery.php
    Line: 423
    Line 423 source: if (move_uploaded_file( $_FILES[’file’.$i][’tmp_name’] , $mg->path_to_gal.$name )) {

    Parser timing
    MySQL: 0.0121 s (6 Requests)
    PHP: 0.0722 s
    Total: 0.0843 s[/tt]

    Just i because i am quite new to all this, i have now clue how to fix it. Still it doesn’t work so if anyone can help me out please?
      • 7231
      • 4,205 Posts
      It seems that you have php in safe mode and this is limiting the upload function. Not sure what the work around would be.
        [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]
        • 2402
        • 6 Posts
        Though that wasn’t much of an answer, it still fixed the job. I started looking for safe mode on, which i switched of and now it’s all good. So thanks a bunch anyway!
          • 7923
          • 4,213 Posts
          If you wouldn’t have been able to disable the SAFE MODE restriction, you could have configured MaxiGallery to use the FTP functions (snippet parameters with "ftp" in them) to upload images and it would have been ok.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 2402
            • 6 Posts
            Thanks! I did managed to turn it off, but thanks anyway for this great snippet!