We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11190
    • 109 Posts
    Hello, all. I am using the FileDownload snippet 2.5 with the FileDownloadPlugin 1.2 on MODx 0.9.6. If I set the FileDownloadFolder TV explicitly on the same page as the FileDownload snippet call, all works fine. If I set the FileDownloadTV on the parent page and allow the page to inherit the TV (Default Value is @INHERIT), the page fails with this error:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: array_values() [function.array-values]: The argument should be an array
    Error type/ Nr.: Warning - 2
    File: /homepages/41/d209020368/htdocs/soworg/www/assets/snippets/filedownload/filedownload.class.inc.php
    Line: 258
    Line 258 source: $values = array_values($v);

    Parser timing
    MySQL: 0.0673 s (61 Requests)
    PHP: 0.2863 s
    Total: 0.3536 s

    Is this a bug or have I done something wrong?

    Here is my snippet call:
    [!FileDownload? &getFile=`[*description*]` &imgLocat=`assets/images/icons` &imgTypes=`fileicons`!]
    Although it breaks with simple [!FileDownload!]
    When I change @INHERIT back to the explicit path, it works perfectly. Thanks - John
      http://www.spiritualoutreach.com
      Making Christianity intelligible to secular society