We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4749
    • 623 Posts
    I can’t seem to shake this 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/public_html/site_name/assets/snippets/maxigallery/maxigallery.php	 
      Line:	372	 
      Line 372 source:	 chmod($mg->path_to_gal.$name,0644);	 
     
    Parser timing
      MySQL:	0.0063 s	(4 Requests)
      PHP:	0.0788 s	 
      Total:	0.0851 s
    

    Any ideas would be fabulous! Thanks.

    [!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs`!]
    [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview`!]
    


    LAMP
    PHP 5.1.6
    ModX 0.9.6.1
    MG 0.5.2

    EDIT: The picture will upload, but it still throws an error. So, I’ll upload a pic, but the error show up. I’ll hit the back button then click on "Resynch Gallery" and the picture magically appears. What gives?
      The MODx has you...
      Utah Web Design
      • 7923
      • 4,213 Posts
      Yes. Use &manage_target parameter.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 4749
        • 623 Posts
        What if I’m pulling it all dynamically?

        The MG calls are in a chunk {{gallery}} so how do I specify the document without making it static?

        EDIT: Doh! I got it working and eliminated the double galleries by using the &manage_target parameter and &is_target. I set up a separate document to manage all the galleries. So, the chunk still works and it’s dynamic. Great stuff doze! Again, you’re the man!
          The MODx has you...
          Utah Web Design