• I have a WordPress Local Intranet system installed on a WAMP server. I use Memphis Docs to upload all the files I need to the system, so the employees may download them whenever they need to. But I’m having problems while trying to update an uploaded file. In the Memphis Docs plugn-page, I click “Manage file” and them “upload file”. After confirming, the file is not uploaded to the front-end and the following message is shown: “Memphis Documents Error: (filename) was not found, please contact the owner for assistance”. But when I check the source folder of “D:\wamp64\www\intranet\wp-content\uploads\mdocs” the file appears normally.

    I think it is related to some updating problem or localization issues. Here are some stuff I found to be useful while running a debug-logger in order to solve my problem:

    Database error in WordPress-MySQL server has gone away when trying UPDATE wp_options SET option_value

    [05-Jul-2019 12:26:22 UTC] PHP Warning: preg_match(): Compilation failed: missing ) at offset 29 in D:\wamp64\www\intranet\wp-content\plugins\memphis-documents-library\includes\mdocs-filesystem-cleanup.php on line 136

    [04-Jul-2019 22:52:02 UTC] PHP Notice: Undefined variable: site_url in D:\wamp64\www\intranet\wp-content\plugins\memphis-wordpress-custom-login\localization.php on line 5

    Thanks

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author bhaldie

    (@bhaldie)

    open the file mdocs-downloads.php add this after line 53:

    
    $filetype = wp_check_filetype($file); // line 53 should look like this
    die($file); // add this line
    

    once added try downloading a file. You should see an output of the path of the file generated by mDocs. Make sure it matches the directory you have the files in.

    Thread Starter tecmetro70

    (@tecmetro70)

    I just did what you asked. The prompted path is exactly the same as where my files are stored. Same one.

    I appreciate your support so far.

    So, what’s the next step?

    Plugin Author bhaldie

    (@bhaldie)

    remove that line,

    then take a look at the permissions of the folder and files make sure that the web service has rights to access that folder and files.

    Thread Starter tecmetro70

    (@tecmetro70)

    All permissions seems to be ok. Including the web service.

    You see, a couple of months ago it was working properly. We could update the files normally via dashboard, on the plugin page. But due to a recent HDD replacemnt in the server, this problem started to happen. I can download the files no problem, but cant update them to a newer version, as stated before.

    Plugin Author bhaldie

    (@bhaldie)

    what is very weird is that this message:

    “Memphis Documents Error: (filename) was not found, please contact the owner for assistance”

    only occurs on download not upload or update not sure why you are seeing it.

    Thread Starter tecmetro70

    (@tecmetro70)

    Oh yeah. Sorry. This message is prompted after I try to download the updated file.

    Sorruy, I mixED thingS up a little bit.

    For example, there is a file called “x”. Everyone can download it normally. So I need to update this file with new information. I click Manage file and them I upload the new file, called “y”. Then I click “Update file”. Apparently it works. But when I try to download the file, that message is prompted.

    It only happens with files I update via dashboard. that’s the issue

    sorry once again.

    What do u think?

    Plugin Author bhaldie

    (@bhaldie)

    what does the manage versions link look like.

    does it contain the two files x and y?

    Thread Starter tecmetro70

    (@tecmetro70)

    No it doesn’t. That’s the point.

    The new file “y” appears in the directory path \\(server name)\wamp\wamp64\www\intranet\wp-content\uploads\mdocs. Both x and Y are there.

    But when I check “Manage Versions” it only shows “x” file

    Plugin Author bhaldie

    (@bhaldie)

    that is very strange. so the upload occurs but the database is not updating.

    there must be an error on upload that is not being reported.

    open the file mdocs_upload.php add this under line 112:

    
    $upload = mdocs_process_file($_FILES['mdocs']); // line 112
    var_dump($upload); //add
    die(); //add
    

    what does the output show?

    Thread Starter tecmetro70

    (@tecmetro70)

    here:

    array(6) { [“url”]=> string(107) “https://192.168.3.99/intranet/wp-content/uploads/mdocs/EL-25 Calibrador de processso IPT-RBC 173366-1011.pdf” [“file”]=> string(101) “D:\wamp64\www\intranet/wp-content/uploads/mdocs/EL-25 Calibrador de processso IPT-RBC 173366-1011.pdf” [“filename”]=> string(53) “EL-25 Calibrador de processso IPT-RBC 173366-1011.pdf” [“name”]=> string(46) “EL-25 Calibrador Fluke 702 Validade 28.05.2019” [“desc”]=> string(0) “” [“modified”]=> float(1562595720)

    Plugin Author bhaldie

    (@bhaldie)

    I think this is the issue:

    [“file”]=> string(101) “D:\wamp64\www\intranet/wp-content/uploads/mdocs/EL-25 Calibrador de processso IPT-RBC 173366-1011.pdf”

    see how its forward slashes at the beginning then changes to backslashes. I think how it should look is:

    D:\wamp64\www\intranet\wp-content\uploads\mdocs\EL-25 Calibrador de processso IPT-RBC 173366-1011.pdf

    how to fix this, not sure….

    let run another test:

    remove code from before and this to the file mdocs-functions.php line 365:

    
    $upload_dir = wp_upload_dir(); // line 365
    var_dump($upload_dir); //add
    die(); //add
    
    Thread Starter tecmetro70

    (@tecmetro70)

    okay. Just did it.

    Should I try to upload it to prompt a message or something?

    Plugin Author bhaldie

    (@bhaldie)

    yes

    Thread Starter tecmetro70

    (@tecmetro70)

    here:
    array(6) { [“path”]=> string(49) “D:\wamp64\www\intranet/wp-content/uploads/2019/07” [“url”]=> string(55) “https://192.168.3.99/intranet/wp-content/uploads/2019/07” [“subdir”]=> string(8) “/2019/07” [“basedir”]=> string(41) “D:\wamp64\www\intranet/wp-content/uploads” [“baseurl”]=> string(47) “https://192.168.3.99/intranet/wp-content/uploads” [“error”]=> bool(false) }

    again, the slashes problem..

    (i’ll be right back, in 1 hour)

    • This reply was modified 5 years, 8 months ago by tecmetro70.
    • This reply was modified 5 years, 8 months ago by tecmetro70.
    Plugin Author bhaldie

    (@bhaldie)

    not sure how to fix this…..

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can’t update files or change its status – Error’ is closed to new replies.