Having some script errors

I got a few script errors on Dolphin 7 final. :(


1. This error shows when I click the "next" or "previous" button in friends block on profile page.

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/xxxxx/templates/base/scripts/BxBaseProfileView.php:2440) in/home/xxxx/public_html/xxxxx/inc/classes/BxDolPageView.phpon line 244



2. This error shows on every profile page.

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/xxxxxx/templates/base/scripts/BxBaseProfileView.php:2440) in/home/xxxxx/public_html/xxxxx/inc/design.inc.php on line 133



They both say something about the header... hmmm is it something to do with permission or? I hope you guys can help me out with this one. Thanks

Patrick

Quote · 20 Jan 2010

These errors are normally caused by garbage at the end of the file. Extra lines at the end of the file after the final closing ?> php tag.

To be more informativate, this happens when files are moved between computers with different text file formats. Like windows that ends lines with a CR and LF and Linux which uses just a LF.

The moving back and forth sometimes causes extra line feeds or extra carrage returns to appear in the file.

Many of the files included in the original dolphin zip file are full of these. Some text editors will display the garbage as a little square block. Other text editors it shows up as double spaced lines. Both of those conditions is a sign that the file contains these extra garbage characters.

Some FTP programs such as mine WSFTP Pro will clean up this extra garbage automatically when transfered in ASCII mode as it tries to detect the destination file type and converts it.

Anyhow. Check the contents of templates/base/scripts/BxBaseProfileView.php for extra lines at the end of the file. Also check the other file involved in this error inc/classes/BxDolPageView.php

That was most likely more information that anyone cares to read, but hey, i am in a strange mood today.



https://www.deanbassett.com
Quote · 20 Jan 2010

ha wow you're good!  I removed the extra lines and now the errors are gone!! I learned something new. You're awesome!  :)

Quote · 20 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.