admin管理员组

文章数量:1122832

I am on a fresh install of Wordpress on Ubuntu / LAMP, and noticed that none of my site's images are showing. I tried to install a theme (Sydney) and none of the images were showing up. I was able to fix this by manually installing the theme to the wp-content directory. You can see in the image below that all of the files being requested from wp-content are returning 404 errors. I tried uploading images, but they are returning a 404 error as well. I tried finding them in the wp-content/uploads folder but that folder didn't exist. As far as I can tell, the images just disappeared after I uploaded them. I am sure I configured something wrong, but I don't know what. How do I correctly configure the uploads folder so that my images show up? If anyone knows the solution to the problem of the themes not installing correctly, that would also be greatly appreciated.

Thanks

I am on a fresh install of Wordpress on Ubuntu / LAMP, and noticed that none of my site's images are showing. I tried to install a theme (Sydney) and none of the images were showing up. I was able to fix this by manually installing the theme to the wp-content directory. You can see in the image below that all of the files being requested from wp-content are returning 404 errors. I tried uploading images, but they are returning a 404 error as well. I tried finding them in the wp-content/uploads folder but that folder didn't exist. As far as I can tell, the images just disappeared after I uploaded them. I am sure I configured something wrong, but I don't know what. How do I correctly configure the uploads folder so that my images show up? If anyone knows the solution to the problem of the themes not installing correctly, that would also be greatly appreciated.

Thanks

Share Improve this question asked Jul 25, 2017 at 17:56 MatthewMatthew 1011 silver badge2 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

First, did you check your LAMP configuration ? Try to access a static HTML page with images, then a simple php script. If it's ok, then try to disable any plugin, mu-plugin and use a native wordpress them (such as twentyseventenn). You can also turn debug on in wp-config.php

define('WP_DEBUG', true); 
define('WP_DEBUG_DISPLAY', true);

to display php error in the UI. Perhaps it could help to find the issue.

本文标签: All files being pulled from wpcontent returning 404 error