Link to home
Start Free TrialLog in
Avatar of rhandalthor
rhandalthorFlag for Russian Federation

asked on

same script different server:: header already sent error

A a test server I am using "Easy PHP Contact Form" On the live site it works, but on test server I get headers already sent errors:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/me/domain.com/contact.php:81) in /home/me/domain.com/contact.php on line 106

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/me/domain.com/contact.php:81) in /home/me/domain.com/contact.php on line 106

Warning: include(form-header.php) [function.include]: failed to open stream: No such file or directory in /home/me/domain.com/contact.php on line 321

Warning: include() [function.include]: Failed opening 'form-header.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/me/domain.com/contact.php on line 321

Open in new window


Any ideas why that is?
ASKER CERTIFIED SOLUTION
Avatar of ludofulop
ludofulop

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rhandalthor

ASKER

@DavidBaldwin. Same script works well at tiffinsolutions.com/contact.php and not at ts.imagewize.com/contact.php. What has changed? The server. But what has changed and how to fix this?
@ ludofulop Can this be done with a .htaccess? I do not have a dedicated server, just a DreamHost shared server.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Done DaveBaldwin. Code is here: http://pastebin.ca/2052770 and live view - the same errors as far as I can see is here: http://www.ts.imagewize.com/contact.php. Perhaps Dreamhost reports more errors then previous server does. Need the script to work well on both ..
Removed two errors. Looking into final one(s)
I did not mean to give myself points. Only the two contributors. Please adjust or allow me to award points again.