We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7508
    • 22 Posts
    Hi, I hope someone can help I used the ’Picture and thumbnails on same page’ method as described on the MODx WIKI site (http://wiki.modxcms.com/index.php/MaxiGallery) it seems to work fine until I try to add an image. When I click Manage Gallery the form seems to be duplicated twice, if i try and upload an image it returns an error see below -

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

    PHP error debug
    Error: chmod() [function.chmod]: No such file or directory
    Error type/ Nr.: Warning - 2
    File: /home/fhlinux159/k/kevinhattam.co.uk/user/htdocs/assets/snippets/maxigallery/maxigallery.php
    Line: 372
    Line 372 source: chmod($mg->path_to_gal.$name,0666);

    Parser timing
    MySQL: 0.0962 s (4 Requests)
    PHP: 0.2547 s
    Total: 0.3509 s

    Any ideas?
      • 7923
      • 4,213 Posts
      You need to do the picture management on a separate document, because you have more than one call in single document.

      Use the &manage_target and &is_target parameters. See more info from the wiki article about these parameters.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 7508
        • 22 Posts
        Ah I understand it now... just got it working from your help and another post - http://modxcms.com/forums/index.php/topic,20560.msg127378.html#msg127378

        Cheers!