Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Forum: Plugins
    In reply to: [File Away] Filename case
    Thread Starter hickersonj

    (@hickersonj)

    Many thanks!! I never anticipate mods to be done quickly when it is free work, this is a hobby I understand. 🙂 Looking forward to it.

    Forum: Plugins
    In reply to: [File Away] Filename case
    Thread Starter hickersonj

    (@hickersonj)

    Oh ok awesome thanks!!

    Forum: Plugins
    In reply to: [File Away] Filename case
    Thread Starter hickersonj

    (@hickersonj)

    Hmm, I have a number of new files that are automatic uploads to my server. Renaming them manually during these uploads would be quite tedious. So just to be clear there is no option to display the filename as is on the server?

    Thread Starter hickersonj

    (@hickersonj)

    It works thanks!! Got tied up yesterday and today but yes verified it works for the old directories listing I have as well as the larger files. Though if someone wants to see size and modification information for today it won’t be there for the larger files.

    Thread Starter hickersonj

    (@hickersonj)

    This is the version:

    [builder@csbuild ~]$ php --version
    PHP 5.5.15 (cli) (built: Jul 24 2014 12:51:59)

    Is your server a 64bit OS? If so I’d expect it to work since integers on that platform are 64bit which allow 2GB+ size by default.

    I just got back too haha.

    Thread Starter hickersonj

    (@hickersonj)

    I got it to work with a couple of changes, but looking through the code I can see there will be other changes for filesize etc i.e. where filemtime is called etc.
    Here is some debug output:

    Warning: filemtime(): stat failed for fedora/09.pdf in /var/www/html/changelog/wp-content/plugins/file-away/lib/inc/inc.file-array.php on line 21
    
    Warning: filemtime(): stat failed for fedora/Fedora-10-i386-DVD.iso in /var/www/html/changelog/wp-content/plugins/file-away/lib/inc/inc.file-array.php on line 21
    
    Warning: filemtime(): stat failed for fedora/Fedora-11-i386-DVD.iso in /var/www/html/changelog/wp-content/plugins/file-away/lib/inc/inc.file-array.php on line 21
    
    Warning: filemtime(): stat failed for fedora/Fedora-12-i386-DVD.iso in /var/www/html/changelog/wp-content/plugins/file-away/lib/inc/inc.file-array.php on line 21
    
    Warning: filemtime(): stat failed for fedora/Fedora-13-i386-DVD.iso in /var/www/html/changelog/wp-content/plugins/file-away/lib/inc/inc.file-array.php on line 21
    
    Warning: filemtime(): stat failed for fedora/Fedora-14-i386-DVD.iso in /var/www/html/changelog/wp-content/plugins/file-away/lib/inc/inc.file-array.php on line 21

    So the couple of modifications were in:
    inc.file-array.php line 12:
    if(!$excluded && is_readable($dir.'/'.$slices['basename']))
    and
    class.fileaway.php line 112:
    if(!$dynamiclink && (is_dir($dir.'/'.$file) || $thename == '')) continue;

    This is using shortcode directories=”on”, I didn’t update your recursive directory function I was a bit lazy for debugging 🙂

    Thanks for taking the time to look into this!

    Thread Starter hickersonj

    (@hickersonj)

    Hmm maybe I’m drilling down to the problem:
    http://php.net/manual/en/function.is-file.php

    And in the recursefile function from the class.fileaway_utility.php it checks if the file really is a file then adds it, if I’m not mistaken (line 355):

    foreach($files_array as $file)
    {
            if(<strong>is_file</strong>($file)) $files[] = $file;
    }
    Thread Starter hickersonj

    (@hickersonj)

    Oh it’s too bad you can’t just dd the file directly on your server.

    I just hope it’s not some OS library issue, it is a 32bit Fedora 20 distro, but file scans should still show they are > 2GB. Especially since apache is doing it fine, just not sure how php handles this…

    Thread Starter hickersonj

    (@hickersonj)

    Here is the output when refreshing the page with the shortcode:

    [10-Oct-2014 20:44:02 UTC] PHP Notice:  get_bloginfo was called with an argument that is <strong>deprecated</strong> since version 2.2! The <code>home</code> option is deprecated for the family of <code>bloginfo()</code> functions. Use the <code>url</code> option instead. in /var/www/html/changelog/wp-includes/functions.php on line 3318
    [10-Oct-2014 20:44:02 UTC] PHP Notice:  get_settings is <strong>deprecated</strong> since version 2.1! Use get_option() instead. in /var/www/html/changelog/wp-includes/functions.php on line 3201

    Thread Starter hickersonj

    (@hickersonj)

    Yes that worked! Thanks! Been busy so I’ll try the debug for the other issue soon too.

    Thread Starter hickersonj

    (@hickersonj)

    I can look into how to, I haven’t done that before though.

    Thread Starter hickersonj

    (@hickersonj)

    Yes I do have statistics enabled, but I haven’t received an email (it hasn’t been a week). And thanks I will clean up the shortcode even more.

    Thread Starter hickersonj

    (@hickersonj)

    Maybe through some php or other configuration? If I simply use the server directory listing (using apache) these files show up, just not with File Away, which of course has a way better looking interface and options 🙂

    Thread Starter hickersonj

    (@hickersonj)

    Good question, I was playing around with flightbox but took that out, forgot to take out the boxtheme. After updating/removing boxtheme it didn’t make a difference.

    Thread Starter hickersonj

    (@hickersonj)

    Wow such a quick response that’s awesome didn’t expect that.

    Here is my shortcode:
    [fileaway directories="on" recursive="on" sortfirst="mod-desc" width="50" textalign="left" paginate="on" pagesize="8" images="none" boxtheme="silver-bullet" theme="silver-bullet" color="red" hcolor="green" accent="green" iconcolor="silver"]

Viewing 15 replies - 1 through 15 (of 15 total)