Post by virtualgeorge » Fri Aug 22, 2008 4:55 pm

I am getting a couple errors in the header such as:

Warning: Cannot modify header information - headers already sent by (output started at /home/dsm/public_html/library/database/database.php:413) in /home/dsm/public_html/library/cart/currency.php on line 85

They reference a line that has something to do with cookies:
setcookie('currency', $currency, time() + 60 * 60 * 24 * 30, '/', $_SERVER['HTTP_HOST']);

I just moved this site from one location to a new folder on the same server and changed the paths in the config.php files but must I have missed one?

Active Member

Posts

Joined
Wed Jun 18, 2008 5:57 am

Post by Qphoria » Fri Aug 22, 2008 5:52 pm

This is pretty common. Usually because there are either extra carriage returns at the end of your php files (if you've made any manual edits) or because something else is causing some text to display before the official doctype.

If you just moved from another site, it might be possible that the upload changed the text to binary or something and added additional weird characters or spacing.

Take a look at some of your controller files and see at the top and bottom if there are any extra carriage returns or characters. Unfortunately some files DO have extra returns and don't really cause this problem. But if it is happening on every page, it might be one of the common files like index, home, controller, etc.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by virtualgeorge » Sat Aug 23, 2008 12:21 am

Yeah I had seen other posts with similar problems but I didn't change much, just moved the site like I have done many times before.

But this time I downloaded the site with wsftp from the server and that changed something. 

Tried again and downloaded with dreamweaver as I usually do and then re-uploaded to new location and all is fine.

So I guess there is a setting in the wsftp program that I need to change.

thanks!

Active Member

Posts

Joined
Wed Jun 18, 2008 5:57 am

Post by Qphoria » Sat Aug 23, 2008 1:21 am

Perhaps the binary/text transfer method. see if it is the same that dreamweaver uses

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 2 guests