We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25207
    • 29 Posts
    Hello everyone, I incorporated the maxigallery snippet into my website, then when I try to upload a picture this pops out... huh

    *******************************************************
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: move_uploaded_file(assets/galleries/53/picture.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied
    Error type/ Nr.: Warning - 2
    File: /var/sites/modx/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.0010 s (1 Requests)
    PHP: 2.2697 s
    Total: 2.2708 s
    ***********************************
    Thanks for the help in advance grin
      • 32519
      • 94 Posts
      What does your maxigallery callout look like? (e.g. [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3`!])

      Why is it trying to move the uploaded file? Where are your maxi gallery images located?
        <a href="http://www.themovietimeline.net">The Movie Timeline</a> | <a href="http://www.antstuff.net">The Antfarm Site</a>
        • 25207
        • 29 Posts
        Hi jonny bravo, thanks for the concern, I already solved it by making the folder assetsof modx writable, the images is on my local pc transfered to the server. I’m using putty to edit the folder attributes by typing "chmod 777 [foldername]", silly me.. grin
          • 32519
          • 94 Posts
          right on..
            <a href="http://www.themovietimeline.net">The Movie Timeline</a> | <a href="http://www.antstuff.net">The Antfarm Site</a>