Sitemi taşıdıktan sonra Sitemde Şu Hata Meydana Geldi

Alıntı

Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'replace' /template.asp, line 51
Bunun çözümünü nasıl Yapabiliriz.. Template.asp dosyamın Kodları aşağıdaki gibidir..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="XHTML namespace">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />

<link href="template/default/stil.css" rel="stylesheet" type="text/css">
<meta name="ROBOTS" content="INDEX,FOLLOW"> 
<meta http-equiv="Content-Language" content="tr"> 
<meta name="abstract" content="Portal, Eğlence, Msn, Sinema, Sms"> 
<meta name="copyright" content="2007 muaseret.net"> 
<meta name="rating" content="General"> 
<meta name="creation_Date" content="06/09/2007"> 
<meta name="revisit-after" content="1 days">
<style type="text/css">
.style3 {font-size: 18px}
/*flash oyunların gösterilmesi için gerekli*/
#flashcontent {
  width: 100%;
  height: 100%;
}
.style4 {color: #CC0000}
</style>
<script type="text/javascript" src="js/swfobject.js"></script>
</head>

<body class="body">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1542870-3";
urchinTracker();
</script>
<!-- #include file = "config.asp" -->
<%
function baslikkes(text,uzunluk)
 if len(text)>uzunluk then
  baslikkes=left(text,uzunluk)&"..."
 else
  baslikkes=text
 end if
end function
function tertemiz(text)
 temp=replace(text, """","")
 temp=replace(temp, "'","")
 tertemiz=temp
end function
sub tags(title,keyw,descrip)
 response.Write("<title>"&title&"</title>")
 response.Write("<meta name=""description"" content="""&tertemiz(left(descrip,200))&"""/>")
 response.Write("<meta name=""keywords"" content="""&tertemiz(left(keyw,200))&"""/>")
end sub
function turkce(text)
 temp = replace(text,"ğ","g")
 temp = replace(temp,"Ğ","g")
 temp = replace(temp,"Ş","s")
 temp = replace(temp,"ş","s")
 temp = replace(temp,"Ü","u")
 temp = replace(temp,"ü","u")
 temp = replace(temp,"İ","i")
 temp = replace(temp,"ı","i")
 temp = replace(temp,"Ö","o")
 temp = replace(temp,"ö","o")
 temp = replace(temp,"Ç","c")
 temp = replace(temp,"ç","c")
 temp = replace(temp," ","_")
 turkce = lcase(temp)
end function
function turkce2(text)
 temp = replace(text,"ğ","g")
 temp = replace(temp,"Ğ","G")
 temp = replace(temp,"Ş","S")
 temp = replace(temp,"ş","s")
 temp = replace(temp,"Ü","U")
 temp = replace(temp,"ü","u")
 temp = replace(temp,"İ","I")
 temp = replace(temp,"ı","i")
 temp = replace(temp,"Ö","O")
 temp = replace(temp,"ö","o")
 temp = replace(temp,"Ç","C")
 temp = replace(temp,"ç","c")
 temp = replace(temp," ","_")
 turkce2=temp
end function
' request aldık
action = request.QueryString("action")
' tüm işlemler için birincil ana bağlantı
Set Conn = Server.CreateObject("ADODB.connection") 
rs = database
Conn.Open rs
%>
<table width="920" border="0" align="center" cellpadding="0" cellspacing="2">
  <tr>
    <td width="79%" valign="top"><table width="750" border="0" align="center" cellpadding="5" cellspacing="5">
      <tr>
        <td width="99%" class="main_box"><table width="100%" border="0" cellspacing="2" cellpadding="3">
            <tr>
              <td class="main_box_bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="39%" height="70"><a href="http://www.muaseret.net"><img src="template/default/logo.gif" alt="Anasayfaya gider!" width="226" height="70" border="0" /></a></td>
                    <td width="61%"><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-2031675970471658";
//468x60, oluşturulma 27.01.2008
google_ad_slot = "2445952306";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
                    </div></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><div align="center">
                        <ul class="pro9">
                          <li><a href="http://www.muaseret.net"><b>&nbsp;Ana Sayfa&nbsp;</b></a></li>
                          <%
 set rs = Conn.execute("SELECT * FROM kategori WHERE kat_goster=1 ORDER BY kat_sira ASC")
 do while not rs.eof 
 %>
                          <li><a href="bolum.asp?id=<%=rs("id")%>&amp;bolum=<%=turkce2(rs("kat_adi"))%>"><b><%=rs("kat_adi")%></b> </a></li>
                          <%
 rs.movenext
 loop
 %>
                          <li><a href="fikra-hikaye.asp"><b>Fıkralar</b></a></li>
                          <li><a href="flash-oyun.asp"><b>Flash Oyun</b></a></li>
                          <li><a href="haber.asp"><b>&nbsp;Haberler&nbsp;</b></a></li>
                        </ul>
                    </div></td>
                  </tr>
                  <tr>
                    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="100%" class="main_box_bottom"><a href="bebek-isimleri.asp"><img src="template/default/soz_bebek.gif" alt="Bebek İsimleri Sözlüğü" width="149" height="39" border="0" /></a><a href="sifali-bitkiler.asp"><img src="template/default/soz_sifalibitki.gif" alt="Şifalı Bitkiler" width="135" height="39" border="0" /></a><a href="ruya-tabirleri.asp"><img src="template/default/soz_ruyatabir.gif" alt="Rüya Tabirleri" width="147" height="39" border="0" /></a><a href="yemek-tarifleri.asp"><img src="template/default/soz_yemek.gif" alt="Yemek Tarifleri" width="151" height="39" border="0" /></a><a href="ruya-tabirleri.asp"></a><a href="pratik-bilgiler.asp"><img src="template/default/soz_pratik.gif" alt="Pratik Bilgiler" width="133" height="39" border="0" /></a></td>
                        </tr>
                        <tr>
                          <td height="25"><div align="center"> <a href="flash-oyun.asp" class="style3 style4">Flash Oyun Bölümümüz Güncellendi! Yüzlerce Oyun Sizleri Bekliyor. Tıklayın! </a>
<br><center>
<script type="text/javascript"><!--
google_ad_client = "pub-2031675970471658";
//728x15, oluşturulma 27.01.2008
google_ad_slot = "2957150167";
google_ad_width = 728;
google_ad_height = 15;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
 </div></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td height="17" valign="top" class="main_box">
<script type="text/javascript"><!--
google_ad_client = "pub-2031675970471658";
//728x90, oluşturulma 27.01.2008
google_ad_slot = "6980077579";
google_ad_width = 728;
google_ad_height = 90;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
      </tr>
      <tr>
        <td height="17" valign="top" class="main_box"><%
 call sayfagoster()
 %></td>
      </tr>
      <tr>
        <td class="main_box"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><div align="center"><a href="default.asp">Ana Sayfa</a> |
                <%
 set rs = Conn.execute("SELECT * FROM kategori WHERE kat_goster=1 ORDER BY kat_sira ASC")
 do while not rs.eof 
 %>
                      <a href="bolum.asp?id=<%=rs("id")%>&amp;bolum=<%=turkce2(rs("kat_adi"))%>"> <%=rs("kat_adi")%> </a> |
                <%
 rs.movenext
 loop
 %>
                      <a href="haber.asp">Haber</a> | <a href="faydali-linkler.asp">Faydalı Linkler</a> | <a href="fal.asp?burc=1">Günlük&nbsp;Fal</a> | <a href="tatil-gezi-ege.asp">Tatil&nbsp;ve&nbsp;Gezi&nbsp;Rehberi</a> | <a href="sms-ask-sevgi.asp">Hazır SMS Mesajları</a> | <a href="msn-ozel.asp">MSN Özel Bölümü</a> | <a href="yemek-tarifleri.asp">Yemek Tarifleri</a> | <a href="fikra-hikaye.asp">Fıkralar ve Hikayeler </a> | <a href="iletisim.asp">Reklam &amp; İletişim</a> | <a href="EkleBunu.com" onclick="eb_url = location.href; eb_title = document.title; return eb_tik(this);" target="_blank">Ekle Bunu</a> <script type="text/javascript">var eb_u="MyDooM";</script><script type="text/javascript" src="http://www.eklebunu.com/js/buton.js"></script> | <a href="Evden Eve Nakliyat Firmaları | İstanbul | Ankara | İzmir |" title="evden eve,nakliyat,evden eve nakliyat">Evden Eve Nakliyat</a> | <a href="Karabük Safranbolu Rehberi-Karabük Safranbolu HaberLeri - Karabük Üniversitesi- SafranBolu" title="karabük,safranbolu,karabük haber">Karabük</a> | <a href="Rüya Tabirleri | Rüya Tabiri | Rüyada Görülenler | RüyaLar | Ne Anlama Gelir |" title="rüya,rüya tabirleri,rüya tabirleri">Rüya Tabirleri</a></div></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td class="main_box"><div align="center">Muaseret.net FireFox ile daha bi cicili bicili görünür, 1024x768 çözünürlükte ekrana cuk oturur. Bi de her hakkı saklıdır. </div></td>
      </tr>
    </table></td>
    <td width="21%" valign="top"><table width="100%" border="0" cellspacing="5" cellpadding="5">
      <tr><form id="aramaform" name="aramaform" method="post" action="go.asp">
        <td class="main_box">
              <div align="center">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="39%"><img src="template/default/byn_ara.jpg" alt="Muaseret.net'te Arayın!" width="53" height="25" /></td>
                    <td width="61%"><div align="center">
                        <input name="ara" type="text" class="main_box" id="ara" value="<%=session("ara")%>" size="12" />
</div></td>
                  </tr>
                </table>
              </div>
        </td></form>
      </tr>
      <tr>
        <td class="main_box"><center><a href="Zafiran.Com | GençLere Özel Mekan | ÜniversiteLiLer Burda BuLuşuyor |" target="_blank"> <img src="banner/zafiran.gif" border="0" alt="arkadaşlık" ></a></center></td>
      </tr>
      <tr>
        <td class="main_box"><a href="muaseret.net ~ görgülü portal!" target="_blank"><img src="banner/reklamver.gif" alt="Reklam Ver" width="170" height="162" border="0" /></a></td>
      </tr>
      
    </table></td>
  </tr>
</table>
<div id="eXTReMe">
<script type="text/javascript"><!--
var EXlogin='muaseret' // Login
var EXvsrv='s11' // VServer
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;
navigator.javaEnabled()==1?EXjv="y":EXjv="n";
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=http://e2.extreme-dm.com",
"/"+EXvsrv+".g?login="+EXlogin+"&amp;",
"jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;",
"l="+escape(EXd.referrer)+" height=1 width=1>");//-->
</script><noscript><div id="neXTReMe"><img height="1" width="1" alt=""
src="http://e2.extreme-dm.com/s11.g?login...p;j=n&amp;jv=n" />
</div></noscript></div>
</body>
</html>