We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18409
    • 54 Posts
    I get the following error when uploading certain photos, seemingly at random:
    "« 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: C:\apache2\htdocs\manager\includes\document.parser.class.inc.php(748) : eval()’d code
    Line: 385"

    This is on windows (apache, php 5.2, mysql 5), which obviously doesn’t have chmod but according to the php user comments, it certain chmod masks work.

    Anyway, the point is that some photos upload find, and some fail with this error. Max execution time and all the rest are set to high enough values.

    Any suggestions anyone? It seems very strange, cheers!!
      • 18409
      • 54 Posts
      OK, so some photos aren’t uploading properly. Why could this be, think Holmes, think.....
        • 18409
        • 54 Posts
        Muppet, how about I check the upload_max_filesize setting. Could have sworn I’d already checked this.....

        Anyway, new problem is that if I try to upload more than 2 photos it just returns me straight to the gallery view page without having uploaded any photos.

        relevant php.ini settings:
        upload_max_filesize = 16M
        max_execution_time = 120
        max_input_time = 120
        memory_limit = 100M

        Anyone any ideas?
          • 18409
          • 54 Posts
          Aha, check:
          post_max_size
          value in php.ini.

          In my defence, neither of these php.ini settings are mentioned in the maxigallery instructions, it just talks about memory limits and max execution times, which I had already checked. Should be updated to include these settings as well.


            • 7923
            • 4,213 Posts
            lol, great that you got it solved! or did you? smiley

            But yeah.. I’ll try to make the instructions better..


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