- This topic has 5 replies, 2 voices, and was last updated 6 years, 1 month ago by Tom.
October 17, 2017 at 1:43 pm #405175Charles
I am revamping two separate websites. I recently used and really liked GP Premium for a client, so I bought my own premium copy and I’m going to use it for both of these sites.
I’ve set them up in xampp but I’m having odd linking problems. On both sites, top menu items link properly to localhost, but all of the submenu items link to the live website.
On one of the sites there are no thumbnails visible or localhost website images visible.
On the other one the thumbnails are visible in the Media Library but they don’t appear on the localhost website.
I have a third site setup in xampp which does not use the GP theme it works OK (for the most part – a few random missing images but it’s good enough for a test platform).
I have the following code in wp-config.php:
/** don't log into live site **/ define('WP_HOME','http://localhost/serra/'); define('WP_SITEURL','http://localhost/serra/');
and I even tried this recommendation in httpd-vhosts.conf in xampp:
#this is the first vhost address in XAMPP <VirtualHost *:8080> DocumentRoot "C:/vhost/scoop/" ServerName php.localhost SetEnv NS_ENV variable_value </VirtualHost> #this is the second vhost address in XAMPP <VirtualHost *:8080> DocumentRoot "C:/vhost/serra/" ServerName php.localhost SetEnv NS_ENV variable_value </VirtualHost> #this is the third vhost address in XAMPP <VirtualHost *:8080> DocumentRoot "C:/vhost/pnto" ServerName laravel.localhost </VirtualHost>
scoop is my third non-GP site, serra and pnto are my GP ones.
I’m using a PC Windows 10, and I’ve also ensured that all the files are read/write. I think that covers all of the advice I’ve been able to find about this online.
Any idea how to make this work without doing major recoding? It’s not going to be worth it to have a local build if it will be a nightmare to put it online once it’s ready.
CharlesOctober 17, 2017 at 7:20 pm #405324TomLead DeveloperLead Developer
Have you migrated these sites from one install to another, or are they completely fresh installs?
It sounds like an incomplete migration – as things like menu item links and features images are dealt with internally by WordPress.October 23, 2017 at 8:45 am #408548Charles
Yes, I migrated them from live sites so I can work on them locally. It’s looking like this is not a very practical way to work. It’s taking way too much time to resolve, and what are the problems going to be when I put the revamped site live if it’s this difficult to work on locally.
One of the sites is southeglinton.ca which I refer to in this post about masonry:
I followed all the instructions about creating a local clone online. Basically, changing the wp-config.php file to the local address should point everything there but it doesn’t. I just wondered if GP menu had some hard coded URLs in the backend somewhere.
I could create a clone site on another URL but I was worried about Google picking it up.
CharlesOctober 23, 2017 at 5:58 pm #408760TomLead DeveloperLead Developer
Perhaps try using a plugin to handle the migration for you? These are a couple good ones:
They handle moving the files, database and even update the internal URLs for you.October 24, 2017 at 7:31 am #409089Charles
OK, thanks for your help Tom!
CharlesOctober 24, 2017 at 9:23 am #409263TomLead DeveloperLead Developer
No problem! 🙂
- You must be logged in to reply to this topic.