Trouble Displaying Local Images
Posted by: cjhawk7 (---.ph.ph.cox.net)
Date: July 23, 2022 01:17AM

Hi, I have my WAMP database up and running but am unable to get any images to display correctly. I'm using Pantheon web hosting and exported the database files (images), which is a tar.gz file, into what I think is the correct local Wordpress directory. When I inspect the broken images I'm getting a path which is the name of my virtual localhost plus where the images should be locally.

[zinpro-wp]


The portion after "uploads" in the path doesn't exist locally and is referring to the url on the server. How can I get it to point to the tar.gz file that is currently in the "uploads" directory instead of trying to pull what is on the server? Not sure if I'm not looking at this correctly, and this might be more of a Wordpress problem than it is an issue with WAMP, but any insight would be much appreciated.

Options: ReplyQuote
Re: Trouble Displaying Local Images
Posted by: cjhawk7 (172.58.78.---)
Date: July 23, 2022 01:54AM

Nevermind, figured it out. Had to extract the tar files in the directory, twice. I like how they just assume you understand to do this in all the documentation I could find.

Options: ReplyQuote
Re: Trouble Displaying Local Images
Posted by: Otomatic (Moderator)
Date: July 23, 2022 09:26AM

Hi,

WordPress puts the base url of the site in the database. So, for any transfer of a WordPress site, whether local or to another host, the database must be modified to reflect the current base url.

It is at WordPress that you have to ask what to do exactly.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.9 32 bit - Apache 2.4.54 - PHP 8.1.8…5.6.40 - MySQL 5.7.39 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.9 64 bit - Apache 2.4.54 - PHP 8.1.8…5.6.40 - MySQL 5.7.39/8.0.30 - MariaDB 10.5.15/10.7.3
PhPMyadmin 5.1.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Trouble Displaying Local Images
Posted by: cjhawk7 (---.ph.ph.cox.net)
Date: July 26, 2022 05:51PM

Okay, thank you.

Options: ReplyQuote


Sorry, only registered users may post in this forum.