We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22634
    • 15 Posts
    I’m reading all the posts that talk about the « PHP Parse Error » problem
    But I’m still having problems trying to solve it.
    This is the message I recived when I try to upload images whit the new Maxigallery snippet:

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

    PHP error debug
    Error: mkdir(assets/galleries/6/) [function.mkdir]: No such file or directory
    Error type/ Nr.: Warning - 2
    File: /www/docs/idehados.com.ar/public_html/assets/snippets/maxigallery/maxigallery.php
    Line: 229
    Line 229 source: mkdir($path_to_gal);

    Parser timing
    MySQL: 2.7989 s s (3 Requests)
    PHP: 0.0825 s s
    Total: 2.8814 s s

    Any ideas? Thanks
      • 7923
      • 4,213 Posts
      did you CHMOD the galleries directory to 777?


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 22634
        • 15 Posts
        Thank you.
        The error was that I’ve created a "gallery" folder and the correct name is "galleries".
        Thanks