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

    I want to use the FileDownloader snippet. Although everything seems to be ok, I get the following error:

    PHP error debug
    Error: include_once(/var/www/vhosts/xxx.com/httpdocs/modx/assets/snippets/filedownload/filedownload.class.inc.php) [function.include-once]: failed to open stream: No such file or directory
    Error type/ Nr.: Warning - 2
    File: /var/www/vhosts/xxx.com/httpdocs/modx/manager/includes/document.parser.class.inc.php(769) : eval()’d code
    Line: 13


    This is my snippet call: [!FileDownload?getFolder=`assets/download`!]
    What seems to be wrong? I checked the url and it’s good. I even copy-pasted it, changed it etc, but I still get the error.

    Thanx
      • 4310
      • 2,310 Posts
      Have you tried uploading assets/snippets/filedownload/filedownload.class.inc.php again as PHP is saying it’s not there.
        • 18985
        • 29 Posts
        Yup, did that. Still the same error.