Forum

Thread tagged as: Question, Problem, Configuration

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!

Christie Wild

Christie Wild 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

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.

Viewing Diagnostic Information
Diagnostics report
PERCH INFORMATION

Perch: 2.6
Production mode: Production (100)
Installed apps: content (2.6), assets (2.6), categories (2.6)
DB driver: PDO
DB tables: perch2_categories, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup
H1: 98829c6f0576ac1998b9d6b30043b923
L1: 15fa0e6b5d6d3d0e1021e2017f5d9f94
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.6: done
latest_version: 2.5.3
on_sale_version: 2.7.5
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: dbo540159240
PERCH_DB_SERVER: db540159240.db.1and1.com
PERCH_DB_DATABASE: db540159240
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/New_York
PERCH_EMAIL_FROM: wildbike@netzero.net
PERCH_EMAIL_FROM_NAME: Christie Wild
PERCH_LOGINPATH: https://www.christiewrightwild.com/perch
PERCH_PATH: /homepages/35/d469657687/htdocs/Clients/Christie Wright Wild/perch
PERCH_CORE: /homepages/35/d469657687/htdocs/Clients/Christie Wright Wild/perch/core
PERCH_RESFILEPATH: /homepages/35/d469657687/htdocs/Clients/Christie Wright Wild/perch/resources
PERCH_RESPATH: https://www.christiewrightwild.com/perch/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /homepages/35/d469657687/htdocs/Clients/Christie Wright Wild/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
HOSTING SETTINGS

PHP: 5.4.35
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.1.73-log
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, mbstring, mcrypt, mysql, mysqli, PDO, standard, pdo_sqlite, Phar, posix, Reflection, imap, shmop, SimpleXML, soap, mysqlnd, SQLite, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, pdo_mysql, cgi-fcgi
GD: Yes
ImageMagick: No
PHP max upload size: 40M
PHP max form post size: 8M
PHP memory limit: 120M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
REDIRECT_UNIQUE_ID: VKKsQwouks8AAC3wV9gAAAAj
REDIRECT_SCRIPT_URL: /perch/core/settings/diagnostics/
REDIRECT_SCRIPT_URI: https://www.christiewrightwild.com/perch/core/settings/diagnostics/
REDIRECT_DOCUMENT_ROOT: /kunden/homepages/35/d469657687/htdocs/Clients/Christie Wright Wild
REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET: /var/run/ui-fstatd.suexec.socket
REDIRECT_HANDLER: x-mapp-php5.4
REDIRECT_STATUS: 200
UNIQUE_ID: VKKsQwouks8AAC3wV9gAAAAj
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_URI: https://www.christiewrightwild.com/perch/core/settings/diagnostics/
DBENTRY_HOST: christiewrightwild.com
DBENTRY_VALUE: /kunden/homepages/35/d469657687/htdocs/Clients/Christie Wright Wild:d0000#CPU 30 #MEM 61440 #CGI 786762 #NPROC 15 #TAID 73318463 #LANG 3 #PARKING 1 #STAT 1
DBENTRY_DOCROOT: /kunden/homepages/35/d469657687/htdocs/Clients/Christie Wright Wild
DBENTRY_HASH: d0000
DBENTRY__CPU: 30
DBENTRY__MEM: 61440
DBENTRY__CGI: 786762
DBENTRY__NPROC: 15
DBENTRY__TAID: 73318463
DBENTRY__LANG: 3
DBENTRY__PARKING: 1
DBENTRY__STAT: 1
DBENTRY: /kunden/homepages/35/d469657687/htdocs/Clients/Christie Wright Wild:d0000#CPU 30 #MEM 61440 #CGI 786762 #NPROC 15 #TAID 73318463 #LANG 3 #PARKING 1 #STAT 1
HTTP_HOST: www.christiewrightwild.com
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
HTTP_REFERER: https://www.christiewrightwild.com/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: PHPSESSID=b6b8b5127c17c96db375790dba5952d4; cmsa=1
PATH: /bin:/usr/bin
SERVER_SOFTWARE: Apache
SERVER_NAME: christiewrightwild.com
SERVER_ADDR: 198.251.70.7
SERVER_PORT: 80
REMOTE_ADDR: 71.85.70.137
DOCUMENT_ROOT: /kunden/homepages/35/d469657687/htdocs/Clients/Christie Wright Wild
SERVER_ADMIN: webmaster@christiewrightwild.com
SCRIPT_FILENAME: /kunden/homepages/35/d469657687/htdocs/Clients/Christie Wright Wild/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 40203
REDIRECT_QUERY_STRING: extended
REDIRECT_URL: /perch/core/settings/diagnostics/index.php
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
STATUS: 200
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /kunden/homepages/35/d469657687/htdocs/Clients/Christie Wright Wild/perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1419947075.3204
REQUEST_TIME: 1419947075
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

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.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

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?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

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><?php perch_content('Intro'); ?></p> <!--but when I added this second perch_content, everything messed up-->

<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>

Rachel Andrew

Rachel Andrew 394 points
Perch Support

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:

<?php include('perch/runtime.php'); ?>

It worked! Thanks!