Forum

Thread tagged as: Problem, Error

Master Page Error.

hey guys,

Im running into a little bit of an issue with viewing a new page I added through Perch. We set up the master page and are adding sub pages (News Releases) When we complete the page through perch and attempt to view it we get a white screen with:

Warning: include(/home/8972/domains/clients.overtheatlantic.com/html/perch/runtime.php): failed to open stream: No such file or directory in /nfs/c01/h14/mnt/8972/domains/clients.overtheatlantic.com/html/gsa/news-releases/video-transcript.php on line 1

Warning: include(): Failed opening '/home/8972/domains/clients.overtheatlantic.com/html/perch/runtime.php' for inclusion (include_path='.:/usr/local/php-5.5.21/share/pear') in /nfs/c01/h14/mnt/8972/domains/clients.overtheatlantic.com/html/gsa/news-releases/video-transcript.php on line 1

Everything in Perch seems to be working fine, we can even see the pages we created come up on our server. Its only when we view the pages through a browser we seem to be having the problem.

My Diagnostic Report seems to be fine with green check marks all the way and this:

Perch: 2.8.24, PHP: 5.5.21, MySQL: 5.1.73, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.24), assets (2.8.24), categories (2.8.24)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_LOGINPATH: /gsa/perch
PERCH_PATH: /nfs/c01/h14/mnt/8972/domains/clients.overtheatlantic.com/html/gsa/perch
PERCH_CORE: /nfs/c01/h14/mnt/8972/domains/clients.overtheatlantic.com/html/gsa/perch/core
PERCH_RESFILEPATH: /nfs/c01/h14/mnt/8972/domains/clients.overtheatlantic.com/html/gsa/perch/resources
Image manipulation: GD
PHP limits: Max upload 64M, Max POST 64M, Memory: 99M, Total max file upload: 64M
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
Resource folder writeable: Yes
HTTP_HOST: clients.overtheatlantic.com
DOCUMENT_ROOT: /home/8972/domains/clients.overtheatlantic.com/html
REQUEST_URI: /gsa/perch/core/settings/diagnostics/
SCRIPT_NAME: /gsa/perch/core/settings/diagnostics/index.php

the site is currently in a sub folder /gsa/ on our clients site.

Any help at this point would be appreciated.

MATTHEW URSO

MATTHEW URSO 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

That looks like your Perch Include is incorrect.

Can we see the Master Page code?


<?php if (!defined('PERCH_RUNWAY')) include($_SERVER['DOCUMENT_ROOT'].'/perch/runtime.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><?php perch_pages_title(); ?> | Greater Sudbury Airport</title> <link rel="icon" type="image/png" href="../gfx/favicon.png"/> <!-- Viewport fix OS/CHROME/IE --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <!-- Open Graph data -->

Here is the perch run time from the master page. Let me know if you'd like to see the full file.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you are developing in a subfolder (which we wouldn't advise) you need to correct your include to include the subfolder path.