HTTP500-internal server exception

Source: Internet
Author: User
HTTP500-Internal server error help HTTP500-Internal server error server: IIS6 + PHP5.2.5 + PHP programs with DEDE installed in MYSQL are all very good. Today, a new program is installed successfully, most websites are normal. only one page has an "HTTP500-Internal Server Error", and GOOGLE is also baidu. you can also ask for help based on the solution HTTP 500-Internal server error provided on the Internet.
HTTP 500-Internal Server Error

Server: IIS6 + PHP5.2.5 + MYSQL

PHP programs that previously installed DEDE are very good. Today, a new program is installed successfully, and most websites are normal. there is only one page with "HTTP 500-Internal Server Error"

GOOGLE and Baidu, and tried the solution based on the solution provided on the Internet for a day. it was not solved in the middle of the night, so I came to ask for help.

The password is also set for IWAM_MAME.

I feel like my head is a little big.

Below is the code of the error file. Is there a problem with the file itself? please help me to see it. thank you for pulling it.

Require_once "global. php ";

If ($ user_id =-1) sysmsg ($ lang_sysmsg ['nologin'], 'index. php ');

$ Tpl-> set ('site _ title', $ nav ["pm"]. '-');

If ($ op = 'listpm '){

$ Str = "select t1.nickname, t2. * from friends_user as t1, friends_user_pm as t2 where pto = '$ username' and t1.username = t2.pfrom and box = '1 '";
$ CoObj = $ data-> getList ($ str, 20 );
$ CoObj-> navchar = $ lang_nav;
$ Tpl-> set ("navbar", $ coObj-> navbar (10 ));
$ Tpl-> set ("list", $ coObj-> field );
$ Tpl-> set ("pagejump", $ coObj-> pagejump ());
$ Tpl-> set ("pm_content", "pm_list.html ");
$ Tpl-> parse ("pm.html ");

} Elseif ($ op = 'viewpm '){

$ Vip <= 0 & sysmsg ($ lang ['VIP _ only'], 'person. php? Op = joinvip ');

// $ Id = $ _ GET ["id"];
$ Arr = $ db-> get_one ("select * from friends_user_pm where pto = '$ username' and id =' $ ID '");
$ Free = $ arr ["free"];
$ Flag = $ arr ["readed"];
/*
If ($ free = 0 & $ flag = 0)
{
If (! UpPoint ($ username, "ViewPm", "receive messages "))
{
Sysmsg ($ lang_sysmsg ['nopoints'], 'person. php? Op = buypoint ');
}
}
*/
$ Db-> query ("update friends_user_pm set readed = '1' where pto = '$ username' and id =' $ ID '");
$ Str = "select t1.nickname, t2. * from friends_user as t1, friends_user_pm as t2 where t1.username = t2.pfrom and t2.pto = '$ username' and t2.id =' $ ID '";
$ CoObj = $ data-> getList ($ str, 1 );
$ Tpl-> set ("list", $ coObj-> field );
$ Tpl-> set ("pm_content", "pm_view.html ");
$ Tpl-> parse ("pm.html ");

} Elseif ($ op = 'newpm '){

// $ Pmcount = $ db-> get_one ("select count (*) AS t FROM 'DS dS _ user_pm 'WHERE 'pfrom' = '$ username '");

// If ($ vip <= 0 & $ pmcount ['t'] = 3 ){
// Sysmsg ($ lang ['PM _ limit_novip '], 'person. php? Op = joinvip ');
//}

If (checksubmit ($ _ POST ["Submit"])
{
// $ From = $ _ POST ["from"];
// $ To = $ _ POST ["to"];
// $ Title = $ _ POST ["title"];
// $ Msg = $ _ POST ["msg"];
$ Time = date ("Y-m-d H: I: s ");
$ Db-> query ("insert into 'DS dS _ user_pm '('pfrom', 'pto ', 'title', 'MSG', 'ptime ') VALUES ('$ from',' $ to', '$ title',' $ msg ',' $ time ')");
$ Uinf = $ db-> get_one ("SELECT 'email 'FROM 'DS dS _ user' WHERE 'username' =' $ '");
Email_newpm ($ to, $ uinf ['email ']);
Sysmsg ($ system_msg [2026], 'person. php ');
}
Else
{
$ Tpl-> set ("from", $ username );
$ Tpl-> set ("to", $ _ GET ["to"]);
$ Tpl-> set ("pm_content", "pm_post.html ");
$ Tpl-> parse ("pm.html ");
}
} Elseif ($ op = 'delps '){
// $ Id = $ _ GET ["id"];
$ Db-> query ("delete from friends_user_pm where pto = '$ username' and id =' $ ID '");
Sysmsg ($ system_msg [2027], 'PM. php? Op = ListPm ');
}
?>





------ Solution --------------------
1. sending an error in IIS is enabled;
2. in IE, remove the hooks before "show Friendly http error messages" in "tools"-"internet options"-"advanced.

In this way, you can see the specific error message. debug the program according to the error location.
------ Solution --------------------
Because most websites are normal, only one page has an "HTTP 500-Internal Server Error"


Suggestion: you can also find the problem by using echo from one location.
------ Solution --------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.