Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
safierdrgn
Hangin' Around



Joined: Oct 23, 2006
Posts: 26

PostPosted: Fri Oct 26, 2007 9:53 pm Reply with quote

This is the error that I get at random times, for doing nothing in particular -


Internal Server Error

Referred From : (none)
Your IP : **********
The Page Requested: /
Agent : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Redirect Status : 500


I'm not sure what this means. The install went smoothly, everything is writing to the database. But every now and then when I click on a link(internal link) or try to add a link to the site it goes to that screen. Pure white with plain black text stating the above error. 99% of the time hitting the back button takes you back to the information that you've typed in...you just have to hit "Send" again and it'll send it like nothing happened.

Is there a fix for this? I don't want my users to get upset(I broke it!!) or discouraged when they visit the site if this should happen to them.
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Oct 27, 2007 2:00 am Reply with quote

You need to have a look through your logs to see if you can determine the problem. I don't think it's an RN problem, but I could be wrong. It might be worth contacting your host to see if they can cast any light on it.
 
View user's profile Send private message
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Sat Oct 27, 2007 2:45 am Reply with quote

Server Errors are generally generated when there are illegal entries in an .htaccess file. If your .htaccess is populated with anything at all, rename it to .htaccess.OLD, then create a new .htaccess that is completely blank. Try and send the form. If there's no Internal Server Errors after several tries, post your .htaccess.OLD file here and we'll have a look at it..

PHrEEk

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
safierdrgn







PostPosted: Sat Oct 27, 2007 11:28 am Reply with quote

I have been looking at my error log for about a week now with nothing showing up for the site...maybe I need a better error log!

As far as my .htaccess file goes..I have the one that came with RN -

Quote:

Options All -Indexes
DirectoryIndex index.php index.htm index.html

# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .ftaccess>
deny from all
</Files>

<Files .staccess>
deny from all
</Files>

# -----------------------------------------------------------------------------------------------------
# Leave this block commented out unless HTTPAuth is NOT available in your NukeSentinel(tm) Admin Panel.
# This code is mainly for use with CGI Authentication and most servers do not require it.
# -----------------------------------------------------------------------------------------------------
# <Files admin.php>
# <Limit GET POST PUT>
# require valid-user
# </Limit>
# AuthName "Restricted"
# AuthType Basic
# AuthUserFile /path/to/your/.staccess
# </Files>
# -----------------------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------------------------

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------
 
jakec







PostPosted: Sat Oct 27, 2007 11:31 am Reply with quote

Please try what PHrEEkie suggested and let us know the result.
 
safierdrgn







PostPosted: Mon Oct 29, 2007 10:25 am Reply with quote

I tried a blank .htaccess file and experienced no Internal Server Errors at all.

My old .htaccess file is posted above in my previous post.


Thanks!
 
PHrEEkie







PostPosted: Mon Oct 29, 2007 11:01 am Reply with quote

Save this as a new .htaccess and let us know if the error is gone.

Code:
# ------------------------------------------- 

# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .ftaccess>
deny from all
</Files>

<Files .staccess>
deny from all
</Files>

# -----------------------------------------------------------------------------------------------------
# Leave this block commented out unless HTTPAuth is NOT available in your NukeSentinel(tm) Admin Panel.
# This code is mainly for use with CGI Authentication and most servers do not require it.
# -----------------------------------------------------------------------------------------------------
# <Files admin.php>
# <Limit GET POST PUT>
# require valid-user
# </Limit>
# AuthName "Restricted"
# AuthType Basic
# AuthUserFile /path/to/your/.staccess
# </Files>
# -----------------------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------------------------

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------


PS - Make sure there is exactly ONE carraige return at the bottom of the file.

BTW - An Inernal Server Error usually won't show up on any logs you have access to (your domain logs), they will show up in server logs that the server admin has access to.

PHrEEk
 
safierdrgn







PostPosted: Mon Oct 29, 2007 6:34 pm Reply with quote

Welp I worked on my site the entire day and haven't come across one error(yet).
It seems to have done the trick! Thank you very much for the help again!
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Oct 30, 2007 7:06 am Reply with quote

you might want to ask your host why the commented out "code" for admin.php is not allowed...

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
safierdrgn







PostPosted: Tue Oct 30, 2007 10:21 pm Reply with quote

I asked my host that question(yes I showed him this thread) and his answer was -

Quote:

Dear Customer,

Please keep in mind we are not web developers. The reason would be that your admin.php script is doing something that our system does not like. Having not looked at the code I would suspect it is trying to do one of several things like creating databases (can't be done on the fly) creating new email accounts (we don't allow you access to that area for security reasons) and the list goes on. Without knowing what your admin.php script is actually doing there is no real way of telling you what is causing your in-ability to use that section of code in your .htaccess file.



Regards, Scott Dennis
Level 2 Technical Support Team




Yay!

PS - The site is still running great!
 
jakec







PostPosted: Wed Oct 31, 2007 12:59 am Reply with quote

'Dear Customer' that is so impersonal, it wouldn't take much to check your name. JMO

Admin.php doesn't do anything out of the ordinary except access the database so there shouldn't really be a problem. I have never had a problem with any of my hosts.

P.S. The good thing is your site is working. Very Happy
 
montego







PostPosted: Wed Oct 31, 2007 6:00 am Reply with quote

Unbelievable! admin.php has nothing to do with the question! They need to respond as to why those lines in the .htaccess (that you had to comment out) file are not allowed by their hosting service (this is what was causing the 500 server error).

They ABSOLUTELY must know why that is the case as it is something they have expressly not allowed you to override and it has nothing to do with how anything is coded on your end....
 
safierdrgn







PostPosted: Wed Oct 31, 2007 6:53 am Reply with quote

But he MUST know all!! That's why he's in the Level 2 Technical Support Team!! Smile

When I read his answer to my support ticket I made an educated assumption that he didn't even read my entire ticket before he hit the "respond to paying idiot" button. With all the information I provided him(original .htaccess, new .htaccess, the actual QUESTION) he should've been able to figure out what I was asking...but then again I DID assume. Shame on me...
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Oct 31, 2007 8:24 am Reply with quote

That's an incredibly bad answer from your host. Wow.

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
PHrEEkie







PostPosted: Wed Oct 31, 2007 9:21 pm Reply with quote

One of these two directives were causing the error:

Code:
Options All -Indexes 

DirectoryIndex index.php index.htm index.html


IMO, this is not a big issue, don't sweat it. This code would only be helpful if your host had a strange configuration. They obviously have a typical one, so these directives are unnecessary. Glad you're up and working!

PHrEEk
 
montego







PostPosted: Thu Nov 01, 2007 4:48 pm Reply with quote

safierdrgn, my appologies (and to PHrEEkie too) for I didn't look at the before and after close enough. You might want to try adding the first line back in and see if that "takes". If not, then take it out again. I think that one could be useful.
 
safierdrgn







PostPosted: Wed Nov 28, 2007 1:39 am Reply with quote

Welp..it's back again and I have no clue why. It didn't show after I said it looked like it was fixed on October 31st. The past couple of days I've had a couple of people mention that they got this error..and now it just happened to me when I went to visit the index page.

Code:


Internal Server Error

Referred From : (none)
Your IP : 24.15.102.99
The Page Requested: /
Agent : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Redirect Status : 500



LE SIGH!!!! Have anymore ideas?
 
montego







PostPosted: Wed Nov 28, 2007 6:08 am Reply with quote

You need to change hosts. I know that you do not want to hear that, but it makes no sense to have intermittent issues like this.

I have no other ideas for you. Sad
 
safierdrgn







PostPosted: Wed Nov 28, 2007 1:02 pm Reply with quote

Yell at the host more..got it! I can't change hosts as I have prepaid for 2 years...so I'll go for the yelling and see what I can find. Thanks though.
 
safierdrgn







PostPosted: Fri Feb 08, 2008 8:30 am Reply with quote

My host and I have been going back and forth as to whose fault this is and what's wrong. I've been bounced from Tech I to Tech III..I finally got some sort of response other than "Sorry customer we cannot help you"

Quote:
This appears to be a problem with your scripts sending the header information before it is suppose to. whenever you get a 500 error it is generating an error in your error logs saying Cannot modify header information - headers already sent by Check the server logs to see what I am referring to.

Brett
Technical Support Specialist Level 3
HostMonster.com
866.573.4678

Most questions can be answered by articles in our forum, knowledgebase, and video tutorials:
Forum: [ Only registered users can see links on this board! Get registered or login! ]
Knowledgebase: [ Only registered users can see links on this board! Get registered or login! ]
Tutorials: [ Only registered users can see links on this board! Get registered or login! ]
Server Status: [ Only registered users can see links on this board! Get registered or login! ]
When you have a new questions or issue, please open a new support ticket.



Do any of you have an idea of what this might be?
 
montego







PostPosted: Fri Feb 08, 2008 6:28 pm Reply with quote

Well, if the following FAQ doesn't help you:
[ Only registered users can see links on this board! Get registered or login! ]

Is it really worth the pain and suffering that you are going through just because you prepaid? I mean, I've never had these types of issues and I've been with four hosts, including Raven.

I have also never seen "Cannot modify header information" produce a 500 error, but see if that FAQ helps at all.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©