Transfer Host - Getting Header Errors

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
schipper
Forum Members
Forum Members
Posts: 42
Joined: Wed Dec 17, 2008 8:45 pm

Transfer Host - Getting Header Errors

Post by schipper »

I am transferring my v1.10 site to Go Daddy from another server.

I can see the site on the new server (navigate pages as well), but get the following errors:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/content/09/8971009/html/lib/html_entity_decode_php4.php:629) in /home/content/09/8971009/html/index.php on line 170
I also get the same type of warning when logged into the Admin panel:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/content/09/8971009/html/lib/html_entity_decode_php4.php:629) in /home/content/09/8971009/html/lib/classes/class.admintheme.inc.php on line 188
And when i go to edit the content, get this warning:

Code: Select all

Output has already been sent to the browser at /home/content/09/8971009/html/lib/html_entity_decode_php4.php:629. Please make sure the command $xajax->processRequest() is placed before this.
I searched the forums and found similar problems but none of the solutions seem to work.

Here is what i have tried so far:
--Cleared my cache (did is manually after i did the transfer since i forgot to do it previously)
--Re-uploaded those two files to the FTP to ensure they were not corrupted.
--Ran /install/ again to be sure all paths and settings were correct.

Current host is running PHP 5.3. Not sure what my last host was running but it was working fine on that server.

How do i fix? Thanks in advance.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Transfer Host - Getting Header Errors

Post by Dr.CSS »

Are you sure it runs PHP 5?...

/home/content/09/8971009/html/lib/html_entity_decode_php4.php:629.

Goduddy servers are not the easiest to use, I would avoid them at all cost...
schipper
Forum Members
Forum Members
Posts: 42
Joined: Wed Dec 17, 2008 8:45 pm

Re: Transfer Host - Getting Header Errors

Post by schipper »

The control panel in Go Daddy said it is running PHP 5.3, and php info confirms here:

http://elixirmedical.com.previewdns.com/phpinfo.php


Could that file have come from the old host? I copied all my old files and uploaded to the new server. I don't know what PHP version the old host was running.

I would rather keep Go Daddy hosting. What kind of trouble am i getting myself into?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Transfer Host - Getting Header Errors

Post by Dr.CSS »

Try putting the install folder in, from the same version of cmsms, and run install but at step 5 DON'T CREATE TABLES OR INSTALL DEFAULT CONTENT this might fix any path errors or other problems, like make it use php5...
schipper
Forum Members
Forum Members
Posts: 42
Joined: Wed Dec 17, 2008 8:45 pm

Re: Transfer Host - Getting Header Errors

Post by schipper »

I already tried uploading the install from v1.10, and didnt seem to remove any of the errors....

Perhaps i did something wrong in the transfer process?

I basically just FTPed all the files, and uploaded the new database. Like i said i can see the site, and it seems to work, except the errors at the top and i can't access the "Edit Content >Pages" file.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Transfer Host - Getting Header Errors

Post by Dr.CSS »

I would look very closely at all the file permissions in every folder, some folders have .htaccess files in them that wreak havoc on windows servers...
schipper
Forum Members
Forum Members
Posts: 42
Joined: Wed Dec 17, 2008 8:45 pm

Re: Transfer Host - Getting Header Errors

Post by schipper »

Permissions look to be set at 705 for most folders. I reset the tmp, uploads, and modules at 755, but that didnt seem to change anything.

I cant see any weird htaccess files anywhere.

The error that it is referencing in the two files are:
"/lib/html_entity_decode_php4.php":

Code: Select all

		"ˆ" => "".chr(203).chr(134)."",

		"♣" => "".chr(226).chr(153).chr(163)."",

	
"/lib/classes/class.admintheme.inc.php":

Code: Select all

 /**
     * Send admin page HTTP headers.
     *
     * @param alreadySentCharset boolean have we already sent character encoding?
     * @param encoding string what encoding should we set?
     *
     */
    function SendHeaders($alreadySentCharset, $encoding)
    {
        // Date in the past
        header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

        // always modified
        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
 
        // HTTP/1.1
        header("Cache-Control: no-store, no-cache, must-revalidate");
        header("Cache-Control: post-check=0, pre-check=0", false);

        // HTTP/1.0
        header("Pragma: no-cache");
        
        // Language shizzle
        if (! $alreadySentCharset)
        {
	       header("Content-Type: text/html; charset=$encoding");
        }
    }
Is there any other information i can provide that might help troubleshoot?
schipper
Forum Members
Forum Members
Posts: 42
Joined: Wed Dec 17, 2008 8:45 pm

Re: Transfer Host - Getting Header Errors

Post by schipper »

I think i've found the problem:
http://www.geeklog.net/faqman/index.php?op=view&t=38

I compared the "_php4" file specified in the error with the original from a clean v1.10 version and noticed white space between every single line in the code.

The web site then proceeded to go to another file that had the same problem.

I used Dreamweaver the download and upload the files (which i am sure is a complete no-no) So that could explain the issue.

I suppose i should delete EVERYTHING from the new server and start over -- download via FileZilla from the old server, then reupload to the new server.

Will update when complete to see if that solves the problem.
schipper
Forum Members
Forum Members
Posts: 42
Joined: Wed Dec 17, 2008 8:45 pm

Re: [SOLVED] Transfer Host - Getting Header Errors

Post by schipper »

The above fix has worked. Downloaded files using FileZilla instead of dreamweaver and it resolved all header warning issues.
Locked

Return to “[locked] Installation, Setup and Upgrade”