Get error in top of page

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
s020822
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Dec 30, 2012 9:42 am

Get error in top of page

Post by s020822 » Sun Dec 30, 2012 9:44 am

Hi all

I just moved a site from one hosting server to another.

I changed the connection strings in the config-file regarding the new db name.

I get this error in the top of the web site each time it loads:

Code: Select all

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/vhosts/4468.linux2.testsider.dk/httpdocs/configuration.php:1) in /var/www/vhosts/4468.linux2.testsider.dk/httpdocs/libraries/joomla/session/session.php on line 423

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/vhosts/4468.linux2.testsider.dk/httpdocs/configuration.php:1) in /var/www/vhosts/4468.linux2.testsider.dk/httpdocs/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/4468.linux2.testsider.dk/httpdocs/configuration.php:1) in /var/www/vhosts/4468.linux2.testsider.dk/httpdocs/libraries/joomla/session/session.php on line 426
http://4468.linux2.testsider.dk/

Do any know why I get the error - and how to remove it ;-)

thanks, Guys...

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17423
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Get error in top of page

Post by toivo » Sun Dec 30, 2012 10:34 am

This warning is displayed because the Joomla configuration file configuration.php has some extra characters before the PHP open tag <?php or after the PHP close tag ?>

Remove the extra characters, save the file and the warnings should disappear.
Toivo Talikka, Global Moderator

s020822
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Dec 30, 2012 9:42 am

Re: Get error in top of page

Post by s020822 » Sun Dec 30, 2012 4:24 pm

Hi - and thank you so much for replying.

This is my code... Can you see where the Space(s) is/are? I can't find them..

Code: Select all

<?php
class JConfig {
	
	var $offline_message = 'Dette websted opdateres i øjeblikket. Prøv venligst igen senere.';
}
?>
Last edited by s020822 on Sun Dec 30, 2012 9:41 pm, edited 1 time in total.

s020822
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Dec 30, 2012 9:42 am

Re: Get error in top of page

Post by s020822 » Sun Dec 30, 2012 4:45 pm

Can it be because in for now is a test domain and not the final domain ?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30887
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Get error in top of page

Post by Per Yngve Berg » Sun Dec 30, 2012 5:31 pm

What editor do you use. Window's Notepad will put a BOM mark at the start of the file.

Be aware that Joomla 1.0 is not compatible with php 3.3 and 3.4.

Besides the file does not looks like it came from Joomla 1.0

s020822
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Dec 30, 2012 9:42 am

Re: Get error in top of page

Post by s020822 » Sun Dec 30, 2012 7:39 pm

I use Notepad ;-)

What will you recommend ?

Thank you.

s020822
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Dec 30, 2012 9:42 am

Re: Get error in top of page

Post by s020822 » Sun Dec 30, 2012 7:47 pm

I just tried with Notepad++ and it didn't show a Space before the PHP tags.. I'll try another--

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30887
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Get error in top of page

Post by Per Yngve Berg » Sun Dec 30, 2012 9:14 pm

Notepad++ is good to use.

The BOM will not show as a charcter. Select format "UTF8 without BOM" before saving the file.


Locked

Return to “General Questions - 1.0.x”