Images not showing up in wordpress localhost - wordpress

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.

Related

Theme images not showing up after site migration

I've just made the migration of a Wordpress website to a new server (http://52.89.230.100/). The migration went fine, the only problem is that after it none of the theme images of the website are showing up.
The weird thing is that it is pointing to the right url - if I right click on the image area, copy the url and paste it on the browser, the image opens perfectly. But at the website itself it doesn't.
Where am I missing?
Thanks a lot!

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 Thumbnail/Permalink

I have an issue with my Wordpress installation. I dont know when it happened so maybe someone can help me to find the problem.
Suddenly all my media thumbs are missing. recreation gives me an error. when uploading new files, thumbnails and links are created properly. Permalinks to the imagefiles are broken but i can use the images placed on my website (direct link/gallery). Permalink of broken files is set to WP root.
According to your question it looks that you are making a copy of your website in to new server.
If so then please make sure 2 things.
You have copied your uploads folder.
You have replaced all older link by new link in DB.

Moving WordPress from localhost to a live server

Have successfully moved my WordPress website from my localhost to a live server but the images are not showing and some pages as well. Some pages are still showing the localhost URL while another error message am getting is "That page can't be found".
I already changed my siteurl and Home column in my database table (wp_option) to the live server, but still the images are not showing yet. What should I do?
You have to replace all localhost url in your database.
You should follow the steps below to move your database from local to live server:
Export your database to sql file
Use notepad++ open that sql file
Replace all localhost url to your live domain and save the file
Import the saved file to the live database
Note: make sure that you uploaded all the images to the live server
I would definitely recommend to use an automated plugin for the task. The one I use is Duplicator, by LifeInTheGrid. It is free and works perfectly to move a site from development to production and viceversa. Here is the link to it:
https://wordpress.org/plugins/duplicator/
I use it with all my sites and so far it has worked flawlessly.
I finally discovered a wonderful plugin that did it all.
The plugin is called Velvet Blues Update URLs .
Just Download the package. Extract it to the "plugins" folder of your WordPress directory. In the Admin Panel, go to "Plugins" and activate it.
Go to Tools -> Update URLs to use it and then tick all the boxes to replace the old URLs with the new URLs.

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