Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter wownotown

    (@wownotown)

    Thanks Tobias!

    That worked perfect and everything is now showing properly.

    Jeff

    Thread Starter wownotown

    (@wownotown)

    I would still love to troubleshoot this to see if we can make your plugin work, but I just had one of our internal developers take a look at it and he was able to get it working writing a custom script. He said the reason it didn’t work was because PHP cannot pull the information from a remote server, only on a local server. He performed a hack to get it to work similar to DirectoryIndex that Apache uses, but obviously it doesn’t look or work as nice as your plugin with local directories.

    Thread Starter wownotown

    (@wownotown)

    I wonder is this has anything to do with the way the code detects directories? I installed a php program called dirList just to see and it shows up like this. The test directory is the one that is mounted as a cifs share.

    http://s4.postimg.org/tmxlnn225/Capture.png

    http://sourceforge.net/projects/dir-list/

    Thread Starter wownotown

    (@wownotown)

    Made the change but still get a blank template page without any php errors.

    Thread Starter wownotown

    (@wownotown)

    Putting this code in a file called scan_dir.php results in a listing of the files and directories which can be downloaded, but it doesn’t tie into WordPress and the directories don’t works without allowing Apache to do DirectoryIndexing.

    <?php
    $files = scandir(‘/www/leugardens/wp-content/test’);
    sort($files); // this does the sorting
    foreach($files as $file){
    echo’‘.$file.’
    ‘;
    }
    ?>

    Thread Starter wownotown

    (@wownotown)

    Thanks for helping. That didn’t seem to make a change. We are no longer getting any php errors when running the plugin, but it still just shows a blank template page without any file or directory listings.

    Thread Starter wownotown

    (@wownotown)

    I deleted my php_errors.log so it would start with a new one after adding recursive=”true” and now php is no longer logging the errors to the file. I will have to fix this first and then I will let you know. Adding recurive=”true” still shows a blank page though, instead of a file listing.

    Thread Starter wownotown

    (@wownotown)

    I installed the most recent and still get the following errors and a blank page when the files exist on a cifs share.

    [09-Oct-2014 11:48:48 America/New_York] PHP Warning: filemtime(): stat failed for wp-content/test/xcenda in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/file-away.php on line 203
    [09-Oct-2014 11:48:48 America/New_York] PHP Warning: filesize(): stat failed for wp-content/test/xcendavpn in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/file-away.php on line 201
    [09-Oct-2014 11:48:48 America/New_York] PHP Warning: filemtime(): stat failed for wp-content/test/xcendavpn in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/file-away.php on line 201
    [09-Oct-2014 11:48:48 America/New_York] PHP Warning: filemtime(): stat failed for wp-content/test/xcendavpn in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/file-away.php on line 202
    [09-Oct-2014 11:48:48 America/New_York] PHP Warning: filemtime(): stat failed for wp-content/test/xcendavpn in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/file-away.php on line 203
    [09-Oct-2014 11:48:48 America/New_York] PHP Warning: filemtime(): stat failed for wp-content/test/xcendavpn in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/file-away.php on line 203

    Thread Starter wownotown

    (@wownotown)

    I will update the version. The shortcode is simply

    [fileaway]

    Thread Starter wownotown

    (@wownotown)

    Also, what is filesize then? The plugin also complains about that.

    [09-Oct-2014 11:48:48 America/New_York] PHP Warning: filesize(): stat failed for wp-content/test/xcendavpn in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/file-away.php on line 201

    Thread Starter wownotown

    (@wownotown)

    What is filemtime then? That is what the plugin complains about.

    [09-Oct-2014 11:48:48 America/New_York] PHP Warning: filemtime(): stat failed for wp-content/test/xcendavpn in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/file-away.php on line 203

    Thread Starter wownotown

    (@wownotown)

    That works just fine. This was the output of the cifs filesystem that is mounted.

    Array ( [0] => . [1] => .. [2] => Forklift [3] => NG [4] => OutlookProfileConfigTool.exe [5] => UrlRewriter.config [6] => VPNProfiles [7] => adrian [8] => alj [9] => atp [10] => baaqmd [11] => berckmans_place [12] => bryan.quilty [13] => cheesecake-factory [14] => dubaidf [15] => edurent [16] => globalme [17] => indianwells [18] => jmi [19] => jop [20] => lightmaker-investment-manager [21] => lightmakerusa [22] => lmtennis [23] => lpga [24] => mayoclinic [25] => mcafee_partner_plugins [26] => mobileTesting [27] => nationalgrid [28] => orlandohealth [29] => robots.txt [30] => sonos [31] => tt [32] => usga [33] => v3 [34] => wta [35] => xcenda [36] => xcendavpn ) Array ( [0] => xcendavpn [1] => xcenda [2] => wta [3] => v3 [4] => usga [5] => tt [6] => sonos [7] => robots.txt [8] => orlandohealth [9] => nationalgrid [10] => mobileTesting [11] => mcafee_partner_plugins [12] => mayoclinic [13] => lpga [14] => lmtennis [15] => lightmakerusa [16] => lightmaker-investment-manager [17] => jop [18] => jmi [19] => indianwells [20] => globalme [21] => edurent [22] => dubaidf [23] => cheesecake-factory [24] => bryan.quilty [25] => berckmans_place [26] => baaqmd [27] => atp [28] => alj [29] => adrian [30] => VPNProfiles [31] => UrlRewriter.config [32] => OutlookProfileConfigTool.exe [33] => NG [34] => Forklift [35] => .. [36] => . )

    Thread Starter wownotown

    (@wownotown)

    Do you need access to the WordPress site or the Linux box?

    Send me your e-mail and I can send you credentials.

    Jeff

    Thread Starter wownotown

    (@wownotown)

    I did and have the same problem. Either a blank page or a Debug page if I enable debug. These were the php_error.log messages I see on the server.

    [08-Aug-2014 18:05:25 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/reference-functions.php on line 14
    [08-Aug-2014 14:05:25 America/New_York] PHP Notice: Undefined index: ssfa_playback_script in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/fileaplay.php on line 11
    [08-Aug-2014 18:06:04 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/reference-functions.php on line 14
    [08-Aug-2014 18:06:05 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/reference-functions.php on line 14
    [08-Aug-2014 18:06:23 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/reference-functions.php on line 14
    [08-Aug-2014 18:06:24 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/leugardens/wp-content/plugins/file-away/includes/reference-functions.php on line 14

    Thread Starter wownotown

    (@wownotown)

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