Forum
Perch Content not appearing in the Editor
I have the following PHP and the content tag is not being picked up by Perch. I have to include the initial / on the first line of PHP to get the page working.
What am I doing wrong?
<?php include('/perch/runtime.php'); ?> <!doctype html> <html class="no-js" lang="en">
<head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Home | Music For your Event</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="site.webmanifest"> <link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> <meta name="theme-color" content="#ffffff"> <!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css"> </head>
<body> <!--[if lte IE 9]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p> <![endif]-->
<!-- Add your site or application content here --> <header> <nav role="navigation"> <button id="toggle" aria-expanded="false">Menu</button> <ul id="menu"> <li class="active" > <a href=""> Home </a> </li> <li> <a href="about-us.html"> About Us </a> </li> <li> <a href="gallery.html"> Gallery </a> </li> <li> <a href="reviews.html"> Reviews </a> </li> <li> <a href="events.html"> Events </a> </li> <li> <a href="contact.html"> Contact </a> </li> </ul> </nav> <h1> Joanne </h1> </header> <section> <h1> All your Music Needs </h1> <?php perch_content('Home'); ?> </section> <footer>
</footer> <script src="js/vendor/modernizr-3.6.0.min.js"></script> <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script> <script src="js/plugins.js"></script> <script src="js/main.js"></script> <script src="js/menu.js"></script>
</body>
</html>
Michael,
try this
<?php include($_SERVER['DOCUMENT_ROOT'].'/perch/runtime.php'; ?>
Hi Robert, tried that and that doesn't change the CMS issue and makes the page give a HTTP Error 500
Can you please post your diagnostic report from the admin settings page.
Hi Robert
The basci is:
Health check
Summary information
The extended is:
Perch information
Hosting settings
Hi Robert,
When looking at these II noticed that my host was using PHP 5.6.38.
Updated this to 7.2.11 (something my host allows), and it is now working.
I noticed that there is an error about the setup folder still being in place, should I just delete this?
Thanks for youe help Robert.
Yes, Delete the setup folder as this is no longer needed. The setup is pretty secure in that it will not create a problem, but as per the setup instructions you should delete it once your able to login to your perch installation.
Many thanks. Am busy creating pages etc. at the moment. Thanks