News:

Wondering if this will always be free?  See why free is better.

Main Menu

Internal Server Error 500 all the time.

Started by Maxtor, May 19, 2009, 05:25:10 PM

Previous topic - Next topic

Maxtor

Hello lately my forum gets this error.


Internal Server Error 500.
Where should i start searching? No other errors.just this. Also i have a huge error_log which is now 629mb and im not sure if i should delete it. Also i spotted some files like this:
core.12027  41,89mb file
core.12104  41,89mb file
core.12229 17,34mb file
etc etc..

www.maxcheaters.com

kat


MrPhil

If the dates on the core.* files show that they just appear once in a blue moon, just delete them. If they're popping up on a regular basis, you should be in touch with your hosting service. They will look at the core files and determine what process (PHP, Apache, MySQL, cron, etc.) it was that died, and perhaps why. Then they can do something about trying to fix it.

500 errors are frequently caused by one of:
1) blank/empty lines at the beginning or end of a script file (.php, bash, etc.).
2) improper upload (binary when it should be ASCII), so that files are corrupted by having the wrong "end of record" marks.
3) forbidden permissions (especially 777 or 666) on directories or files. Security software may throw a 500 error if it finds a "world writable" directory or file, which is often a security exposure. Don't blindly change permissions to 777 unless you have proven that 755 and 775 don't work for you.

Any of these can be caused by file corruption due to a hack, so check if your files have been unexpectedly updated.

If the error log is unmanageably huge, just trim off everything before the last few days. You're talking about a PHP error.log or error_log file, rather than the server log or the SMF log (in database)? You can look through it to try to get an idea of what kind of errors are being reported over and over, and which are one-time events that you can explain.

Maxtor

#3
i think i found it.

8: Undefined index: hiddenOption
File: /home/maxt0ras/public_html/forum/Sources/Display.php
Line: 1021

// Hide the post or Not? --- XD
$message['can_view_post'] = 1;
if (!empty($modSettings['allow_hiddenPost']) && $message['hiddenOption'] > 0)
{
global $sourcedir;
require_once($sourcedir . '/HidePost.php');
$message['ID_TOPIC'] = $topic;
$context['current_message'] = $message;
$message['body'] = getHiddenMessage();
$message['can_view_post'] = $context['can_view_post'];
}


maybe problem with these:
Hide Post 1.0.8 
Hide Post 1.1

Hide Tag Special 1.8.0 
Hide Tag Special 1.8.1 

Hide Tag 1.7.0 
Hide Tag 1.7.1 

Hide Tag BBC Image 1.0.0 
Hide Tag BBC Image 1.0.1

Maxtor

what does it mean :

Undefined index: hiddenOption

hiddenOption is a  value in sql or what? how to define this?

kat

Do you have the Hide post mod?

Could be that.

Maxtor

Quote from: Kat on May 20, 2009, 01:19:27 PM
Do you have the Hide post mod?

Could be that.

yes this is the problem and i dont know how to fix it.

here is my display.php . there is one error. can you also search for double entries?

error :

8: Undefined index: hiddenOption
File: /home/maxt0ras/public_html/forum/Sources/Display.php
Line: 1021





kat

This could be totally, utterly wrong. So, keep a copy of the files as a backup, just in case.

To me, this line:

if (!empty($modSettings['allow_hiddenPost']) && $message['hiddenOption'] > 0)


Looks like it should only have one "&" in it.

That's just a hunch, though. I could be waaaaaaay wrong.

Maxtor

in "Admin">"Forum Error Log" this error:

8: Undefined index: hiddenOption
File: /home/maxt0ras/public_html/forum/Sources/Display.php
Line: 1021
is repeating 20 times every second each time by different user wtf!??!?

anyone can help??? i cant solve this.

kat

Oh, wow.

I really don't have clue!

Sorry an' all that.  :(

excaliburj

You might try to change that line to:

if (!empty($modSettings['allow_hiddenPost']) && isset($message['hiddenOption']) && $message['hiddenOption'] > 0)
Random Sig Line

Maxtor

i have contacted leaf who is the creator of this mod and im waiting for his support. i think there is something missing in HidePost.php that defines 'hiddenOption'

Advertisement: