PHP error messages
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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 46
- Joined: Sat Jul 28, 2012 10:51 am
PHP error messages
Hi,
When I go to my site, then TWO error messages appear above my banner:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/attazkiyah/at-tazkiyah.com/ida_new/index.php:24) in /home/attazkiyah/at-tazkiyah.com/ida_new/libraries/joomla/session/session.php on line 658
And
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/attazkiyah/at-tazkiyah.com/ida_new/index.php:24) in /home/attazkiyah/at-tazkiyah.com/ida_new/libraries/joomla/session/session.php on line 658
What is the problem?
Link:
http://www.at-tazkiyah.com/ida_new
When I go to my site, then TWO error messages appear above my banner:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/attazkiyah/at-tazkiyah.com/ida_new/index.php:24) in /home/attazkiyah/at-tazkiyah.com/ida_new/libraries/joomla/session/session.php on line 658
And
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/attazkiyah/at-tazkiyah.com/ida_new/index.php:24) in /home/attazkiyah/at-tazkiyah.com/ida_new/libraries/joomla/session/session.php on line 658
What is the problem?
Link:
http://www.at-tazkiyah.com/ida_new
Last edited by zaahideen on Tue Jan 27, 2015 9:10 am, edited 1 time in total.
- toivo
- Joomla! Master
- Posts: 17439
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: PHP error messages
This means that there is an extra character or corruption in the index.php file in the main Joomla folder.headers already sent by (output started at /home/attazkiyah/at-tazkiyah.com/ida_new/index.php:24)
Did you or someone else modify the index.php file? If not, then the file must be corrupted or altered by an intruder to your site.
If your site uses Joomla 3.3.6, line 24 should be blank. Copy the original index.php from the installation archive, replace it in the main folder of Joomla and see what happens.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 46
- Joined: Sat Jul 28, 2012 10:51 am
Re: PHP error messages
ok i'll try that.
but strange thing is when im running my website on LOCALHOST, the error message doesnt show...
it's only that after i uploaded to a remote server that the error appeared...
but strange thing is when im running my website on LOCALHOST, the error message doesnt show...
it's only that after i uploaded to a remote server that the error appeared...
- toivo
- Joomla! Master
- Posts: 17439
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: PHP error messages
If you download the file index.php from the main Joomla folder of the remote server and compare it to the index.php file on your localhost, you are likely to find that they are different.it's only that after i uploaded to a remote server that the error appeared...
How that happened is anyone's guess, the file may have become corrupted or the site or the server has been hacked.
If you find that the security of the site has been compromised, go to the Security forum and follow the instructions in the sticky notes at the top of the forum: http://forum.joomla.org/viewforum.php?f=714
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 46
- Joined: Sat Jul 28, 2012 10:51 am
Re: PHP error messages
amazingly that isnt the case also!
both index.php codings are the same. i even copied the local file to my remote server. but still same error.
i think the issue is that i have added a "script" inside my index.php file. but why it doesnt show up as an error in my localhost is confusing?
both index.php codings are the same. i even copied the local file to my remote server. but still same error.
i think the issue is that i have added a "script" inside my index.php file. but why it doesnt show up as an error in my localhost is confusing?
- toivo
- Joomla! Master
- Posts: 17439
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: PHP error messages
The extra script must has some function that inadvertently echoes one or more characters to cause the warning to be output by the remote host, which then prevents the session cookie to be sent.i think the issue is that i have added a "script" inside my index.php file. but why it doesnt show up as an error in my localhost is confusing?
The PHP coinfiguration in the localhost either ignores warnings or does not display errors at all.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 46
- Joined: Sat Jul 28, 2012 10:51 am
Re: PHP error messages
For some reason I can't post my script in this forum.
Do you know why?
Do you know why?
- toivo
- Joomla! Master
- Posts: 17439
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: PHP error messages
Did you try to attach a file or did you copy and paste the code and then wrap it inside ?
Code: Select all
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 46
- Joined: Sat Jul 28, 2012 10:51 am
Re: PHP error messages
Is used the
Code: Select all
tag but comes up with a 403 error
- toivo
- Joomla! Master
- Posts: 17439
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: PHP error messages
That is odd. Zip up index.php with the code and try to attach the file.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 46
- Joined: Sat Jul 28, 2012 10:51 am
-
- Joomla! Apprentice
- Posts: 46
- Joined: Sat Jul 28, 2012 10:51 am
Re: PHP error messages
Hi, did you manage to have a look at my .php file?
Thanks
Thanks
- toivo
- Joomla! Master
- Posts: 17439
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: PHP error messages
Just noticed the post now. If you need the javascript part, it should probably go to the index.php file in your template, instead of the very beginning of the main index.php file where it causes the warning from PHP.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 46
- Joined: Sat Jul 28, 2012 10:51 am
Re: PHP error messages
Thanks TOIVO
Works great!
Works great!
- toivo
- Joomla! Master
- Posts: 17439
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: PHP error messages
Cheers. You can now edit the first post of this thread in Full Editor and select the green tick to mark the issue as resolved.
Toivo Talikka, Global Moderator