We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37914
    • 89 Posts
    I get a blank screen when I'm loading a page with the FileDir snippet.
    This only occurs with the newest version of FileDir and not the older one.
    The older one works fine, but doesn't support sorting files by name..

    I'm testing on a fresh/clean MODX installation MODX Revolution 2.2.14-pl (advanced)
    PHP Version 5.2.17

    The old FileDir snippet: http://goodmedia.nl/old.txt
    The new FileDir snippet: http://goodmedia.nl/new.txt

    The log:
    [Mon May 05 12:11:00 2014] [error] [client 94.213.154.32] PHP Fatal error: Call to undefined method DirectoryIterator::getExtension() in /var/www/vhosts/domainname.com/httpdocs/gearbox/cache/includes/elements/modsnippet/1.include.cache.php on line 115

    Thanx in advance!
      • 3749
      • 24,544 Posts
      The getExtension() method requires at least PHP 5.3.6, so I'm afraid you'll have to either upgrade PHP or use the old version of FileDir.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 37914
        • 89 Posts
        Thanx BobRay!
        I'll put the website on an other server then.