Forum

Thread tagged as: Problem, Error, Configuration

Warning: Cannot modify header information - headers already sent by (output star...

After last week security breach, we’ve update all clients that are on Perch. However, for two of our sites we had en error showing after the udate. The only similarities we found, that aren’t on the other sites is that both these sites have vimeo videos on them. The error message:

Warning: Cannot modify header information - headers already sent by (output started at url-removed/index.php:2) in url-removed/perch/core/lib/PerchUtil.class.php on line 1174

Warning: Cannot modify header information - headers already sent by (output started at url-removed/index.php:2) in url-removed/perch/core/lib/PerchUtil.class.php on line 1175

Warning: Cannot modify header information - headers already sent by (output started at url-removed/index.php:2) in url-removed/perch/core/lib/PerchUtil.class.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at url-removed/index.php:2) in url-removed/perch/core/lib/PerchUtil.class.php on line 1182

Any idea how to fix this?

Dan Andersen

Dan Andersen 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What's on url-removed/index.php at line 2?

Hi Drew

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

<!DOCTYPE html>
<?php include('perch/runtime.php');?>
<html lang="en">
<head>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Change that to:

<?php include('perch/runtime.php');?>
<!DOCTYPE html>
<html lang="en">
<head>

Thanks Drew!

So it seems it had nothing to do with the vimeo plugin. So I changed the post title.

Jon H

Jon H 0 points

Hi Drew, I'm having the same problem?

Warning: Cannot modify header information - headers already sent by (output started at /Users/Jon/Sites/demo/index.php:1) in /Users/Jon/Sites/demo/perch/core/lib/PerchUtil.class.php on line 1174

Line 1 is

<?php include('cms/runtime.php');?>
<!DOCTYPE HTML>