Cannot modify header info

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.
mrjokz
Forum Members
Forum Members
Posts: 10
Joined: Fri Aug 05, 2011 1:27 pm

Cannot modify header info

Post by mrjokz »

Hello,

We moved our site from a webhotel to another one and after the change my admin console is giving me the following error whilst trying to modify the page. Also the pictures are gone as well but everything else is working fine.

Any ideas what could be wrong or how should I start the troubleshooting?

"Warning: get_class() expects parameter 1 to be object, string given in /home/int43059/public_html/admin/editcontent.php on line 165

Warning: Cannot modify header information - headers already sent by (output started at /home/int43059/public_html/admin/editcontent.php:165) in /home/int43059/public_html/lib/classes/class.admintheme.inc.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /home/int43059/public_html/admin/editcontent.php:165) in /home/int43059/public_html/lib/classes/class.admintheme.inc.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/int43059/public_html/admin/editcontent.php:165) in /home/int43059/public_html/lib/classes/class.admintheme.inc.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/int43059/public_html/admin/editcontent.php:165) in /home/int43059/public_html/lib/classes/class.admintheme.inc.php on line 178

Warning: Cannot modify header information - headers already sent by (output started at /home/int43059/public_html/admin/editcontent.php:165) in /home/int43059/public_html/lib/classes/class.admintheme.inc.php on line 181

Warning: Cannot modify header information - headers already sent by (output started at /home/int43059/public_html/admin/editcontent.php:165) in /home/int43059/public_html/lib/classes/class.admintheme.inc.php on line 186"
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Cannot modify header info

Post by M@rtijn »

Did you edit all references in the config.php files to point to the new domain?

You should edit all information for the following lines:

Code: Select all

$config['db_hostname']
$config['db_username']
$config['db_password']
$config['db_name']

$config['root_url']
$config['root_path']
$config['previews_path']
$config['uploads_path']
$config['image_uploads_path']
Also, you should look at the .htaccess and check if the path is correct

Code: Select all

#Sub-dir e.g: /cmsms
RewriteBase /
(if cmsms is not in a subfolder, then this line should not contain anything after the slash)
Make your community a better place!
mrjokz
Forum Members
Forum Members
Posts: 10
Joined: Fri Aug 05, 2011 1:27 pm

Re: Cannot modify header info

Post by mrjokz »

Yeah config.php seems to be fine and .htaccess file as well (though I made an assumption cms ms is not in a subfolder (dunno how to check that? yeah -- I'm that much of a newbie)
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Cannot modify header info

Post by M@rtijn »

How do you know the paths in config.php are correct, then?

What you could do is run install again, but on step 6 untick the both boxes (for default content and tables), that way you'll be sure your paths are correct.

You can't just move the folders over and expect it to work.
It's just like when you move house, you'll have to tell the postman somehow that you've moved, or you won't recieve your mail anymore ;)
Make your community a better place!
replytomk3

Re: Cannot modify header info

Post by replytomk3 »

Modify config and clear cache.
mrjokz
Forum Members
Forum Members
Posts: 10
Joined: Fri Aug 05, 2011 1:27 pm

Re: Cannot modify header info

Post by mrjokz »

I changed the paths to config.php file after I moved the folders to the new server and the web page actually opens up but while I'm trying to add or edit content via admin console I get the warning errors. M@rtijn, what install are you talking about?:)
replytomk3

Re: Cannot modify header info

Post by replytomk3 »

mrjokz wrote:M@rtijn, what install are you talking about?
Search the forum. He talks about running /install.php again, but unchecking those boxes to create default content. This process rectifies path problems in config.php.
mrjokz
Forum Members
Forum Members
Posts: 10
Joined: Fri Aug 05, 2011 1:27 pm

Re: Cannot modify header info

Post by mrjokz »

I searched the forum and I've yet still to figure out how does that install.php script work. Where should it be located anyways as I cannot seem to find it? Yeah -- I've got no clue how these things work as this is a whole new world for me. Thanks for your patience in advance :)
replytomk3

Re: Cannot modify header info

Post by replytomk3 »

Oh, those things are in the /install folder.

Try looking for index.php, install.php, upgrade.php files there.

To install, you usually type in yourdomain.com/install
mrjokz
Forum Members
Forum Members
Posts: 10
Joined: Fri Aug 05, 2011 1:27 pm

Re: Cannot modify header info

Post by mrjokz »

I'm completely missing that folder.. What's the next thing to do?=)
replytomk3

Re: Cannot modify header info

Post by replytomk3 »

It is deleted after installation for security reasons.

Look in version.php file for your CMSMS version, then download installation file of the same version from this website. You can then upload just that /install folder to your server by FTP.
replytomk3

Re: Cannot modify header info

Post by replytomk3 »

mrjokz wrote:I changed the paths to config.php file after I moved the folders to the new server and the web page actually opens up but while I'm trying to add or edit content via admin console I get the warning errors. M@rtijn, what install are you talking about?:)
Post a screenshot of those errors or PM me login info before you proceed any further with running /install again.

Login into admin, even with the errors, and clear cache.

Is your admin directory named "admin"? What does config.php says?

You need to research these things before blindly following instructions.
mrjokz
Forum Members
Forum Members
Posts: 10
Joined: Fri Aug 05, 2011 1:27 pm

Re: Cannot modify header info

Post by mrjokz »

I'm not able to pm you(?) but can you give me your email and I'll send you the login info
replytomk3

Re: Cannot modify header info

Post by replytomk3 »

Send me your login information thru the contact form on my website.
mrjokz
Forum Members
Forum Members
Posts: 10
Joined: Fri Aug 05, 2011 1:27 pm

Re: Cannot modify header info

Post by mrjokz »

Done, when do you think you'll have the time to check what's wrong with it?
Locked

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