Forum

Thread tagged as: Problem, Error

Header Errors new install 3.1.1 no errors same page with 2.7.8 version

These errors appear on the v-3.1.1 page but same page with v-2.7.8 no errors what is the problem? <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/content/27/11840027/html/ohioglassmuseum/past-exhibits-gallery3.php:1) in <b>/home/content/27/11840027/html/ohioglassmuseum/new2018ogm/core/lib/PerchUtil.class.php</b> on line <b>1405</b><br /> <br /> <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/content/27/11840027/html/ohioglassmuseum/past-exhibits-gallery3.php:1) in <b>/home/content/27/11840027/html/ohioglassmuseum/new2018ogm/core/lib/PerchUtil.class.php</b> on line <b>1406</b><br /> <br /> <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/content/27/11840027/html/ohioglassmuseum/past-exhibits-gallery3.php:1) in <b>/home/content/27/11840027/html/ohioglassmuseum/new2018ogm/core/lib/PerchUtil.class.php</b> on line <b>1407</b><br /> <br /> <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/content/27/11840027/html/ohioglassmuseum/past-exhibits-gallery3.php:1) in <b>/home/content/27/11840027/html/ohioglassmuseum/new2018ogm/core/lib/PerchUtil.class.php</b> on line <b>1413</b><br />

Perch information Perch: 3.1.1 Production mode: Production (100) Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1) DB driver: PDO DB tables: perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_content_index (0), perch3_content_items (0), perch3_content_regions (0), perch3_menu_items (8), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (0), perch3_pages (0), perch3_resource_log (0), perch3_resource_tags (0), perch3_resources (0), perch3_resources_to_tags (0), perch3_settings (11), perch3_user_passwords (0), perch3_user_privileges (27), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1) Users: 1 App runtimes: <?php $apps_list = [ ]; Editor plug-ins: H1: c80afd7b77f02b30cd94cdc5c831a061 L1: 2ae36cfcf9b5634fa36db1f7c93fd4f3 F1: 3b606135b33e6a102526838f4152a807 headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 0 content_collapseList: 1 lang: en-gb installedAt: 3.1.1 update_3.1.1: done latest_version: on_sale_version: PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: Fronapfels1 PERCH_DB_SERVER: Fronapfels1.db.11840027.34d.hostedresource.net PERCH_DB_DATABASE: Fronapfels1 PERCH_DB_PREFIX: perch3_ PERCH_TZ: UTC PERCH_EMAIL_FROM: ckfsmail@gmail.com PERCH_EMAIL_FROM_NAME: Carol Swinehart PERCH_LOGINPATH: /new2018ogm PERCH_PATH: /home/content/27/11840027/html/ohioglassmuseum/new2018ogm PERCH_CORE: /home/content/27/11840027/html/ohioglassmuseum/new2018ogm/core PERCH_RESFILEPATH: /home/content/27/11840027/html/ohioglassmuseum/new2018ogm/resources PERCH_RESPATH: /new2018ogm/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_RUNWAY_ROUTED: PERCH_STRONG_PASSWORDS: PERCH_ASSET_VERSION: 8255e4c4a367cfa3e2bd PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /home/content/27/11840027/html/ohioglassmuseum/new2018ogm/templates PERCH_TEMPLATE_FILTERS: PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_XHTML_MARKUP: PERCH_RWD: 1 PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_STRIPSLASHES: PERCH_PROGRESSIVE_FLUSH: 1 PERCH_PARANOID: PERCH_FORCE_SECURE_COOKIES: PERCH_DEFAULT_BUCKET: default PERCH_TRANSLATION_ASSIST: PERCH_PASSWORD_MIN_LENGTH: 6 PERCH_MAX_FAILED_LOGINS: 10 PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR PERCH_VERIFY_UPLOADS: PERCH_PRIV_ASSIST: PERCH_CUSTOM_EDITOR_CONFIGS: PERCH_ENABLE_EXIF: 1 PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_APPS_EDITOR_PLUGIN: markitup PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown Hosting settings PHP: 5.4.19 Zend: 2.4.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: 5.5.19 MySQL server: 5.5.43-37.2-log Free disk space: 2.24 TB Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, apc, bcmath, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, json, mbstring, mcrypt, mysql, mysqli, session, PDO, pdo_mysql, pdo_sqlite, standard, pspell, Reflection, Phar, SimpleXML, soap, exif, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, mhash GD: Yes ImageMagick: No PHP max upload size: 32M PHP max form post size: 33M PHP memory limit: 64M Total max uploadable file size: 32M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No TMPDIR: /home/content/27/11840027/tmp PHPRC: /home/content/27/11840027/html/ TEMP: /home/content/27/11840027/tmp PATH: /sbin:/usr/sbin:/bin:/usr/bin PWD: /web/cgi-bin SPI: TRUE TMP: /home/content/27/11840027/tmp PHP_FCGI_MAX_REQUESTS: 100000 SCRIPT_NAME: /new2018ogm/core/settings/diagnostics/index.php REQUEST_URI: /new2018ogm/core/settings/diagnostics/?extended QUERY_STRING: extended REQUEST_METHOD: GET SERVER_PROTOCOL: HTTP/1.1 GATEWAY_INTERFACE: CGI/1.1 REMOTE_PORT: 59980 SCRIPT_FILENAME: /var/chroot/home/content/27/11840027/html/ohioglassmuseum/new2018ogm/core/settings/diagnostics/index.php SERVER_ADMIN: support@secureserver.net CONTEXT_DOCUMENT_ROOT: /var/chroot/home/content/27/11840027/html REQUEST_SCHEME: https DOCUMENT_ROOT: /var/chroot/home/content/27/11840027/html REMOTE_ADDR: 108.66.43.5 SERVER_PORT: 443 SERVER_ADDR: 50.63.32.190 SERVER_NAME: ohioglassmuseum.org SERVER_SOFTWARE: Apache SERVER_SIGNATURE: <address>Apache Server at ohioglassmuseum.org Port 443</address> LD_LIBRARY_PATH: /web/httpd24/lib HTTP_COOKIE: __utmz=120974166.1525798753.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=120974166.606604820.1525798753.1526306587.1526315969.3; cmsa=1; PHPSESSID=sa4kisth4k30tc6kroodjjlt81 HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9 HTTP_ACCEPT_ENCODING: gzip, deflate, br HTTP_REFERER: https://ohioglassmuseum.org/new2018ogm/core/settings/diagnostics/ HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8 HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36 HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_CONNECTION: close HTTP_HOST: ohioglassmuseum.org SSL_TLS_SNI: ohioglassmuseum.org HTTPS: on PARENT_DOCUMENT_ROOT: /var/chroot/home/content/27/11840027/html GD_PHP_HANDLER: x-httpd-php5-4 userlimit_name: 11840027 REAL_USERNAME: o9920906 SUBDOMAIN_DOCUMENT_ROOT: /var/chroot/home/content/27/11840027/html/ohioglassmuseum GD_ERROR_DOC: .errordocs/missing.html XID: 11840027 REAL_DOCUMENT_ROOT: /var/chroot/home/content/27/11840027/html/ohioglassmuseum DOMAIN_NAME: ohioglassmuseum.org SCRIPT_URI: https://ohioglassmuseum.org/new2018ogm/core/settings/diagnostics/ SCRIPT_URL: /new2018ogm/core/settings/diagnostics/ UNIQUE_ID: WxSU4rioLgIAABXvqIgAAAA9 FCGI_ROLE: RESPONDER PHP_SELF: /new2018ogm/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1528075490.0453 REQUEST_TIME: 1528075490 argc: 1

Carol Swinehart

Carol Swinehart 0 points

  • 3 years ago
Simon Clay

Simon Clay 127 points

Hi Carol,

Did you upgrade to Perch 3 in the way described here: https://docs.grabaperch.com/perch/upgrading/ ?

Your server is running PHP 5.4 which is the bare minimum for Perch 3. It may not make a difference, but if you can, I would upgrade to PHP 5.6, or even PHP 7 if possible. PHP 5.4 is now at 'end of life' and even PHP 5.6 is in the 'security fixes only' phase. https://php.net/supported-versions.php

Drew McLellan

Drew McLellan 2638 points
Perch Support

The error is here:

output started at /home/content/27/11840027/html/ohioglassmuseum/past-exhibits-gallery3.php

Check that file, first line.

<?php include('new2018ogm/runtime.php'); ?> Here is the first line what is the problem with this? <!DOCTYPE html> <html lang="en">

These are the lines that are erroring according to the code. What is the Perch SSL -- I have an ssl setup for the site but do I have to set this within Perch and can it take a UCC cert is that the problem?

        /* https://www.owasp.org/index.php/List_of_useful_HTTP_headers */
        header('X-Frame-Options: deny');
        header('X-XSS-Protection: 1; mode=block');
        header('X-Content-Type-Options: nosniff');

        if (defined('PERCH_SSL') && PERCH_SSL) {
            header('Strict-Transport-Security: max-age=31536000; includeSubDomains; preload');
        }

        header_remove('X-Powered-By');
    }
Drew McLellan

Drew McLellan 2638 points
Perch Support

You need to make sure you don't have any white space being output on that first line.