• Resolved htmanning

    (@htmanning)


    I upgraded from 3.9.6.1 to 3.9.7.6 and all my documents are missing completely. This is the shortcode that was working previously:

    [fileaway type=”table” directories=on paginate=”true” pagesize=”20″ sortfirst=”filename-desc”]

    I had to revert to get it working again. Unfortunately it’s behind a private login so I can’t link to it here. Any ideas?

Viewing 11 replies - 31 through 41 (of 41 total)
  • Plugin Author thomstark

    (@thomstark)

    Right before the line we edited previously, there is a line that says if(!is_dir("$dir")) return;

    I want you to put the following code directly above that line:

    
    if(current_user_can('administrator'))
    {
        return 'Dir: '.$dir.'<br>Rootpath: '.$rootpath.'<br>Chosenpath: '.$chosenpath.'<br>';
    }
    
    Thread Starter htmanning

    (@htmanning)

    See my previous posts. I think I fixed it by adding the sub-directory name to the Base Directory field.

    Plugin Author thomstark

    (@thomstark)

    But my test used only ‘documents’ as the base and it worked fine. Are you sure you have directories=”on” in your shortcode and it’s not garbled with smartquotes or anything?

    Thread Starter htmanning

    (@htmanning)

    Yes. The only difference I made to the setup is to set the Set Root Directory to Site Directory. Previously I had it set to WP Install Directory.

    Here is my shortcode again and it’s working after adding /site to the Base Directory.

    [fileaway type=”table” directories=on paginate=”true” pagesize=”20″ sortfirst=”filename-desc”]

    Plugin Author thomstark

    (@thomstark)

    I’m glad it’s working though. Nothing in the plugin has changed regarding finding base directory settings or anything like that, so it would be good to nail down what the issue was. But if you’re content, cool.

    If directories are not turned on, the shortcode will return nothing if there are no files in the directory you’re pointing to. The fact that you changed the base to a subdirectory with files in it, and files were then output, leads me to think the issue is with the directories setting in your shortcode.

    Plugin Author thomstark

    (@thomstark)

    Just saw your last reply. Your change of settings Root Directory explains why you needed to modify your base directory setting. Mystery solved.

    Glad you got it worked out. Thanks for your time.

    Thread Starter htmanning

    (@htmanning)

    I have several sub-directories in /documents and they all show up now.

    Here’s what I did.

    – I changed the Set Root Directory to match yours.
    – Added /site to the Base Directory (public_html/sitename/site/documents instead of public_html/sitename/documents)

    – I deleted all the sub-folders from the Base Directory settings. I only have one Base Directory now and it is set to /public_html/sitename/site/documents.

    Thread Starter htmanning

    (@htmanning)

    So if I go back to Set Directory of WP Install and take out the /site in the Base Directory it should still work?

    Thread Starter htmanning

    (@htmanning)

    Okay, going back to WP Install Directory breaks it. I have to use Site Directory and include the /site in the Base Directory or it won’t work.

    Plugin Author thomstark

    (@thomstark)

    Thanks for that extra bit of troubleshooting. With that info, I am able to reproduce the issue and I’ve tracked it down. I am working on a fix.

    Plugin Author thomstark

    (@thomstark)

    OK. 3.9.7.7 is now up and available. It has the fix to this bug you found. Thanks for helping me isolate the issue.

Viewing 11 replies - 31 through 41 (of 41 total)
  • The topic ‘No documents showing after updating to 3.9.7.6’ is closed to new replies.