• Resolved jeynon

    (@jeynon)


    Page is on an intranet so I can’t show but essentially everything works great but my Date Modified and Size column have no output.

    echo do_shortcode('[fileaway base="1" makedir="true" sub="' . $sub_name . '" '.$manager_att.' type="table" directories="true" paginate="false" makedir="true" flightbox="images" bulkdownload="on" prettify="off"]');

    Any thoughts on what I am missing? Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author thomstark

    (@thomstark)

    Have you enabled your error log in wp-config.php and checked your log for errors?

    Thread Starter jeynon

    (@jeynon)

    Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in ……../wp-includes/functions.php on line 4667

    I get that on every page. I get nothing different if on a FileAway page.
    Thanks for helping.

    Plugin Author thomstark

    (@thomstark)

    Ok. That error is not file away related. The main thing is, no errors are being output when file away is getting the file modified time and file size.

    What type of server are you on?

    Thread Starter jeynon

    (@jeynon)

    PHP 5.6
    CENTOS 7.6
    Linux Cloud based server with Hosting.com

    Plugin Author thomstark

    (@thomstark)

    All right. My guess is it’s permissions related. Try adjusting the permissions on the files in question and see if that helps. filemtime() and filesize() might be returning false because they don’t have permission to read the file.

    Thread Starter jeynon

    (@jeynon)

    Folders have 0755
    Files have 0644

    Thread Starter jeynon

    (@jeynon)

    I have solved the issue. The client was wanting the DRAWERS to show a date and size to show. Once I get to the actual files I do see the Date and Size.
    Nothing to do for folder creation I assume?

    Thread Starter jeynon

    (@jeynon)

    They want to see if there is a file in a directory instead of having to dig down to the actual location where the files sit. They have folders in folders… Looking for an easier way to show a file exists

    Plugin Author thomstark

    (@thomstark)

    Ah. I see. Yeah, the folders dont have date or size. Only the files.

    If you dont need them to have manager access then you can remove directories="true" and replace it with recursive="true". That will show all files from all sub directories in one table without directory navigation. I see you have a variable there that I suspect enables manager mode for some users. manager="true" will override recursive="true" so hopefully that will work out nicely as a solution.

    Thread Starter jeynon

    (@jeynon)

    Yeah I converted it to recursive and see the benefits but in my case it won’t work. They need to see what folder it sits in. It could be that more then one folder will hold a file called sample1results.xls. Having all of them out on one page wouldn’t do much for them. Hey I tried. Thanks for the response.

    Plugin Author thomstark

    (@thomstark)

    So what kind of solution would you be looking for? Here’s the issue. I could scan each folder to see if there is content inside, but it could be a false positive. Like, it could be a file that is otherwise excluded from your file away table based on exclusion rules. It could be a directory that has four child directories but none of them have files in them. It could be a directory that is otherwise excluded by your exclusion rules. So it would involve doing all the heavy lifting that a recursive table does just to get a file count for each subdirectory. It’s possible to do but it’s not a quick fix.

    • This reply was modified 5 years, 6 months ago by thomstark.
    Plugin Author thomstark

    (@thomstark)

    What if I added a showRelativePaths option to the recursive fileaway table, where it’s still a recursive table but it shows the relative path from the parent directory that each file is located in?

    Thread Starter jeynon

    (@jeynon)

    Thom,
    Back on this issue again. Here is what they are struggling with.
    —-Main
    —Sub 1
    –Sub 1a
    —Sub 2
    –Sub 2a
    —Sub 3
    –Sub 3a

    When they log in and see the Main drawers they are unaware if anyone has added anything to the Sub a folders. The structure is set up where no files will ever be dropped in anything but the Sub a drawers. This means the user has to come and go out of those directories looking for new info. If Main showed a file size or data modified from any of the subfolders then someone could dive in. Once they got to Sub (non a) folders the same would apply. See below as my example.

    –Main (modified 4/5/2019)
    –Sub 1
    –Sub 1a
    –Sub 2 (modified 4/5/2019)
    –Sub 2a (the files has been uploaded here but at least I knew from the Main telling me something had been modified)
    –Sub 3
    –Sub 3a

    The client is confused because the main folder always looks non modified or has no size.
    I hope this makes sense. Thanks for your effort and expertise.
    Jon

    • This reply was modified 5 years, 5 months ago by jeynon.
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Date Modified and Size not showing’ is closed to new replies.