• Resolved jcrouchiii

    (@jcrouchiii)


    I have installed v3.0.12 as a new installation. I am trying to upload a zip file with some PDF files inside. I am getting an error:

    Memphis Error: The Documents zip file has failed to imported.

    The zip file is a mere 652 KB in size. I have tried with the PDF files with and without file extensions inside the zip file. When I turn on WP_DEBUG, I can see:

    Warning: mkdir(): File exists in wp-content\plugins\memphis-documents-library\mdocs-batch-upload.php on line 18

    Notice: Undefined offset: 0 in wp-content\plugins\memphis-documents-library\mdocs-batch-upload.php on line 51

    Warning: Invalid argument supplied for foreach() in wp-content\plugins\memphis-documents-library\mdocs-batch-upload.php on line 57

    Line 18 appears to be:

    if(!file_exists('/tmp/mdocs/')) mkdir(sys_get_temp_dir().'/mdocs/');

    Any ideas?

    https://ww.wp.xz.cn/plugins/memphis-documents-library/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Plugin Author bhaldie

    (@bhaldie)

    Yes line 18 has an issue in it.

    it should look like this

    if(!file_exists(sys_get_temp_dir().'/mdocs/')) mkdir(sys_get_temp_dir().'/mdocs/');

    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);
                            ?>
    Plugin Author bhaldie

    (@bhaldie)

    it looks like the zip file can’t be found. My guess is your temporary internet directory is unavailable, and my bet is it is a compatibility issue with windows server.

    I only test on linux machines, so have no real working knowledge of Windows Server.

    Ill see if I can find a windows server kicking around and do some testing.

    Plugin Author bhaldie

    (@bhaldie)

    closing issue no activity.

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

The topic ‘batch upload not working in 3.0.12’ is closed to new replies.