Jump to content

ukpapillon

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ukpapillon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I use Video Share Entreprise script on VPS. I've been having a difficult time for the last couple of weeks to fix this php error message showing on my homepage: Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/videomy/public_html/include/function.php on line 35 Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/videomy/public_html/include/function.php on line 35 Warning: chk_language() [function.include]: Failed opening 'language/.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/videomy/public_html/include/function.php on line 35 I've asked help all over the net. Everyone's giving me different answers and none of them works. You can see the error message on my home page @: http://www.videomyst.com ,and if you select Japanese on the language box on the top right, everything goes back to normal ??? Below is the function.php code: <?php //CHECK HOTORNOT ADMINISTRATOR LOGIN function chk_admin_login() { global $config; if($_SESSION['AUID']!=$config[admin_name] || $_SESSION['APASSWORD']!=$config[admin_pass]) { header("Location:$config[baseurl]/siteadmin/login.php"); exit; } } //CHECK LANGUAGE SELECTED function chk_language() { global $conn; if ($_SESSION[lang] == 'english') { include("language/en_US.php"); } elseif($_SESSION[lang] == 'japanese') { include("language/ja.php"); } else { $sql="select * from sconfig where soption='language'"; $rs=$conn->execute($sql); $default=$rs->fields[svalue]; include("language/$default.php"); } } Please help me to sort this out. If you need to see the whole code or other files, I can upload them.
  2. How do I configure the default language setting? I believe this is the problem. There's only 2 languages to select from my homepage : English and Japenese. When the error message appear on my homepage, if I select Japenese, everything goes normal and the message don't show anymore. Strange ..... I'm using a VPS server and can access to all files. This is for a video share website. Its quite a big program. All I need is your guidance on how to config. the default language
  3. I didn't created the snippet, I bought the whole script and cost me quite alot. I'm not reaaly an expert on php code. I will contact again my support to let them know the snippet is poorly coded. I'm so confused. Thank you ever so much to all trying to help me here.
  4. Hi Orio Thank you so much for helping me. You think its a database error?
  5. Hi, I did contacted the support , I am still waiting for their replies since. I'm trying to find help somewhere else in meantime. There's no bug, I've checked. Is something to do with the default language setting. Must be an error somewhere in the php code.
  6. Hi, This is the function.php code and the problem seems to be on line 35 <?php //CHECK HOTORNOT ADMINISTRATOR LOGIN function chk_admin_login() { global $config; if($_SESSION['AUID']!=$config[admin_name] || $_SESSION['APASSWORD']!=$config[admin_pass]) { header("Location:$config[baseurl]/siteadmin/login.php"); exit; } } //CHECK LANGUAGE SELECTED function chk_language() { global $conn; if ($_SESSION[lang] == 'english') { include("language/en_US.php"); } elseif($_SESSION[lang] == 'japanese') { include("language/ja.php"); } else { $sql="select * from sconfig where soption='language'"; $rs=$conn->execute($sql); $default=$rs->fields[svalue]; include("language/$default.php"); } } //CHECK HOTORNOT MEMBER LOGIN function chk_member_login($viewkey="") { global $config,$conn; $sql="select * from signup where UID=$_SESSION[uID]"; $rs=$conn->execute($sql); if($_SESSION['UID']=="" || $_SESSION['EMAIL']=="" || $rs->recordcount()==0) { $q = ""; while(list($k,$v)=each($_GET)){$q.="&$k=$v";} $q=base64_encode($q); if($q!="")$add="&add=$q"; $temp=$_SERVER['PHP_SELF']; $path=explode("/",$temp); $page=$path[count($path)-1]; $page=str_replace(".php","",$page); header("Location:$config[baseurl]/signup.php?next=$page$add"); exit; } }
  7. ??? Hi, I've tried everything to sort this php error message below appearing on my website: Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/mysite/public_html/include/function.php on line 35 Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/mysite/public_html/include/function.php on line 35 Warning: chk_language() [function.include]: Failed opening 'language/.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/include/function.php on line 35 I've re-installed the script, checked permissions, checked php code and there's no errors on database. I don't understand, everything seems ok. Its been days since I've tried to sort this problem out.... :'( Please, can anyone help me here?
  8. Sorry for not answering to your question sooner. My computer crashed for the last few days. I checked also the permissions and they are the same.
  9. Hi Jesirose Thank you so much for helping me. Sorry I took long to reply. Had to go out. Below is the rest of the script. Its quit a long code ( cannot insert the whole code): //CHECK HOTORNOT MEMBER LOGIN function chk_member_login($viewkey="") { global $config,$conn; $sql="select * from signup where UID=$_SESSION['UID']"; $rs=$conn->execute($sql); if($_SESSION['UID']=="" || $_SESSION['EMAIL']=="" || $rs->recordcount()==0) { $q = ""; while(list($k,$v)=each($_GET)){$q.="&$k=$v";} $q=base64_encode($q); if($q!="")$add="&add=$q"; $temp=$_SERVER['PHP_SELF']; $path=explode("/",$temp); $page=$path[count($path)-1]; $page=str_replace(".php","",$page); header("Location:$config[baseurl]/signup.php?next=$page$add"); exit; } } function session_to_db() { global $conn; $sql="select * from signup where UID=$_SESSION[uID]"; $rs=$conn->execute($sql); if($rs->recordcount()>0) { $_SESSION[emailVERIFIED]=$rs->fields['emailverified']; } } //MAIL FUNCTIION function mailing($to,$name,$from,$subj,$body,$bcc="") { global $SERVER_NAME; $subj=nl2br($subj); $body=nl2br($body); $recipient = $to; if($bcc!="") $headers = "Bcc: " . $bcc."\n"; $headers .= "From: " . $from . "\n"; //$headers .= "X-Sender: <" . "$to" . ">\n"; //$headers .= "Return-Path: <" . "$to" . ">\n"; //$headers .= "Error-To: <" . "$to" . ">\n"; $headers .= "Content-Type: text/html\n"; mail("$recipient","$subj","$body","$headers","-f$from"); } //EMAIL VERIFICATION function isMailVerified() { global $config; if($_SESSION[emailVERIFIED]=="no") { header("Location:$config[baseurl]/confirm_email.php"); } else if ( $_SESSION['EMAILVERIFIED']=="off" ) { header("Location:$config[baseurl]/confirm_email.php?flag=off"); } } function is_commented($vid) { global $config,$conn; $sql="select count(*) as cnt from comments WHERE VID=$vid and UID=$_SESSION[uID]"; $rs=$conn->execute($sql); if($rs->fields[cnt]>0) return "yes"; } function is_video_commented($vid) { global $config,$conn; $sql="select be_comment from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields[be_comment]; } function is_video_rated($vid) { global $config,$conn; $sql="select be_rated from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields[be_rated]; } function is_video_embabed($vid) { global $config,$conn; $sql="select embed from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields[embed]; } } ?>
  10. Below is the language.php script: <?php //CHECK HOTORNOT ADMINISTRATOR LOGIN function chk_admin_login() { global $config; if($_SESSION['AUID']!=$config[admin_name] || $_SESSION['APASSWORD']!=$config[admin_pass]) { header("Location:$config[baseurl]/siteadmin/login.php"); exit; } } //CHECK LANGUAGE SELECTED function chk_language() { global $conn; if ($_SESSION[lang] == 'english') { include("language/en_US.php"); } elseif($_SESSION[lang] == 'japanese') { include("language/ja.php"); } else { $sql="select * from sconfig where soption='language'"; $rs=$conn->execute($sql); $default=$rs->fields[svalue]; include("language/$default.php"); } } This is where there's a problem. Line 35 ???
  11. Hi, My homepage shows the error messages below: Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/mysite/public_html/include/function.php on line 35 Failed opening 'language/.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/include/function.php on line 35 Presently, there's two languages options to choose from, (english/japenese)English is the default. Strangely when I select japenese, my homepage goes back to normal with all the features working perfectly. I've tried everything. Restore the files, repair..etc.. I cannot find the source of the problem and this is driving me insane ??? I am using VPS hosting. Please can someone help me here Maria
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.