Wordpress media images are broken - wordpress

i have using WordPress version 4.4 , I have moved the files to another server.
My WordPress Library images are broken check my screen My Error Page Screen

This is because the images cannot be found on this server, you have two options
Re-upload all images to your new server through wp-admin
upload your uploads folder to your new server (located in yoursitename/wp-content/uploads)

Related

Image issue in cPanel

I have installed a WordPress free theme and imported the demo content on the live server. That time image is not showing correctly. Please check the error
When I have clicked on the image view button from cPanel:
While importing the demo content on my local server the images are correctly showing. I have tried to change file permission of upload folder and updated the max_execution_time = 300 in php.ini
Media Library:
My phpinfo: http://prntscr.com/kb9t9m

Folder permissions for custom Wordpress uploads folder

I have created a new Wordpress website on my server and done everything as I normally would (nothing fancy or custom, just upload theme, a couple of plugins etc.) except I wanted a custom file path to my media folder.
I have created the folder '/public_html/i', updated my .htaccess file, updated the Setting > Media section in Wordpress with the file path and all is working fine.
My issue is that I do not want the uploads folder to be visible by navigating to the URL (www.site.com/i/).
If I change the folder permissions to execute only for group / world (711) the images become unavailable / unviewable and although I can still upload they show as broken images.
If I set to execute and read (755) the images and uploads work fine but the folder can be viewed by typing in the URL.
What are the correct permissions I should be using for a custom uploads folder to make images on the site viewable but the containing folder itself not?
Note that this is a site that will regularly have new images uploaded to it, so I would also need to be able to upload without having to change the permissions each time, which is one solution I have found online.
Thanks in advance for any help.
Add the following to your .htaccess file with the WordPress .htaccess instructions:
Options -Indexes

Wordpress media library don't show files manually added in upload folder

I'm very new to Wordpress. I just started working locally (using XAMPP on Ubuntu 14.04) when my HD crashed and i had to reinstall everything.
I'm pretty sure that before crash i was able to "upload" media simply by moving files into upload folder using a file manager (i'm sure i also added an upload/bg subfolder using shell). To see the new files into the media library i just had to refresh the media-upload page.
Now, after startover (ubuntu 16.04, lamp instead of XAMPP, WP 4.5.3 - can't remember old version) i cannot see copied media files anymore in media library.
Of course files are there (in the upload folder), both uploaded and copied, and i can see them using any browser (url like localhost/mysite/wp-content/uploads/myimg.jpg is working fine), but in media library i only see the uploaded ones.
Maybe in my old setting i installed a plugin that i forgot?
As far as I know:
WordPress stores all uploaded images in the wp-content/uploads folder in sub-folders for each month. It also stores a unique reference to the uploaded image in the WordPress database.
You can install a media file manager plugin
such as WP File Manager
But be care about it after install. It can modify all of your files (even out of uploads folder) and if an user (or hacker) can get high permission, it will be so dangerous.

Wordpress: error uploading images when moving to another domain

When I move a wordpress website to another domain, I always fail in uploading images. Why is that? I can upload posts and pages but not images.
Move your /wp-content/themes/your-theme/uploads folder to new domain

How to configure a WordPress blog to save uploaded images to a certain dir.?

I have a WordPress blog installed on my server but when i upload a image it goes into one directory, but the blog front end is looking for the images in another directory, so the images show as broken. I have been manually copying the uploaded images from server location to the one WP looks for them in and it works.
How can i set the WP blog to upload to the same dir on the filesystem that the WP front end is trying to pull from?
The problem is most likely WordPress failing to correctly guess the upload path and URL.
Go to Settings > Miscellaneous and hardcode the correct path and full URL.

Resources