Forum
Perch Content not showing on localhost
Hi,
I have a live site that I am doing some dev work on locally. Perch is installed, setup, passes all tests and I can see the content in the database.
However, the Perch content is not shown, only <!-- Undefined content -->. I've checked the paths that I can think of, and the database was imported from the live site with a find/replace on the live domain string to replace it with localhost. Could this be the problem?
Thanks, Rob
The instructions for moving a Perch site are here: https://solutions.grabaperch.com/development/how-do-i-move-a-perch-site
You should not need to do a find and replace at any point. That is highly likely to break something.
Hi Rachel,
Thanks for the reply. I have followed the steps this morning, and imported the db untouched this time around. I also downloaded the site files again to make sure.
I can login to the admin locally, and the content is all in place, but I can't see any of the Perch content on the local site - just blank areas. See below for live content and local home page:
https://www.dropbox.com/s/p59thvk5nybbyut/home-local-site.png https://www.dropbox.com/s/p2f7mfgmxc95a19/home-live-site.png
The live site is livecarhire.com
I have the license set to use localhost as the dev domain (local is https://localhost:888/live-car-hire)
Many thanks, Rob
It looks like you've built the site in a subfolder, so now all your paths will be incorrect.
In the page properties, remove the subfolder and all should be well.
Hi,
Here is what I have in the admin page settings and the full home page, showing URL:
https://www.dropbox.com/s/635wgaqw42pw844/home-local-site-full.png https://www.dropbox.com/s/0935yptoi8nhh2r/admin-home-page.png
It doesn't seem to be using a subfolder?
Thanks, Rob
Great - so is it working now?
No it's still not working - the price table on the local homepage is blank, but the database contains all the info as shown on live (livecarhire.com)
Can you turn on debug and let me know what it outputs at the bottom of the page?
https://docs.grabaperch.com/docs/installing-perch/configuration/debug/
Hi, OK I've added that, please see screenshot: https://www.dropbox.com/s/84k0jwu6sawy61x/diagnostics.png
It looks like the site is still in a
live-car-hire
subfolder. Is it?Is this not permitted? I have the same issue.
localhost:8888/subfolder_name/index.php
This shows no content on the local site.
Production and Staging sites are up and running fine.
Michael, please start your own thread if you have a problem. We can't help two people in one thread without everyone getting confused.
I apologize. I ended up going down the road of using MAMP PRO and setting up virtual hosts like it's been suggested in multiple threads and everything is working fine now.