Support » Fixing WordPress » Media Library Page is 404

  • Resolved donniewalden707

    (@donniewalden707)


    We moved our website from a subdomain to a root domain using this procedure:
    https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-wordpress-from-subdomain-to-root-domain/

    Everything went smooth. We copied over the WP files and folders through cPanel. Redirected our DNS. I modified the config file and finally redirected traffic with the .htaccess.

    Literally everything works on the site EXCEPT the Media > Library page. It just throws a 404. I’ve already attempted deactivating all plugins, I’ve tried that with a stock theme as well with no luck. Running the debug doesn’t log anything even though the debugger is definitely working (I messed with a plugin and got the debug to log that error). The 404 from the media library though just doesn’t log a single thing.

    I originally thought it might have to do with a couple of the image links still pulling from the subdomain, but even that didn’t help. I don’t see the
    wp-admin/upload.php file in the file manager but I guess it could be hidden or stored somewhere else?

    Any help would be greatly appreciated. I used the velvet plugin to switch all my URLs and the only ones that didn’t switch were in our Image Slider. I manually replaced those URL’s be reuploading through the plugin.

    The weirdest part is that you can access the media library from elsewhere on the site. For instance you can go to a page and edit the page and when you add an image, the media library window pulls up with all the images there. So it’s as if that single page can’t seem to find it’s way.

    Thank you for your help.

    Website: https://telegraphgardens.com

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • I can already run the debugger, but it doesn’t log anything when the page hits 404. It’s not a php issue I don’t think. I believe it might be something with the core that corrupted or didn’t copy in the move? I’m not sure but nothing I try seems to bring the page back, even though I can access my media library other ways. Just not the Media > Library page at wp-admin/upload.php.

    Let me know if you have any other ideas.

    Thank you!

    If you add the $show_errors = true; variable you will also see errors in your database ..
    Thank You.

    Which table in the database?? Would you happen to know?

    Thanks 🙂

    I’m responding courteously, I’m trying to help you. If you have a multisite it checks the configuration of your htacces from the network. If you have or do not have a multisite check also your .htaccess file. It would help to know if you started with multi-site wordpress less than 3.5

    Change Grid View with Lista View… do you see something?
    https://en.support.wordpress.com/media/2/

    • This reply was modified 2 months, 4 weeks ago by autotutorial.

    Hey there! Actually just figured it out.

    I couldn’t seem to get any debuggers to work except health check – which in the tools was able to find some missing files that for some reason or another didn’t copy over with a straight copy.

    Thanks for all your help with this! Marking it resolved 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.