Forum

Thread tagged as: Error, Comments

Warning after comment submission

After I submit a comment I get the following warning.

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/username/public_html/blog/post.php:1) in /home/username/public_html/perch/core/lib/PerchSession.class.php on line 9

Perch version 2.8.8

Vicki Watson

Vicki Watson 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What's on blog/post.php at line 1?

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

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is there any whitespace being output? Or is the file saved with a BOM?

No whitespace, but it is utf-8 with a bom. Should I save it without?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes please, try without a BOM. BOMs are usually bad news with PHP.

Yes, that seems to have fixed it. Thank you.