Forum

Thread tagged as: Problem, Error

upgraded to Perch v2.8.24 - Error with runtime include

Deleted old core folder and uploaded new core folder - Perch v2.8.24. Everything works OK in Perch but getting following error on all pages (Runtime include on each page):

Warning: Cannot modify header information - headers already sent by (output started at /home/sixmilecreek1485/public_html/index.php:45) in /home/sixmilecreek1485/public_html/perch/core/lib/PerchUtil.class.php on line 1184

Warning: Cannot modify header information - headers already sent by (output started at /home/sixmilecreek1485/public_html/index.php:45) in /home/sixmilecreek1485/public_html/perch/core/lib/PerchUtil.class.php on line 1185

Warning: Cannot modify header information - headers already sent by (output started at /home/sixmilecreek1485/public_html/index.php:45) in /home/sixmilecreek1485/public_html/perch/core/lib/PerchUtil.class.php on line 1186

Warning: Cannot modify header information - headers already sent by (output started at /home/sixmilecreek1485/public_html/index.php:45) in /home/sixmilecreek1485/public_html/perch/core/lib/PerchUtil.class.php on line 1192

I tried a few simple things, deleting white space, but no luck.

Thanks for any help

Diagnostics report
HEALTH CHECK

PHP 5.4.45 version is okay, but a little out of date. Consider updating soon.
MySQL 5.0.96-log is up to date
Image processing available
File upload size is low. You can only upload files up to 2M.
SUMMARY INFORMATION

Perch: 2.8.24, PHP: 5.4.45, MySQL: 5.5.45, with MySQLi
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.24), assets (2.8.24), categories (2.8.24), perch_gallery (2.5.1)
App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/sixmilecreek1485/public_html/perch
PERCH_CORE: /home/sixmilecreek1485/public_html/perch/core
PERCH_RESFILEPATH: /home/sixmilecreek1485/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /home/sixmilecreek1485/public_html
HTTP_HOST: sixmilecreek.com
Dan Yokum

Dan Yokum 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What's on public_html/index.php at line 45?

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

Drew McLellan

Drew McLellan 2638 points
Perch Support

You'll want to move that right up to the top. Line 1 would be ideal.

Thanks!! Easy fix. All works now!