Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Error internal 500
lukashid
post
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 30.10.2009

Ostrzeżenie: (0%)
-----


Co oznacza błąd error internal 500?
Go to the top of the page
+Quote Post
thek
post
Post #2





Grupa: Moderatorzy
Postów: 4 362
Pomógł: 714
Dołączył: 12.02.2009
Skąd: Jak się położę tak leżę :D




Wszystkie 4xx to błędy klienta. Wszystkie 5xx to błedy serwera. Chcesz wiedzieć dokładniej? Użyj google smile.gif


--------------------
Najpierw był manual... Jeśli tam nie zawarto słów mądrości to zapytaj wszechwiedzącego Google zadając mu własciwe pytania. A jeśli i on milczy to Twój problem nie istnieje :D
Go to the top of the page
+Quote Post
elmozaur
post
Post #3





Grupa: Zarejestrowani
Postów: 518
Pomógł: 18
Dołączył: 21.07.2008

Ostrzeżenie: (0%)
-----


mi 500 pojawia sie jak przekombinuje w konfiguracji htaccessa
Go to the top of the page
+Quote Post
lukashid
post
Post #4





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 30.10.2009

Ostrzeżenie: (0%)
-----


usunąłem htaccess to teraz mam taki problem:

Kod
pen(); mysql_query("SET NAMES 'utf8'"); $currency_symbol_new=symbol_currency(); $uid=$_SESSION['uid']; if($_POST['refer_a_friend']) { $errmsg=""; if($uid!='') { $refer_mail=$_POST['refer_mail']; $ccode=substr(md5(time()),0,10); if(mysql_num_rows(mysql_query("select id from user where email='$refer_mail'"))==0) { if(mysql_num_rows(mysql_query("select id from invite_friend where email='$refer_mail'"))==0) { mysql_query("insert into invite_friend set uid='$uid',email='$refer_mail',refer_code='$ccode'"); send_invitation($uid,$refer_mail,$ccode); admin_refer_friend($uid,$refer_mail,$ccode); $errmsg="Your invitation has been sent."; } else $errmsg="User already invited."; } else { $errmsg="User already is a member."; } } else $errmsg="You must be logged in to do that."; } //print_r($_SESSION); $myres=remainbid1(); // Query start for Hot featured product // $sql="select * from t123go_product where featured='1' and status='1' and start_time < now() and end_time > now() order by rand() limit 1"; $rs=mysql_query($sql); $data=mysql_fetch_array($rs); // Query ended for Hot featured product // $jsres=mysql_query("SELECT pid,bid_price FROM t123go_product where start_time < now() and end_time >now() and pid!='".$data[pid]."' and status='1' order by end_time limit 4"); $pids=""; while($jsrec=mysql_fetch_array($jsres)) { $pids.=$jsrec['pid'].","; $_SESSION['new'][$jsrec['pid']]=$jsrec['bid_price']; } //for featured product // if($data['pid']!='') { $pids.=$data['pid'].","; $_SESSION['new'][$data['pid']]=$data['bid_price']; } $sql_qry="SELECT pid,pname,price,bid_price,thumbnail,bider_id,description,type1,cid,brand FROM t123go_product where start_time  now() and pid!='$data[pid]' and status='1' order by end_time limit 4"; $lat_auction=substr($pids,0,-1); // top live auctions // if($lat_auction=='') $lat_auction="''"; $jsquery1="SELECT * FROM t123go_product where start_time < now() and end_time > now() and status='1' and pid!='".$data[pid]."' and pid not in(".$lat_auction.")"; $jsres1=mysql_query($jsquery1) or( die(mysql_error)); while($jsrec1=mysql_fetch_array($jsres1)) { $pids.=$jsrec1['pid'].","; $_SESSION['new'][$jsrec['pid']]=$jsrec['bid_price']; } $homeres=mysql_query($sql_qry); $homeres1=mysql_query($jsquery1); $num_live=mysql_num_rows($homeres1); ?>


P.S Ja mam gotowy skrypt i nie moge sie domyslic gdzie jest w nim config.Ma ktos jakis sposob jak go znalezc bo kokretnej nazwy config.php nie ma !

Ten post edytował lukashid 3.11.2009, 19:22:00
Go to the top of the page
+Quote Post
Nattfarinn
post
Post #5





Grupa: Zarejestrowani
Postów: 136
Pomógł: 22
Dołączył: 19.09.2007
Skąd: Sosnowiec

Ostrzeżenie: (0%)
-----


Po usunięciu .htaccess'a przestał parsować Ci PHP'a winksmiley.jpg. Lepiej sobie przywróć ten pliczek i wklej na ew. jego zawartość.


--------------------
Code should run as fast as necessary, but no faster; something important is always traded away to increase speed.
-- R. Pattis
Go to the top of the page
+Quote Post
lukashid
post
Post #6





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 30.10.2009

Ostrzeżenie: (0%)
-----


Kod
AddDefaultCharset Off

RewriteEngine On

RewriteRule ^index.html$ index.php

RewriteRule ^register/index.html$ register.php
RewriteRule ^login/index.html$ login.php
RewriteRule ^logout/index.html$ logout.php
RewriteRule ^loginconfirm/([^/]+)$ loginconfirm.php?id=$1
RewriteRule ^loginconfirm/([^/]+)/$ loginconfirm.php?id=$1
RewriteRule ^howitworks/index.html$ how_it_works.php
RewriteRule ^faq/index.html$ faq.php
RewriteRule ^seeallauctions/index.html$ see.php

RewriteRule ^user/index.html$ user_detail.php
RewriteRule ^profile/index.html$ view_profile.php
RewriteRule ^addprofile/index.html$ add_profile.php
RewriteRule ^addp/([^/]+)/$ add_profile.php?uid=$1
RewriteRule ^profile/([^/]+)$ profile.php?id=$1


RewriteRule ^profile1/([^/]+)/$ view_profile.php?uid=$1
RewriteRule ^profiles/([^/]+)/$ view_profile.php?uid=$1
RewriteRule ^profile/([^/]+)/([^/]+)$ view_profile.php?id=$2
RewriteRule ^profile/([^/]+)/([^/]+)/$ view_profile.php?id=$2
RewriteRule ^profile1/([^/]+)/$ view_profile.php?id=$1
RewriteRule ^viewprofile/([^/]+)/([^/]+)/$ view_profile.php?id=$1&dele=$1

RewriteRule ^product/watchlist/add/([^/]+)$ product_details.php?wpid=$1
RewriteRule ^product/watchlist/add/([^/]+)/$ product_details.php?wpid=$1


RewriteRule ^news/interview-with-doobid-mini-wiiner/([^/]+)$ interview_detail.php?interid=$1
RewriteRule ^news/interview-with-doobid-mini-wiiner/([^/]+)/$ interview_detail.php?interid=$1


RewriteRule ^([^/]+)/([^/]+)/auction/([^/]+)/$ product_details.php?prodid=$3
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)/$ product_details.php?prodid=$4
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)/$ product_details.php?prodid=$5
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)/$ product_details.php?prodid=$6
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)/$ product_details.php?prodid=$7
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)/$ product_details.php?prodid=$8
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)/$ product_details.php?prodid=$9
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)/$ product_details.php?prodid=$10

RewriteRule ^([^/]+)/([^/]+)/auction/([^/]+)$ product_details.php?prodid=$3
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)$ product_details.php?prodid=$4
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)$ product_details.php?prodid=$5
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)$ product_details.php?prodid=$6
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)$ product_details.php?prodid=$7
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)$ product_details.php?prodid=$8
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)$ product_details.php?prodid=$9
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/auction/([^/]+)$ product_details.php?prodid=$10



RewriteRule ^productdetails/([^/]+)/$ product_details.php?prodid=$1
RewriteRule ^product/futuredetails/([^/]+)$ product_futuredetails.php?prodid=$1
RewriteRule ^product/futuredetails/([^/]+)/$ product_futuredetails.php?prodid=$1

RewriteRule ^producreviws/([^/]+)$ prproduct_reviews.php?product_id=$1
RewriteRule ^productre/index.html$ product_reviews.php
RewriteRule ^productnews/index.html$ product_news.php
RewriteRule ^newsdetail/index.html$ news_details.php
RewriteRule ^news/([^/]+)$ news_details.php?news_id=$1
RewriteRule ^news/([^/]+)/$ product_details.php?news_id=$1
RewriteRule ^forgot-your-password/index.html$ forgotten_password.php
RewriteRule ^forgot-your-password/([^/]+)$ forgotten_password.php?msg=$1
RewriteRule ^forgot-your-password/([^/]+)/$ forgotten_password.php?msg=$1

RewriteRule ^myauctions/index.html$ my_auctions.php
RewriteRule ^my-greenbot/index.html$ my_bidbutlers.php
RewriteRule ^mygreenbot/([^/]+)/$ my_bidbutlers.php?uid=$1
RewriteRule ^viewwall/([^/]+)/$ view_allwall.php?id=$1
RewriteRule ^writewall/([^/]+)/$ writeonwall.php?id=$1
RewriteRule ^watchlist/index.html$ watchlist.php
RewriteRule ^watchlists/([^/]+)/$ watchlist.php?uid=$1
RewriteRule ^wonauctions/index.html$ won_auctions.php
RewriteRule ^wonauction/([^/]+)/$ won_auctions.php?uid=$1
RewriteRule ^sdob/([^/]+)/$ s.php?dob=$1
RewriteRule ^sex/([^/]+)/$ s.php?sex=$1
RewriteRule ^closedauctions/index.html$ closed_auctions.php
RewriteRule ^green-project/index.html$ green.php
RewriteRule ^green-project/([^/]+)/$ green.php?uid=$1

RewriteRule ^buybidpack/([^/]+)/$ buy_bidpack.php?pkg_id=$1
RewriteRule ^buybidpack/([^/]+)$ buy_bidpack.php?pkg_id=$1
RewriteRule ^buybids/index.html$ buy_bids.php
RewriteRule ^bidhistory/index.html$ bid_history.php
RewriteRule ^myvouchers/index.html$ my_vouchers.php
RewriteRule ^useraccount/index.html$ user_account.php
RewriteRule ^useraddresses/index.html$ user_addresses.php
RewriteRule ^changepassword/index.html$ change_password.php
RewriteRule ^closeaccount/index.html$ close_account.php

RewriteRule ^hotspots/index.html$ hotspots.php
RewriteRule ^hotspots/([^/]+)$ hotspots.php?hid=$1
RewriteRule ^hotspots/([^/]+)/$ hotspots.php?hid=$1
RewriteRule ^viewhotspots/([^/]+)$ view_hotspots.php?viewid=$1
RewriteRule ^viewhotspots/([^/]+)/$ view_hotspots.php?viewid=$1
RewriteRule ^allcategories/index.html$ all_categories.php
RewriteRule ^liveauctions/index.html$ live_auctions.php
RewriteRule ^featured/index.html$ featured.php
RewriteRule ^fixedprice/index.html$ fixed_price.php
RewriteRule ^futureauctions/index.html$ future_auctions.php
RewriteRule ^penny/index.html$ penny.php
RewriteRule ^charity/index.html$ charity.php
RewriteRule ^search/([^/]+)/([^/]+)$ search.php?keyword=$1&catproduct=$2
RewriteRule ^search/([^/]+)/([^/]+)/$ search.php?keyword=$1&catproduct=$2

RewriteRule ^userblog/([^/]+)/$ userblogs.php?uid=$1
RewriteRule ^blog/success/index.html$ blog.php?success=1
RewriteRule ^blog/aboutyou/index.html$ blog.php?aboutyou=1
RewriteRule ^blogpopular/index.html$ blog_popular.php
RewriteRule ^editblog/index.html$ editblog.php
RewriteRule ^editblogs/([^/]+)/$ editblog.php?blog_id=$1&s=1&img=1

RewriteRule ^blogspopular/index.html$ blogs_popular.php
RewriteRule ^100off/index.html$ 100off.php
RewriteRule ^rookie/index.html$ rookie_auctions.php
RewriteRule ^blogcomment/([^/]+)/$ blogcomment.php?blog_id=$1
RewriteRule ^blogcomment/([^/]+)$ blogcomment.php?blog_id=$1


RewriteRule ^addidea/index.html$ add_idea.php
RewriteRule ^addprofile/index.html$ addprofile.php
RewriteRule ^addcomment/index.html$ addcomment.php

RewriteRule ^help/index.html$ help.php
RewriteRule ^terms/index.html$ terms.php
RewriteRule ^privacy/index.html$ privacy.php
RewriteRule ^aboutus/index.html$ aboutus.php
RewriteRule ^contact/index.html$ contact.php
RewriteRule ^pressmedia/index.html$ press_media.php
RewriteRule ^refer-a-friend/index.html$ refer.php

RewriteRule ^addcomment/index.html$ addcomment.php
RewriteRule ^addcomment/success/([^/]+)/$ addcomment.php?blog_id=$1&success=success
RewriteRule ^addcomment/success/([^/]+)$ addcomment.php?blog_id=$1&success=success

RewriteRule ^feedback/index.html$ feedback.php
RewriteRule ^feedback/([^/]+)/$ feedback.php?aid=$1
RewriteRule ^feedback/([^/]+)$ feedback.php?aid=$1

RewriteRule ^allauctions/([^/]+)/([^/]+)/$ allauctions.php?cat=$1&type=$2
RewriteRule ^allauctions/([^/]+)/([^/]+)$ allauctions.php?cat=$1&type=$2
RewriteRule ^allauctions/([^/]+)/$ allauctions.php?cat=$0

RewriteRule ^shareidea/success/index.html$ share_idea.php?success=1
RewriteRule ^shareidea/aboutyou/index.html$ share_idea.php?aboutyou=1
RewriteRule ^shareidea/down/([^/]+)/$ share_idea.php?aboutyou=1&points_id=$1&down=1
RewriteRule ^ideapopular/index.html$ idea_popular.php
RewriteRule ^ideaaction/index.html$ idea_action.php
RewriteRule ^viewidea/success/([^/]+)/$ view_idea.php?share_id=$1&success=success
RewriteRule ^viewidea/([^/]+)/([^/]+)/$ view_idea.php?share_id=$1&down=$1&points_id=2
RewriteRule ^ideapopular/up/([^/]+)/$ idea_popular.php?points_id=$1&up=1
RewriteRule ^ideaaction/up/([^/]+)/$ idea_action.php?points_id=$1&up=1
RewriteRule ^ideaaction/down/([^/]+)/$ idea_action.php?points_id=$1&up=1
RewriteRule ^ideapopular/down/([^/]+)/$ idea_popular.php?points_id=$1&down=1
RewriteRule ^ideapopular/up/([^/]+)/$ idea_popular.php?points_id=$1&up=1
RewriteRule ^ideacomment/success/([^/]+)/$ idea_comment.php?share_id=$1

RewriteRule ^latestwinner/index.html$ latest_winners.php
RewriteRule ^winnerinterviews/index.html$ winner_interviews.php
RewriteRule ^myauction/([^/]+)/$ my_auctions.php?uid=$1


RewriteRule ^subcat/([^/]+)/allauction/([^/]+)/$ allauctions.php?cat=$2
RewriteRule ^subcat/([^/]+)/([^/]+)/allauction/([^/]+)/$ allauctions.php?cat=$3
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/allauction/([^/]+)/$ allauctions.php?cat=$4
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/allauction/([^/]+)/$ allauctions.php?cat=$5
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/allauction/([^/]+)/$ allauctions.php?cat=$6
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/allauction/([^/]+)/$ allauctions.php?cat=$7
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/allauction/([^/]+)/$ allauctions.php?cat=$8

RewriteRule ^subcat/([^/]+)/([^/]+)/$ subcat.php?catid=$2
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/$ subcat.php?catid=$3
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ subcat.php?catid=$4
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ subcat.php?catid=$5
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ subcat.php?catid=$6
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ subcat.php?catid=$7
RewriteRule ^subcat/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ subcat.php?catid=$8
Go to the top of the page
+Quote Post
Nattfarinn
post
Post #7





Grupa: Zarejestrowani
Postów: 136
Pomógł: 22
Dołączył: 19.09.2007
Skąd: Sosnowiec

Ostrzeżenie: (0%)
-----


A jesteś pewien, że posiadasz mod_rewrite na serwerze? Ten .htaccess jest w zasadzie poprawny (u mnie działa bez problemu), więc wina leży po stronie konfiguracji serwera.


--------------------
Code should run as fast as necessary, but no faster; something important is always traded away to increase speed.
-- R. Pattis
Go to the top of the page
+Quote Post
lukashid
post
Post #8





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 30.10.2009

Ostrzeżenie: (0%)
-----


posiadam mod_rewrite.so,ale to nie na serwerze moim tylko w
appachu leży


ma ktoś jeszcze jakieś pomysły?Może wie ktoś jak znaleźć config?


Przywróciłem .htaccess i wyskakuje teraz inny błąd :
Kod
open(); mysql_query("SET NAMES 'utf8'"); $currency_symbol_new=symbol_currency(); $uid=$_SESSION['uid']; if($_POST['refer_a_friend']) { $errmsg=""; if($uid!='') { $refer_mail=$_POST['refer_mail']; $ccode=substr(md5(time()),0,10); if(mysql_num_rows(mysql_query("select id from user where email='$refer_mail'"))==0) { if(mysql_num_rows(mysql_query("select id from invite_friend where email='$refer_mail'"))==0) { mysql_query("insert into invite_friend set uid='$uid',email='$refer_mail',refer_code='$ccode'"); send_invitation($uid,$refer_mail,$ccode); admin_refer_friend($uid,$refer_mail,$ccode); $errmsg="Your invitation has been sent."; } else $errmsg="User already invited."; } else { $errmsg="User already is a member."; } } else $errmsg="You must be logged in to do that."; } //print_r($_SESSION); $myres=remainbid1(); // Query start for Hot featured product // $sql="select * from t123go_product where featured='1' and status='1' and start_time < now() and end_time > now() order by rand() limit 1"; $rs=mysql_query($sql); $data=mysql_fetch_array($rs); // Query ended for Hot featured product // $jsres=mysql_query("SELECT pid,bid_price FROM t123go_product where start_time < now() and end_time >now() and pid!='".$data[pid]."' and status='1' order by end_time limit 4"); $pids=""; while($jsrec=mysql_fetch_array($jsres)) { $pids.=$jsrec['pid'].","; $_SESSION['new'][$jsrec['pid']]=$jsrec['bid_price']; } //for featured product // if($data['pid']!='') { $pids.=$data['pid'].","; $_SESSION['new'][$data['pid']]=$data['bid_price']; } $sql_qry="SELECT pid,pname,price,bid_price,thumbnail,bider_id,description,type1,cid,brand FROM t123go_product where start_time  now() and pid!='$data[pid]' and status='1' order by end_time limit 4"; $lat_auction=substr($pids,0,-1); // top live auctions // if($lat_auction=='') $lat_auction="''"; $jsquery1="SELECT * FROM t123go_product where start_time < now() and end_time > now() and status='1' and pid!='".$data[pid]."' and pid not in(".$lat_auction.")"; $jsres1=mysql_query($jsquery1) or( die(mysql_error)); while($jsrec1=mysql_fetch_array($jsres1)) { $pids.=$jsrec1['pid'].","; $_SESSION['new'][$jsrec['pid']]=$jsrec['bid_price']; } $homeres=mysql_query($sql_qry); $homeres1=mysql_query($jsquery1); $num_live=mysql_num_rows($homeres1); ?>


Wie ktoś może co z tym zrobić i gdzie jest jakiś plik konfiguracyjny(jak go znaleźć)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 06:15