We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37161
    • 12 Posts
    I have recently moved our intranet site from a WAMP install on a Windows Server 2008 R2 installation to a Windows Server 2008 R2 installation running IIS7 and PHP 5.3.5. The ModX version is 2.1.3-pl.

    The site is an exact copy and was happliy running FileLister on a number of pages whilst on WAMP however I have noticed today the pages are not working correctly on the new IIS version. FileLister is generating the pages fine display the files in the specified folder but when you try to open a link it eventually just times out. This is happening with all the filetypes I have tried so far pdf, doc, xls, docx and xlsx.

    I have spent most of today trawling the intranet for solutions with little success so I am hoping someone may have already come accross this issue.

    I am able to download documents from standard links fine so I am certain this is an issue with FileLister.

    The issue seems to tied in with the generation of the filename as when I save rather than open the link it saves the doc like this.
    "filename.doc.11nz4fs.partial"

    If I remove the .11nz4fs.partial the file opens fine.

    The only thing I have done to the FileLister snippet today is add the docx and xlsx mime types to the feoheaders file. But once I noticed the issue I removed these changes and still had a problem. I can not say for certain that the issue was there before I made the changes.

    Anyone got any ideas and thanks in advance.
      • 37161
      • 12 Posts
      I have not got a solution for this and am completely stuck however I have got a workaround thanks to djvern and an issue he posted on github https://github.com/splittingred/FileLister/issues/16

      I used the below to change the FileLister snippet and disable the hash. Afterwards FileLister is working fine identifing the hash as the issue somewhere in the process.

      As this is only an intranet and I don't need to hide the filepath from users so this will do as a fix. Just as long as I don't forget and update in the future sad

      line 159
      $key = $fileLister->makeKey($filePath);

      change to:
      $key = $path.$file->getFilename();

      line 174
      'url' => $modx->makeUrl($modx->resource->get('id'),'',array( $navKey => $key, )),

      change to:
      'url' => $key,
      [ed. note: goatskin last edited this post 13 years, 10 months ago.]
        • 37161
        • 12 Posts
        Ok the above fix my problem unless I want to use filelister to navigate directories which does not work.

        Anyone got any ideas whilst I look into this?