Forum
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" />
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
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.
Code you requested
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.
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
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.