• Resolved rienco

    (@rienco)


    We have built a intranet (multisite) for our customer with hundreds of documents. After we’ve migrated to a new server, the files stopped working, it’s giving 404 errors. If we add a new file this file is working, but the old files aren’t. in v3.4.0 we can try to Validate the Structure but it doesn’t work either (it’s giving a 405 error) and is giving “undefined” as output in the popup. We already re-saved the permalinks and changed the document upload folder.
    We migrated the database via phpmyadmin. The rest of the multisite is working fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor nwjames

    (@nwjames)

    @rienco,
    Sorry to hear that you are having problems.

    Can you confirm that for a document with a 404 error, then if the value of the document upload folder is called doc_folder and you find the name of the file returned with 404 using phpMyAdmin by finding the the post_content from the the document record (call that value X), then looking up the contents of the _wp_attached_file postmeta field for post_id X (call that file_name), then the corresponding document is held in doc_folder/file_name and it is readable by the WP server.

    For the Validate Structure process, I’m sorry that you’re having problems. A 405 error appears to be a route problem. This is used after any problems have been found and you wish to tell the server to correct a document. You don’t appear to be at that stage, so is possibly coming from the register_rest_route command.

    You can tell if it has been registered properly if you enter https://site/wp-json/wpdr/v1 (or https) from a browser. There should be a PUT method defined.

    If you could give any more information on the popup and its error since I would expect you only to get a popup once it has displayed a list of problem documents including those with a fixable error (giving the problem document title and problem and potential fix if it exists) and you have clicked on the Fix button.

    Hope this is of use,
    Neil James.

    Thread Starter rienco

    (@rienco)

    I’m so sorry, I made a typo in the filepath. Thanks for your detailed answer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Documents not found anymore after migrating’ is closed to new replies.