404 Error on Images Locally with WAMP/phpMyAdmin - wordpress

I recently set up a WAMP server using phpMyAdmin and am having issues displaying images pulled from my website hosted via Pantheon. I've got everything running fine, but the images will not display.
I've exported my website's database via Pantheon and imported with phpMyadmin and the theme loads correctly, but not any images. It's running on WordPress as well. I've tried to find specific examples of this happening, but I'm not sure what the deal is. Any information would be appreciated.

If i get it right you exported you wp site and imported it at a local machine ?
Have you checked / changed the site url in wp ?
If in wp the site url dont match the real url the links to the files can get broken ..
Look at our site code in browser and there you should find the image link to see what wp realy try to load.

Solved. Had to extract the contents of the .tar file into the "uploads" directory, twice. There was no explanation to do this in any of the documentation I could find, I didn't understand how .tar files work.

Related

WordPress Images not loading after migration

I'm facing a problem the last couple of days and I can't figure it out. We changed the hosting company and move our website (same domain name) to another hosting provider. After migration, images not loading, and I can see them broken in WordPress's Media Library.
I tried to change the permissions in the upload folder but that didn't worked. SSL is also working as expected. I disabled all the plugins and even changed the theme, but the problem still persists. I re-uploaded all the backup files again to make sure that I wasn't missing something, but the problem haven't been solved.
I also have the support team from the hosting provider that works on the website, but there's been 2 days now and they can't find a way to solve the issue.
In the browser's Search Console I do see the following errors: https://ibb.co/y0KCmHY
I've also checked the DNS settings in CloudFlare to make sure that I have setup everything correctly.
Any help will be much appreciated!
I am no wordpress expert but I think I would first check whether image files in your backup files are not damaged/corrupted.
I would check both your backup files and image files in your new hosting server
(download image files from your new hosting server via FTP)
Sorry I couldn't help you much except where to look at first which you might already know.
From the image that you've provided, what I can tell the status is 404 like you know which means your image is not found. Something wrong with all your image URL. You need to make sure the URL is correct for each image you have.

Wordpress: Media file URL broken due to Duplicator Plugin on localhost

I have downloaded a copy of the website on my local pc using Wordpress Duplicator plugin.
Everything is working fine But images are not visible. So I checked with the URL structure and I got the problem.
URL Structure should be: localhost/sitename/wp-content/......
Actual Structure: localhost/sitename/C:/wamp64/www/sitename/wp-content/....
I have tried using many plugins for URL replacement but no luck. Is there any issue with the Duplicator Plugin??
While setting up project simply make sure, on step 3 left the path blank.
I have read this some where. Try this.

Moving Wordpress website from Localhost to Server

I have a problem with moving my wordpress website from Localhost to Webserver .. In the server, I have an old website (wordpress to) .. so when i finished uploading the website I edited the wp-options siteurl and wp-posts guid from "Localhost:4455/ruepress" to "mydomain.com/ruepress2" because i have already another website exactly in the public_html directory .. when i enter to my website it loads the page but some pictures doesn't appear .. and when i click on an articles it redirects me to the old website and it shows the coming soon page (because i made the old website on under-construct mode) .. so whats the problem ? i think the problem is in the siteurl but I changed it ?
+1 for:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
However, if you do not wish to use that rout for any reason, I can suggest an easier option:
On your local site, install this plug-in:
https://wordpress.org/plugins/duplicator/
Next, generate a Duplicator package (via the plug-in's menu on wp-admin dashboad).
Once the package is generated, download the two package files (installer.php and the archive/zip file) to some folder on your PC. Next, upload these two files to the live site folder where you wish to create the site. Next, open the following link in your browser:
http://{your_domain}/{folder}/installer.php
and follow on-screen instructions. Your site should get created and everything should work fine.
This is a very common issue. You have to change all URLs in the database, not just wp_options, i.e. in post/page content, widgets, theme options. and more.
Try interconnectit.com WordPress Serialized PHP Search Replace Tool. It's specifically made for this. And see Moving WordPress « WordPress Codex, which mentions the same Interconnect script.
Use the developer tools in Firefox (or Firebug) or Chrome or Safari or IE to check the path of the missing images before and after using the script.

WP CSS problems / Url Problems

I've got some problemes with my WP.
I've got a distant web site and I need to modify it. So i copy it on a wamp server to work on local.
Problemes are coming ^^
First when i go into localhost/my_site/wp-admin and I log myself no css are loading, and workpress is new for me so it's a little bit difficult to doing that without css.
Second when i click on a link in my local web site I've got 2 time the url.
I mean : 127.0.0.1/my_site/127.0.0.1/my_site/mypageIneed.
And obviously that doesn't work.
EDIT
I fix the CSS problems
If you already downloaded database and all files from your cpanel and everything is settled up on your localhost including database import. Just search this plugin online and place it to your root directory "Search-Replace-DB-master" run it on your browser and change all the links ( Ex. www.xyz.com/ to localhost/newsite/ ) . Good Luck !!

Wordpress media upload : Error 500

When I try to upload images on multiple WP websites hosted on a particular server, via the Flash uploader, I get a HTTP Error written in red.
I know that this is a common problem, but the common solutions don't work for me. This is why I try to ask it as a new question.
Here is what I tried so far :
Fresh WP copy
Folder / file permissions on wp-content/uploads and .htaccess
Delete .htaccess
Switch to Regular uploader which leads me to a Internet Server Error 500 when I try to upload files
Switch theme
Disable all plugins
The mod_security fix
Tested the site on my local server, and it did work correctly but I have no idea why.
Thank you!

Resources