Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jcrouchiii

    (@jcrouchiii)

    Seems like it fixed that issue but there is another code error on line 58:

    Warning: Invalid argument supplied for foreach() in \\UHS-FS01\WEBCONTENT$\team.uhsystem.com\wwwroot\wp-content\plugins\memphis-documents-library\mdocs-batch-upload.php on line 58

    foreach($zip_result['file'] as $index => $zip_file) {
                            $filesize_mb = number_format(round(filesize($zip_file)/1024,0));
                            $file = explode('/',$zip_file);
                            if(count($file) == 1) $file = explode('\\',$zip_file);
                            $file = $file[count($file)-1];
                            $file = preg_replace('/[^A-Za-z0-9\-._]/', '', $file);
                            $file = str_replace(' ','-', $file);
                            $filename = $file;
                            $ext = strrchr($file,'.');
                            $file = str_replace($ext, '', $file);
                            ?>
    Thread Starter jcrouchiii

    (@jcrouchiii)

    I should also add that I am running this on Windows Server 2012 R2 Standard (64-bit) with IIS 8.5 and PHP 5.4.24.

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