We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10489
    • 93 Posts
    Hi all,

    Please can someone assist with this. When i try to upload images, even one image i get the following error:
    « 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/donkiesk/public_html/assets/snippets/maxigallery/maxigallery.php	 
      Line: 	372	 
      Line 372 source: 	chmod($mg->path_to_gal.$name,0666); 	 
     
    Parser timing
      MySQL: 	0.0030 s	(1 Requests)
      PHP: 	0.0279 s	 
      Total: 	0.0308 s


    Could it be that the image size is to large to upload

    Thanks
    Garth
      • 26016
      • 561 Posts
      Hi,
      That doesn’t look like the type of error I’ve seen due to lame PHP file upload server settings. First guess: did you chmod your assets/galleries folder to 777? I used to always forget to do that, or even would forget to make the folder altogether.
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 7923
        • 4,213 Posts
        Yea, check the chmod value of your galleries folder and then see the sticky information topic.


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 10489
          • 93 Posts
          Hi Samba, Doze,

          Ok, done what you said, no luck.
          It seems when i upload images under 1MB then all is good, as soon as i exceed 1MB then i get that error.
          Granted i am still testing so the images are raw jpg’s, so most of them are rather large.

          I think once i resize them, that shold sort the problem out

          Thanks
          G

          oh yes, i know this is the wrong forum for this question, but if you go to: http://213.175.221.108/~donkiesk do you guys see a flash header playing....all i see is am ’Obtain Flash Player’ message...i am running flash player 10
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Yes, I get the message as well; I’m not a Flash expert, but it looks to me like there’s something dodgy about that whole line, maybe all those IE conditionals?
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org