We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11054
    • 59 Posts
    I’m pretty new to MaxiGallery and I’ve installed it on my webpage, but I’m having problems getting multiple pictures to upload.

    I’ve read through just about every post on the forums about this 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(assets/galleries/7/): failed to open stream: Is a directory
    Error type/ Nr.: Warning - 2
    File: /hsphere/local/home/golds30/andrewbgoldsworthy.com/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.0221 s (4 Requests)
    PHP: 0.0545 s
    Total: 0.0766 s


    Most of the solutions tell me to change 371-378, but that hasn’t fixed the problem. I also checked to see that my php safe mode was off, and it was. I changed the defaults in my php.ini as well, so it isn’t a timing out problem.

    I’m able to upload 1 picture at a time it seems, but when it comes to multiple uploads, no good. Anyone out there have any ideas how to fix this problem?
      • 20413
      • 2,877 Posts
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 11054
        • 59 Posts
        I did read that, and I know that i’m not exceeding the max size because I’ve only been uploading pics that are under 1MB.  Even if I only upload 3 pics at that size the error pops up.

        As I said below, I changed the defaults in the php.ini so the max uploading should be high enough to take these images. 

        I’ve also noticed that when loading multiple images, it will successfully upload the first picture and create the thumb.  However, it doesn’t successfully upload the second, third, etc. images.  When I hit the back button from the error page, the first image in the upload is successfully entered into the gallery.

        Update:

        I just went through the process of changing line 371-378 as written in this post:
        http://modxcms.com/forums/index.php/topic,21619.20/wap2.html

        Same result with a new error message. First image uploads successfully with a thumb, but as it creates the second thumb the new error pops up:

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

        PHP error debug
        Error: Wrong parameter count for move_uploaded_file()
        Error type/ Nr.: Warning - 2
        File: /hsphere/local/home/golds30/andrewbgoldsworthy.com/assets/snippets/maxigallery/maxigallery.php
        Line: 371
        Line 371 source: if(move_uploaded_file( $_FILES[’file’.$i][’tmp_name’] , $mg->path_to_gal.$name , $modx->config[’base_path’] )) {

        Parser timing
        MySQL: 0.0078 s (4 Requests)
        PHP: 0.0359 s
        Total: 0.0437 s

        Does this give anymore insight into what is going on here?
          • 20413
          • 2,877 Posts
          Show the snippet call you are using!
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
            • 11054
            • 59 Posts
            [!MaxiGallery? &display=`7`!]
              • 7923
              • 4,213 Posts
              I have fixed bugs relating to that error message to the v0.6 test version, but my SVN account is not working at the moment, so you cannot download it.. I’ll try to see if I have that version in some backup so I can upload it to the forums for the mean while..


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