Forum
Beginner Getting Started
This video https://docs.grabaperch.com/video/v/editing-content/ explains how to insert your first editable content region. I made it to this step: Save the page and reload it in your browser – the content will disappear. But when I get to this step: Save the region, switch back to your site and reload and your content should be there. the reload does nothing. The content I add in Perch does not show up on the page. It stays blank.
What am I missing? The videos and documentation are not very helpful to me. I know I must be missing something simple, but I don't know what I am looking for. If you need to ask me more questions to get more info so that you can help me, then please do!
Please show us your Diagnostics Report, which you can find under Settings in the Perch Control Panel.
Here is a copy/paste of the diagnostics.
Does your page have a
.php
file extension?I don't think so. Not yet. Wouldn't that mess with the URL? If not, what's the difference? Do I need both files of .html and .php for each page? If not, will the .html links even work then? Will I have to change every internal link? There's a lot! My test/practice site is www.christiewrightwild.com Do I make the file home.html or home.php? If I have it saved as home, will I need to change it to index? So, if someone goes to my site, will it automatically say www.christiewrightwild.com/index.php? I just typed that in and the stuff I put into the perch dashboard showed up. So if I change the file ext to php, and upload it to my server, then it should show automatically? Will the changes in Perch always show up on the files stored on the server?
Any tips for how to easily change all the extensions in the larger site of 18 pages for my friend?
Any other tips for where to put the perch "commands" for each page and the regions. I'm not sure how to set those up.
Your pages need to be parsed as PHP, so they either need a .php extension or you need to use an .htaccess file to allow .html pages to be parsed as PHP.
Information is in the documentation: https://docs.grabaperch.com/docs/adding-perch/file-extensions/
Most of your questions will be answered by following the video tutorial, I've linked to that in one of your other threads.
Thank you so much, Rachel!
On my simple test site to try to learn Perch, I have created 5 pages, all with the .php extension. When I uploaded it to the server, this error shows.
Fatal error: Call to undefined function perch_content() in /homepages/35/d469657687/htdocs/Clients/Christie Wright Wild/books.php on line 39
Line 39 says this: <h1><?php perch_content('Intro'); ?></h1>
It worked before, so I don't know what I did to make it go haywire.
Could I add you as a user, Rachel, to my perch site so you could look at it? Would that be helpful at all?
That sounds like your Perch include is incorrect. Please show us all of the code for your page.
<?php include('../perch/runtime.php'); ?> <html xmlns="https://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Christie Wright Wild</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="icon" href="favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="christie.css" /> </head> <body> <div id="wrapper"> <!--HEADER--> <header><br />Â <img src="images/grungeC.jpg" alt="C" width="50" height="50" /> <img src="images/grungeH.jpg" alt="H" width="50" height="50" /> <img src="images/grungeR.jpg" alt="R" width="50" height="50" /> <img src="images/grungeI.jpg" alt="I" width="30" height="50" /> <img src="images/grungeS.jpg" alt="S" width="50" height="50" /> <img src="images/grungeT.jpg" alt="T" width="50" height="50" /> <img src="images/grungeI.jpg" alt="I" width="30" height="50" /> <img src="images/grungeE.jpg" alt="E" width="50" height="50" /> Â <img src="images/grungeW.jpg" alt="W" width="70" height="50" /> <img src="images/grungeR.jpg" alt="R" width="50" height="50" /> <img src="images/grungeI.jpg" alt="I" width="30" height="50" /> <img src="images/grungeG.jpg" alt="G" width="50" height="50" /> <img src="images/grungeH.jpg" alt="H" width="50" height="50" /> <img src="images/grungeT.jpg" alt="T" width="50" height="50" /> Â <img src="images/grungeW.jpg" alt="W" width="70" height="50" /> <img src="images/grungeI.jpg" alt="I" width="30" height="50" /> <img src="images/grungeL.jpg" alt="L" width="50" height="50" /> <img src="images/grungeD.jpg" alt="D" width="50" height="50" /> </header> <hr> <!--NAV-->
<!--CONTENT--><br /><br /> <center><img src="images/Christie.jpg" alt="Christie" width="110" height="170" /><center><br />
<h1><?php perch_content('Intro'); ?></h1> <!--this one used to work and showed my perch intro section. This is line 39-->
<p><a href="books.php">BOOKS</a> <a href="books/Mysteries.php">Mysteries</a> <a href="books/Christian.php">Christian</a> <a href="contact.php">Contact</a></p>
<br /><br /><br />
<!--FOOTER-->
<footer id="copyright"><center> <br /> All rights reserved. | <a href="https://www.writethenextbook.com" target="_blank">Write the Next Book Web Designs</a> | Copyright © 2014 </center></footer><br /> </div> <br /> </body> </html>
If that page is in the root of your site then the Perch include is incorrect. If the page is in the root then the include needs to be:
It worked! Thanks!