Image issue in cPanel - wordpress

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

Related

Images not showing up in wordpress localhost

I am trying to make a copy of the live site in the local server. I imported all the files and database. Edited the wp-config and changed the wp_options, wp_posts and wp_metadata table. Still the imgages are not showing up. When I copy the broken image link and paste it on another tab if the brower the image loads but not in the website. Can anyone help me with this.

wordpress media library keeps spinning on server but working on localhost

I am facing issue on wordpress media library. When i try to uploading images image has uploaded successfully but it shows "Please try again later" message and keep spinning image not loaded. Already existing image also not loaded. Please advise on this. This issue only on server. I keep the same file on local and working fine.
enter image description here

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 images are broken

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)

Transferred WordPress to new server - won't find images

I moved a WordPress site to a new server and now in the admin media section all the images are shown without preview.
I moved all the images (whole wp-uploads folder) to the new server and updated the path in the database. When I click on an image on the media section and copy the URL to the URL bar, the image is displayed in the browser.
I tried the "Regenerate Thumbnails" plugin but then errors appear: (ID 3596) failed to resize. The error message was: The originally uploaded image file cannot be found at
I checked the path in the DB but it looks right (when I copy the path in the URL bar, the image is shown).
I also tried to give 777 permissions to all the files and folders in wp-content/uploads - didn't solve it.
Another thing - most probably connected to this - is, that all the custom fields with images are empty now. When I try to set an image which is already in the db (without a preview) and save the post - the image is gone again. When I upload a new image, it works.
Do you have any ideas about that?

Resources