Premature end of script headers: index.php

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

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.
Locked
DirichletC
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Feb 09, 2016 3:47 pm

Premature end of script headers: index.php

Post by DirichletC » Fri Apr 29, 2016 8:27 am

My webpage http://www.sloparaglidingteam.si suddenly stopped working. I either get a blank white page or an internal server error - depending on the browser I use.

Anyway error log firstly said that there is robots.txt file missing

Code: Select all

 [error] [client 5.255.253.39] File does not exist: /var/www/vhosts/sloparaglidingteam.si/httpdocs/robots.txt 
so I have created one

Code: Select all

User-agent: *
Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /layouts/
Disallow: /libraries/
Disallow: /logs/
Disallow: /modules/
Disallow: /plugins/
Disallow: /tmp/
Than favicon.ico was missing so i have uploaded something just to see my page working. Sadly the page is still down, currently with an error where I have got absolutely no idea what to do. Here is a part of my error log in case somebody has an idea on what to do. Attached is also my php file in case that helps.

Code: Select all

[Fri Apr 29 10:06:33 2016] [error] [client 89.142.6.33] File does not exist: /var/www/vhosts/sloparaglidingteam.si/httpdocs/favicon.ico 
[Fri Apr 29 10:07:52 2016] [error] [client 207.46.13.105] Premature end of script headers: index.php 
[Fri Apr 29 10:10:34 2016] [error] [client 66.249.64.148] Premature end of script headers: index.php 
[Fri Apr 29 10:12:57 2016] [error] [client 89.142.6.33] Premature end of script headers: index.php, referer: http://www.sloparaglidingteam.si/administrator/index.php?option=com_joomlaupdate&task=update.install&is_backed_up=1 
[Fri Apr 29 10:13:53 2016] [error] [client 89.142.6.33] Premature end of script headers: index.php, referer: http://www.sloparaglidingteam.si/administrator/ 
[Fri Apr 29 10:14:08 2016] [error] [client 89.142.6.33] Premature end of script headers: index.php, referer: http://www.sloparaglidingteam.si/administrator/index.php?option=com_installer&view=update 
[Fri Apr 29 10:14:16 2016] [error] [client 89.142.6.33] Premature end of script headers: index.php, referer: http://www.sloparaglidingteam.si/administrator/index.php?option=com_installer&view=update 
[Fri Apr 29 10:14:51 2016] [error] [client 89.142.6.33] Premature end of script headers: index.php, referer: http://www.sloparaglidingteam.si/administrator/index.php?option=com_installer&view=update 
[Fri Apr 29 10:15:49 2016] [error] [client 151.80.31.104] Premature end of script headers: index.php 
[Fri Apr 29 10:19:09 2016] [error] [client 89.142.6.33] Premature end of script headers: index.php 
Thank you!
php_file.txt
You do not have the required permissions to view the files attached to this post.

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

Re: Premature end of script headers: index.php

Post by toivo » Fri Apr 29, 2016 9:53 am

You seem to have fixed the issue.

Was the index.php file in the administrator folder corrupted? If it was and you do not know why that happened, your site may have been hacked. If that is the case, it is best to go to the 3.x Security forum and follow the instructions in this sticky post: http://forum.joomla.org/viewtopic.php?f=714&t=757645
Toivo Talikka, Global Moderator

DirichletC
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Feb 09, 2016 3:47 pm

Re: Premature end of script headers: index.php

Post by DirichletC » Fri Apr 29, 2016 12:17 pm

I haven't done anything since I posted this topic yet the webpage seems to work now. Strange.

Thank you toivo!

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

Re: Premature end of script headers: index.php

Post by toivo » Fri Apr 29, 2016 2:23 pm

Cheers - but I did not do anything. Those lines in the error log are real. Were there possible server issues? Your hosting provider may be able to answer that if you give them those log entries.

It would be important to check the PHP error log if there are other anomalies. Many web site managers use extensions like Admin Tools and also subscribe to services like myJoomla.com.
Toivo Talikka, Global Moderator


Locked

Return to “Administration Joomla! 3.x”