Forum

Thread tagged as: Problem, Installation, Configuration

is there a patch for PerchUtil.class.php on line 1174, 1175, 1176, 1182

error

Warning: Cannot modify header information - headers already sent by (output started at /home/content/27/11840027/html/rjwaste.com/index1.php:1) in /home/content/27/11840027/html/rjwaste.com/rjwaste_update/core/lib/PerchUtil.class.php on line 1174

What causes this. I have the correct code in page Where am I repeating the headers. Other pages with this same code, run on the system. Can't see where the code is incorrect

Here is the lines from the PerchUtil.class.php perhaps those are wrong

 1171 static function set_security_headers()
1172    {
        /* https://www.owasp.org/index.php/List_of_useful_HTTP_headers */
1173        header('X-Frame-Options: deny');
1174        header('X-XSS-Protection: 1; mode=block');
1175        header('X-Content-Type-Options: nosniff');

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

1179        header_remove('X-Powered-By');
1180    }

Could this have something to do with the ssl on the site?

<?php include('rjwaste_update/runtime.php');?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>RJ Waste & Recovery Charlotte NC</title>
<meta name="description" content="Waste and recycling services in Charlotte and surrounding area by RJ Waste" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/foundation/6.2.4/foundation.min.css">
<link href='https://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Bree+Serif" rel="stylesheet">
<link href="css/flexslider2017.css" rel="stylesheet" type="text/css" />
Carol Swinehart

Carol Swinehart 0 points

  • 4 years ago

Likely you have an empty space before the XX phone XX perch code or your file is saved as wrong encoding. Trust me, perch util method isn't the problem.

EDIT: Sorry, there was a spelling error, phone mis-corrected.

Before the phone code? What encoding is it supposed to be?

Tried to go into one of the Perch pages and use their encoding, still not working. Used the same encoding on my other sites that are working, still not working.

page at rjwaste.com/index1.php test page

Rachel Andrew

Rachel Andrew 394 points
Perch Support

This isn't an issue with the Perch class.

Please post your code and your Diagnostics Report.

Since the Godaddy account is on an old server, I added the highest previous version that worked on that server for this site. Thus, the old version. But I know this version works for sure.

I copied code from another working site so I can't understand why it is not working on this site.

HEALTH CHECK

Perch is out of date. You are running Perch 2.8.18 and the latest is 2.8.34. Update instructions
PHP 5.3.24 is very out of date. More info
MySQL 5.5.43-37.2-log is up to date
Image processing available
SUMMARY INFORMATION

Perch: 2.8.18, PHP: 5.3.24, MySQL: 5.5.19, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.18), assets (2.8.18), categories (2.8.18)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_LOGINPATH: /rjwaste_update
PERCH_PATH: /home/content/27/11840027/html/rjwaste.com/rjwaste_update
PERCH_CORE: /home/content/27/11840027/html/rjwaste.com/rjwaste_update/core
PERCH_RESFILEPATH: /home/content/27/11840027/html/rjwaste.com/rjwaste_update/resources
Image manipulation: GD Imagick
PHP limits: Max upload 32M, Max POST 33M, Memory: 256M, Total max file upload: 32M
Resource folder writeable: Yes
HTTP_HOST: rjwaste.com
DOCUMENT_ROOT: /var/chroot/home/content/27/11840027/html
REQUEST_URI: /rjwaste_update/core/settings/diagnostics/
SCRIPT_NAME: /rjwaste_update/core/settings/diagnostics/index.php

Code you requested

<?php include('rjwaste_update/runtime.php');?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>RJ Waste & Recovery Charlotte NC</title>
<meta name="description" content="Waste and recycling services in Charlotte and surrounding area by RJ Waste" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/foundation/6.2.4/foundation.min.css">
<link href='https://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Bree+Serif" rel="stylesheet">
<link href="css/flexslider2017.css" rel="stylesheet" type="text/css" />
<style>
 body{background-color: #f2f2f2; /* #eeeedd; #ebe0ce; */}
 ul menu a{color:#ff3d81;background-color:#797763;font-weight:900;text-decoration:none;line-height:inherit;cursor:pointer}a:focus,a:hover{background-color:#ff3d81;color:#fff;}
a{font-weight:900;color:#ff3d81;}
 ul menu a{color:#fff;font-weight:900;text-decoration:none;line-height:inherit;cursor:pointer}
ul menu a:focus,a:hover{color:#fff;background-color:#ffed81;}
a:link{color:#ffed81;font-weight:900;}
header a:link{color:#ff3d81;font-weight:900;}
header a:visited{color:#ff3d81;font-weight:900;}
header a:hover{color:#fff;background-color:#ff3d81;}
a:visited{color:#ff3d81;font-weight:900;}
a:hover {color:#000;font-weight:900;}
h1 {font-size:40px;color:#000;font-family: 'Bree Serif', serif;}
h2 {font-size:25px;color:#fff;font-family: 'Bree Serif', serif;}
h3 {font-size:20px;color:#000;font-family: 'Bree Serif', serif;}
.callout.primary{background-color:#ff3d81;}
img {border-radius:10px;}
.button{background-color:#000;border-radius:10px;}
.button a:hover{background-color: gray;color:#000;}
header ul menu a{color:#ff3d81;background-color:font-weight:900;text-decoration:none;line-height:inherit;cursor:pointer}a:focus,a:hover{background-color:#ff3d81;color:#fff;}
a{font-weight:900;color:#ff3d81;}
</style>
<script type="text/javascript" src="https://rjwaste.com/contact-files/contact-form.js"></script>
</head>
<body>
<div id="fb-root"></div>
<header>
<div class="title-bar" data-responsive-toggle="main-menu" data-hide-for="medium" style="background-color:#10110c;">
<button class="menu-icon" type="button" data-toggle></button>
<div class="title-bar-title">Menu</div>
</div>
<div class="top-bar" id="main-menu">
<ul class="menu vertical medium-horizontal expanded medium-text-center" data-responsive-menu="drilldown medium-dropdown" style="color:#ff3d81;a:link:#ff3d81; a:visited:#ff3d81;a:hover:#000;">
<li class="has-submenu"><a href="index.php">HOME</a></li>
<li class="has-submenu"><a href="about-rjwaste.php">ABOUT</a></li>
<li class="has-submenu"><a href="contact-rjwaste.php">CONTACT</a></li>

<li class="has-submenu"><a href="industrial-waste-services.php">INDUSTRIAL</a></li>
<li class="has-submenu"><a href="residential-waste-recycling.php">RESIDENTIAL</a></li>
<li class="has-submenu"><a href="commercial-waste-recycling-services.php">COMMERCIAL</a></li>
</ul>
</div>
<div class="row expanded column" style="background-color:#f53381;"> 
<br/>
<div class="large-4 medium-12 small-12 columns">
<a href="https://rjwaste.com"><img src="images/recyclesymbolonpink.PNG" alt="RJ Waste and Recovery" style="float:left;"></a> <h1 style="color:#fff;">RJ Waste & Recovery</h1> 
 </div>
 <div class="large-4 medium-6 small-12 columns" style="background-color:#f53381;"> 
<h2 style="text-align:center;font-size:30px;font-weight:900;">704 372-3901</h2>
<div style="text-align:center;font-weight:900;color:#000;">Charlotte, NC & Surrounding Areas</div>
</div>
<div class="large-4 medium-6 small-12 columns">
<div style="display:block;margin-left:auto;margin-right:auto;">
<div class="button" style="background-color:#000;border-radius:10px;"><h2><a href="estimate.php">Get Free Estimate</a></h2></div>
</div></div></div>
</header>
<div class="row expanded column" style="background-color: #000;">
<h2 style="color:#fff;font-size:30px;text-align: center;opacity:1.0;font-weight:900;background-color:#000;">LET's TALK TRASH!!!</h2>
</div>
<br>
<div class="row">
<div class="medium-8 columns">
<div class="orbit" role="region" aria-label="<!-- Undefined content: arialabel -->" data-orbit data-use-m-u-i="false">
        <ul class="orbit-container"  style="margin-right:20px;">
          <button class="orbit-previous" aria-label="previous"><span class="show-for-sr">Previous Slide</span>◀</button>
          <button class="orbit-next" aria-label="next"><span class="show-for-sr">Next Slide</span>▶</button>
         <li class="is-active orbit-slide">
            <div>
             <img src="images/rockbridgefix.jpg" alt="Rockbridge OH" style="-moz-box-shadow: 10px 10px 5px #ccc; -webkit-box-shadow: 10px 10px 5px #ccc; box-shadow: 10px 10px 5px #ccc; -moz-border-radius:25px; -webkit-border-radius:25px; border-radius:25px;">          

            </div>
          </li>
          <li class="orbit-slide">
            <div>
               <img src="images/groovesWRfixedsm.jpg" alt="Glacial Grooves Putin Bay Ohio" style="-moz-box-shadow: 10px 10px 5px #ccc; -webkit-box-shadow: 10px 10px 5px #ccc; box-shadow: 10px 10px 5px #ccc; -moz-border-radius:25px; -webkit-border-radius:25px; border-radius:25px;">
            </div>
          </li>
          <li class="orbit-slide">
            <div>
               <img src="images/OHgeoMap3fixed.jpg" alt="OH Geologic Map" style="-moz-box-shadow: 10px 10px 5px #ccc; -webkit-box-shadow: 10px 10px 5px #ccc; box-shadow: 10px 10px 5px #ccc; -moz-border-radius:25px; -webkit-border-radius:25px; border-radius:25px;">
               </div>
          </li>
          <li class="orbit-slide">
            <div>
              <img src="images/trilobite3fix.jpg" alt="Trilobite" style="-moz-box-shadow: 10px 10px 5px #ccc; -webkit-box-shadow: 10px 10px 5px #ccc; box-shadow: 10px 10px 5px #ccc; -moz-border-radius:25px; -webkit-border-radius:25px; border-radius:25px;">
            </div>
          </li>
        </ul>
        <nav class="orbit-bullets">
         <button class="is-active" data-slide="0"><span class="show-for-sr">First slide details.</span><span class="show-for-sr">Current Slide</span></button>   
         <button data-slide="1"><span class="show-for-sr">Second slide details.</span></button>   
         <button data-slide="2"><span class="show-for-sr">Third slide details.</span></button>   
         <button data-slide="3"><span class="show-for-sr">Fourth slide details.</span></button>

       </nav>
      </div>    
</div>
<div class="medium-4 columns">
<p style="line-height:1.5;font-size:20px;"><div style="text-align:center;font-weight:900;color:#000;">Fast & Affordable Service</div></p>
<p style="line-height:1.5;font-size:18px;">For fast, reputable and affordable waste and recycling services choose</p>
<p style="line-height:1.5;font-size:30px;"><div style="text-align:center;font-weight:900;color:#000;">RJ Waste and Recovery</div></p>
<p style="line-height:1.5;font-size:18px;">We make container and portable toilet rentals simple, cost-effective and convenient.</p>
</div>
</div>
<hr>
<div class="row column">
<h4 style="font-size:20px;font-weight:bold;text-align:center;"><br /><br />Dumpsters, Containers, Compactors and Portable Toilets<br /><br /></h4>
</div>
<hr>
<div class="row small-up-1 medium-up-3 large-up-3">
<div class="column">
<?php perch_content('image construction'); ?>
</div>
<div class="column">
<?php perch_content('image residential'); ?>
</div>
<div class="column">
<?php perch_content('image commercial'); ?>
</div>
</div>
<div class="row column">
<h3 style="font-size:18px;font-weight:bold;background-color:#000;" class="text-center">Why Choose RJ Waste and Recovery?</h3>
</div>
<hr>
<br>
<div class="row small-up-1 medium-up-2 large-up-4">



<br />
<h3 style="font-size:16px;background-color:#505050;font-color:#fff;" class="text-center">Executive Committee Meetings - <a href="execcommittee.php">Click Here</a></h3>
</div>
<div class="large-5 medium-12 small-12 columns">
<div class="fb-page" data-href="https://www.facebook.com/aipgohiosection" data-tabs="timeline" data-width="380" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/aipgohiosection" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/aipgohiosection">American Institute of Professional Geologists Ohio Section</a></blockquote></div>
</div>
</div>
<div class="row expanded ">
<div class="large-12 columns slider">
        <div class="flexslider carousel">
          <ul class="slides">
            <li>
                <a href="https://edrnet.com/"><img src="images/logos/edr.jpg" alt="EDR" /></a>
                </li>
                <li>
                <a href="https://www.alsglobal.com/Our-Services/Life-Sciences/Environmental"><img src="images/logos/ALS_logo_color.jpg" alt="ALS" /></a>
                </li>
                <li>
                <a href="https://www.terracon.com/"><img src="images/logos/terran50.jpg" alt="Terran Corp" /></a>
                </li>
                <li>
                <a href="https://www.coxcolvin.com/"><img src="images/logos/coxcolvin.jpg" alt="Cox Colvin" /></a>
                </li>
            <li>
                <a href="https://www.geo-ces.com/"><img src="images/logos/geochemicaltesting.jpg" alt="CES" /></a>
                </li>
                <li>
                <a href="https://www.soilrecycling.com/"><img src="images/logos/OHsoilRecycling.jpg" alt="Ohio Soil Recycling" /></a>
                </li>
                <li>
                <a href="https://www.pathwayscu.com/"><img src="images/logos/Pathwayslogo.jpg" alt="Pathways" /></a>
                </li>
                <li>
                <a href="https://www.cecinc.com/"><img src="images/logos/CEClogo.jpg" alt="CEC" /></a>
                </li>
            <li>
                <a href="https://www.envirocore.com/"><img src="images/logos/envirocorelogo.jpg" alt="Enviro Core" /></a>
                </li>
                <li>
                <a href="https://www.pacelabs.com/"><img src="images/logos/PaceAnalytical.jpg" alt="Pace" /></a>
                </li>
                <li>
                <a href="https://www.envfield.com/"><img src="images/logos/EFSLogo.jpg" alt="EFS" /></a>
                </li>
                <li>
                <a href="https://www.burgessniple.com/"><img src="images/logos/Burgess_Niple.jpg" alt="Burgess and Niple" /></a>
                </li>
          </ul>
          <br /><br /><br /><br />
        </div>

</div></div>
<div class="row expanded">
<div class="medium-12 columns">
<br /><br />
<ul class="text-center">
<li class="menu-text">Copyright © AIPG Ohio Section<br /><br />CKFS <a href="https://ckfswebpagedesign.com">Web Page Design, LLC</a></li>
</ul>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdn.jsdelivr.net/foundation/6.2.4/foundation.min.js"></script>
<script>
      $(document).foundation();
    </script>

<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.min.js">\x3C/script>')</script>

  <!-- FlexSlider -->
  <script defer src="js/jquery.flexslider.js"></script>

  <script type="text/javascript">
    $(function(){
      SyntaxHighlighter.all();
    });
    $(window).load(function(){
      $('.flexslider').flexslider({
        animation: "slide",
        animationLoop: false,
        itemWidth: 210,
        itemMargin: 5,
        pausePlay: true,
        start: function(slider){
          $('body').removeClass('loading');
        }
      });
    });
  </script>
<script src="js/flexslider2017.js"></script>


</body>
</html>

Tried the <html> tag with encoding information but that did not work either.

Don't understand why this site will not work and others do.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't think there's any reason not to update between 2.8.18 and 2.8.34

Check that the file isn't saved with a BOM.

According to your specs 2.8.34 requires 5.4, is there a place to download 2.8.33

Drew McLellan

Drew McLellan 2638 points
Perch Support

Where are you reading that?

Perch 3 will require PHP 5.4, but 2.8.x requires 5.3 only.

Solved copied file to notepad and loaded it up again all was fixed. Before that I loaded the newest version. So one thing is fixed. All of a sudden can't login in.