Transferred WordPress to new server - won't find images - wordpress

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?

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

Wordpress featured images and media library thumbnail no longer displays

I have a WordPress blog that is on a VPS. Everything has been working fine until today when I realised that my featured images are no longer displaying. I logged in to my dashboard, media library, and all the image thumbnails are no longer displaying properly.
Before this time, I had a little issue with my caching plugin (W3Total Cache), so I deactivated it, and my site continued to function normally. But now, no featured image is displayed all through the site. What amazes me is that inline images in a post are still displaying in the site. See example.
Now my site's homepage is just blank, because no featured images are displayed. As of today, images which I attached in the post are just seen as links, but if the link is clicked, it redirects to the image. Here are some of the things I've tried so far:
I've run df -h ssh command to verify if my diskpace is full.
I've restarted mysql server several times.
I've manually downloaded wordpress .zip file, and upload to the site.
I've automatically reinstall wordpress using http://www.example.com/wp-admin/update-core.php.
I've switched to a default theme.
I've tried some of the resources similar to this question here, but none of the proffered solutions resolved my issue.
My permission settings for all the sub-directories under wp-content is 755. I have also tried changing them to 775 and 777.
*. I've used the Regenerate Thumbnails plugin to try to regenerate the thumbnails, but it returned an error The error message was: The originally uploaded image file cannot be found at, but when I view the image directly from my browser, it returns the image.
I've also used the WP Original Media Path plugin to try and restore the media path (if it was messed up), but to no avail.
I've deactivated all plugins too.
I just checked my wp_postmeta table in my DB and it returned this error wp_postmeta table is marked as crashed
How do I rectify this issue?
Since the source of your homepage has nothing in the main section:
<section class="entry-content clearfix" itemprop="articleBody">
</section> <!-- end article section -->
and also due to the last item in your question, I assume you have a database problem instead of missing files (which I think would throw some 404s in my browser instead).
Do you have WP_DEBUG_LOG? If so, check wp-content/debug.log for errors. Be sure to launch phpMyAdmin and browse around the tables to see everything is good in there.
Use CHECK TABLE to confirm if tables are corrupted, and in that case use REPAIR TABLE to try to fix them (maybe phpMyAdmin has those in its GUI, I'm not sure right now).
In IIS -> Php Manager-> Php Extensions -> php_gd2.dll enable. refresh or restart the server it will work...
After long days try got this solution.

Wordpress media uploader not uploading properly

I am uploading media via the Wordpress media uploader. It says it uploads the file fine (and if I check inside my uploads folder, it is in fact there).
But the image is broken on the frontend, and if I go to the media uploader, it shows a broken image.
Now the strange thing, is if I click 'edit image' in the media uploader, it shows me the image...
the link to the image is also correct except when I use that link to view the image I am taken to a 404 page.
I would like to add that I de-activated all the plugins I am using and there is no change. As well, I've given the uploads folder permissions of 777. No change.
The uploader works fine on my remote server, but this happens when I use the site locally (using MAMP).
I just want to know what the problem is and if it is something that will occur when I set the site live on another server...What is going on?
Any help is appreciated!
Check if you have any .htaccess or php.ini with restrictions for all SPECIFIC related folders ( Content, Uploads , Year/Month folders )
One of them is bound to exists .
Otherwise - it is a hosting problem / configuration .

Wordpress Images seem to upload, but don't actually upload

On a clean WordPress install, with a fresh download of the latest version of WordPress, I'm having an issue uploading images... but it's not the problem I usually run into.
Here's the problem: WordPress let's me upload an image, and will save it into the list of media and allow me to give it a title, etc, but the actual file is never uploaded. You can't view it anywhere. Copying the full path to the image into the address bar also shows that no file is there. When I use FTP to check out the uploads folder, it's empty. I checked other directories to see if for some reason the image was uploaded to the wrong place, but it is nowhere on the server. In WordPress, if I click the "Edit Image" button this message appears: "Image data does not exist. Please re-upload the image."
wp-content is currently set to 767. Usually I can set wp-content to 767, upload the first image so that WP has permission to write in the uploads folder, and then change wp-content back to 755. Usually it works. This is the first time I've run into this specific issue, though.
In WordPress settings I have "Store uploads in this folder" and "Full URL path to files" left blank, however I have tried to type in the proper paths and still couldn't get it working.
I can't find a solution to this anywhere, and would appreciate some help. Thanks!
Instead of change the permission to the wp_content folder, try changing the permissioni of the wp-content/upload/ folder.
Also see if there are any issues in the error_log as well.

Resources