Cannot modify header info
Cannot modify header info
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"
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"
Re: Cannot modify header info
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:
Also, you should look at the .htaccess and check if the path is correct
(if cmsms is not in a subfolder, then this line should not contain anything after the slash)
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']
Code: Select all
#Sub-dir e.g: /cmsms
RewriteBase /
Make your community a better place!
Re: Cannot modify header info
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)
Re: Cannot modify header info
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
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!
Re: Cannot modify header info
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?:)
Re: Cannot modify header info
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 wrote:M@rtijn, what install are you talking about?
Re: Cannot modify header info
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 

Re: Cannot modify header info
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
Try looking for index.php, install.php, upgrade.php files there.
To install, you usually type in yourdomain.com/install
Re: Cannot modify header info
I'm completely missing that folder.. What's the next thing to do?=)
Re: Cannot modify header info
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.
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.
Re: Cannot modify header info
Post a screenshot of those errors or PM me login info before you proceed any further with running /install again.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?:)
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.
Re: Cannot modify header info
I'm not able to pm you(?) but can you give me your email and I'll send you the login info
Re: Cannot modify header info
Send me your login information thru the contact form on my website.
Re: Cannot modify header info
Done, when do you think you'll have the time to check what's wrong with it?