We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18841
    • 7 Posts
    I just installed Modx and have been attempting to get the MaxiGallery snippet to work without much success. I get this error whenever I insert the snippet call into the documents.

    PHP error debug
    Error: Unknown(/home/american/public_html/main/assets/snippets/maxigallery/functions.php): failed to open stream: Permission denied
    Error type/ Nr.: Warning - 2
    File: /home/american/public_html/main/manager/includes/document.parser.class.inc.php(705) : eval()’d code
    Line: 271

    Your help would be much appreciated.
      • 18397
      • 3,250 Posts
      Check that the file is readable by PHP. Try giving it 644, 755, or 777 permissions.
        • 18841
        • 7 Posts
        I checked the permissions of both of the files listed and they are both 755. Any other ideas?
        • And the permissions on the maxigallery folder?

          Do you have any other snippets or modules, like the WebLogin snippet, working that use external files?
            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
            • 7923
            • 4,213 Posts
            Have you copied the files to right folders and have you checked character cases, eg. you have created a folder "maxigallery" under assets/snippets not "MaxiGallery" or something..?


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 18841
              • 7 Posts
              Thanks everyone, apparently the permissions were messed up.
                • 7923
                • 4,213 Posts
                Great that you got it working eventually! Could you tell what made it to work so others encountering the same can get help here..


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