We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33966
    • 52 Posts
    Hi
    As usual i wanted to put a new MaxiGallery on a Resource, as i did before plenty of times. When i try to upload a picture i get the following message:

    « 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(): The second argument to copy() function cannot be a directory
    ErrorType[num] : WARNING[2]
    File : /home/httpd/vhosts/kmu-allschwil.ch/httpdocs/assets/snippets/maxigallery/maxigallery.php
    Line : 371
    Source : move_uploaded_file( $_FILES['file'.$i]['tmp_name'] , $mg->path_to_gal.$name );
    Basic info
    REQUEST_URI : http://www.kmu-allschwil.ch/sommerapero_joerger2015.php
    Resource : [417]Sommerapero Jörger 2015
    Current Snippet : MaxiGallery
    Referer : http://www.kmu-allschwil.ch/sommerapero_joerger2015.php
    User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
    IP : 85.0.45.24
    Benchmarks
    MySQL : 0.0024 s (5 Requests)
    PHP : 0.0454 s
    Total : 0.0478 s
    Memory : 3.2463607788086 mb

    Backtrace

    1 DocumentParser->executeParser()
    index.php on line 144
    2 DocumentParser->prepareResponse()
    manager/includes/document.parser.class.inc.php on line 1576
    3 DocumentParser->outputContent()
    manager/includes/document.parser.class.inc.php on line 1678
    4 DocumentParser->parseDocumentSource()
    manager/includes/document.parser.class.inc.php on line 583
    5 DocumentParser->evalSnippets()
    manager/includes/document.parser.class.inc.php on line 1458
    6 DocumentParser->_get_snip_result()
    manager/includes/document.parser.class.inc.php on line 1047
    7 DocumentParser->evalSnippet()
    manager/includes/document.parser.class.inc.php on line 1134
    8 eval()
    manager/includes/document.parser.class.inc.php on line 996
    9 include()
    manager/includes/document.parser.class.inc.php(996) : eval()'d code on line 75
    10 move_uploaded_file()
    assets/snippets/maxigallery/maxigallery.php on line 371

    What is wrong, what can i do to solve the problem?

    Thanks in advance.
    Markus