|
Can someone help me with the following Fatal error. ___________________________________________________________________________________________________ Fatal error: Call to a member function on a non-object in /home/vcathnet/public_html/templates_c/%%C3^C37^C3724EE2%%head1.tpl.php on line 36 ____________________________________________________________________________________________________
can someone help me the error on line 36? Thank you for your help!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="verify-v1" content="RwVOnPU2ZqXFSC9XqKfvAlvOwZ3uorMIO9JlWcbIX3s=" /> <META name="y_key" content="60d04ba04d51884e" > <meta http-equiv="Content-Language" content="en" /> <title>{$site_name}</title>
{php} function insert_additional_data(){ global $config,$conn,$users; if ($config['approve'] == 1) {$active = "and active = '1'";} $sql = "SELECT count(*) as total from video where type='public' $active"; $ars = $conn->Execute($sql); $grandtotalpublic = $ars->fields['total']; STemplate::assign('grandtotalpublic',$grandtotalpublic+0);
$sql = "SELECT count(*) as total from video where type='private' $active"; $ars = $conn->Execute($sql); $grandtotalprivate = $ars->fields['total']; STemplate::assign('grandtotalprivate',$grandtotalprivate+0);
$sql = "SELECT count(*) as total from signup $query"; $ars = $conn->Execute($sql); $grandtotaluser = $ars->fields['total']; STemplate::assign('grandtotaluser',$grandtotaluser+0); //stats end $sql="SELECT * from channel ORDER BY rand() LIMIT 6 "; $rs = $conn->Execute($sql); $channellist = $rs->getrows(); STemplate::assign('channellist',$channellist); #get latest video on db #end get latest video on db $sql = "SELECT * from video where type='public' $active ORDER BY VID DESC LIMIT 6 "; $rs = $conn->Execute($sql); $footerLatestVideo = $rs->getrows(); STemplate::assign('footerLatestVideo',$footerLatestVideo); //Recent TAGS $featuredtagsquery="SELECT keyword from video where type='public' $active order by addtime desc limit 20"; $recenttags=cloudTags($featuredtagsquery); STemplate::assign('recenttagsfooter',$recenttags);
$scriptName = @$_SERVER['SCRIPT_NAME']; $arrayScriptName = explode("/",$scriptName); if (sizeof($arrayScriptName) > 0){ $scriptName = $arrayScriptName[(sizeof($arrayScriptName)-1)]; $homecurrent = ""; $uploadcurrent = ""; $watchcurrent = ""; $groupcurrent = ""; $friendcurrent = ""; $channelscurrent = ""; $communitycurrent = ""; $listCurrent = array( "about.php"=>"homecurrent", "add_favour.php"=>"watchcurrent", "add_video.php"=>"watchcurrent", "audio.php"=>"watchcurrent", "audio_channels.php"=>"channelscurrent", "audio_channel_detail.php"=>"channelscurrent", "channels.php"=>"channelscurrent", "channels1.php"=>"channelscurrent", "channel_detail.php"=>"channelscurrent", "compose.php"=>"homecurrent", "confirm_email.php"=>"homecurrent", "create_group.php"=>"groupcurrent", "emails"=>"homecurrent","ffavour.php"=>"friendcurrent", "friends.php"=>"friendcurrent", "friend_accept.php"=>"friendcurrent", "fvideos.php"=>"friendcurrent", "gmembers.php"=>"homecurrent", "groups.php"=>"groupcurrent", "groups_home.php"=>"groupcurrent", "group_posts.php"=>"groupcurrent","gvideos.php"=>"groupcurrent", "help.php"=>"homecurrent", "inbox.php"=>"homecurrent", "index.php"=>"homecurrent", "invite_friends.php"=>"friendcurrent", "invite_members.php"=>"friendcurrent", "invite_signup.php"=>"friendcurrent", "login.php"=>"homecurrent", "makeavideo.php"=>"watchcurrent", "members.php"=>"communitycurrent", "more_tags.php"=>"homecurrent", "mygroup.php"=>"groupcurrent", "my_audio.php"=>"watchcurrent", "my_favour.php"=>"homecurrent", "my_group_edit.php"=>"groupcurrent", "my_playlist.php"=>"homecurrent", "my_profile.php"=>"homecurrent", "my_vdo_edit.php"=>"watchcurrent", "my_video.php"=>"watchcurrent", "outbox.php"=>"homecurrent", "pack_ops.php"=>"homecurrent", "payment.php"=>"", "pmt_success.php"=>"", "privacy.php"=>"homecurrent", "recoverpass.php"=>"homecurrent", "renew_account.php"=>"homecurrent", "rss_feeds.php"=>"homecurrent", "search.php"=>"homecurrent", "search_group.php"=>"groupcurrent", "search_result.php"=>"homecurrent", "signup.php"=>"homecurrent", "terms.php"=>"homecurrent", "uaudios.php"=>"watchcurrent", "ufavour.php"=>"homecurrent", "ufavour_audio.php"=>"homecurrent", "ufriends.php"=>"friendcurrent", "ugroups.php"=>"groupcurrent", "ugroup_members.php"=>"groupcurrent", "ugroup_videos.php"=>"groupcurrent", "uplaylist.php"=>"homecurrent", "upload.php"=>"uploadcurrent", "upload_music.php"=>"uploadcurrent", "upload_success.php"=>"uploadcurrent", "upload_success_music.php"=>"uploadcurrent", "uprofile.php"=>"communitycurrent", "uvideos.php"=>"watchcurrent", "video.php"=>"watchcurrent", "video1.php"=>"watchcurrent", "view_audio.php"=>"watchcurrent", "view_video.php"=>"watchcurrent"); $resultCurrent = @$listCurrent[$scriptName] ; if ($resultCurrent != ""){ ${$resultCurrent} = " id='currentTab' "; } else{ $homecurrent = " id='currentTab' "; } STemplate::assign('homecurrent',$homecurrent); STemplate::assign('uploadcurrent',$uploadcurrent); STemplate::assign('watchcurrent',$watchcurrent); STemplate::assign('groupcurrent',$groupcurrent); STemplate::assign('friendcurrent',$friendcurrent); STemplate::assign('channelscurrent',$channelscurrent); STemplate::assign('communitycurrent',$communitycurrent); } if (@$_SESSION["UID"] != ""){ $sql="SELECT * from signup WHERE UID='".$_SESSION["UID"]."'"; $rs = $conn->Execute($sql); $users = $rs->getrows(); } } {/php}
{insert name=additional_data } {if $upload_page eq 'upload'} <meta name="robots" content="index,nofollow" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> {/if} <link rel="alternate" type="application/rss+xml" title="RSS - 20 newest videos" href="rss/new/" /> <link rel="alternate" type="application/rss+xml" title="RSS - 20 most viewed videos" href="rss/views/" /> <link rel="alternate" type="application/rss+xml" title="RSS - 20 most commented videos" href="rss/comments/" /> <!--!!!!!!!!!!!!!!!!!!!!!!!! LIBRARY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--> <script src="{$baseurl}/ajax/cpaint2.inc.js" type="text/javascript"></script> <script src="{$baseurl}/js/myjavascriptfx.js" type="text/javascript"></script> <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> <!--!!!!!!!!!!!!!!!!!!!!!!!!! Processing SCRIPT !!!!!!!!!!!!!!!!!!!--> <script language="JavaScript" src="{$baseurl}/js/indexonly.js" type="text/javascript"></script> <script language="JavaScript" src="{$baseurl}/js/myjavascriptajax.js" type="text/javascript"></script> <script language="JavaScript" src="{$baseurl}/js/myjavascript.js" type="text/javascript"></script>
<link href="{$baseurl}/css/upload-progress.css" rel="stylesheet" type="text/css" /> <link href="{$baseurl}/css/style.css" rel="stylesheet" type="text/css" />
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> {if $upload_page eq 'upload'} <script language="JavaScript" type="text/javascript"> var tmp_sid = "{$tmp_sid}"; var disallow_extensions = {$disallow_extensions} var allow_extensions = {$allow_extensions}; var path_to_ini_status_script = "{$path_to_ini_status_script}"; var check_file_name_format = {$check_file_name_format}; var check_disallow_extensions = {$check_disallow_extensions}; var check_allow_extensions = {$check_allow_extensions}; var check_null_file_count = {$check_null_file_count}; var check_duplicate_file_count = {$check_duplicate_file_count}; var max_upload_slots = {$max_upload_slots}; var progress_bar_width = {$progress_bar_width}; </script> <script language="JavaScript" type="text/javascript" src="{$baseurl}/js/uu_file_upload.js"></script> {/if}
</head> <body {if $upload_page eq 'upload'}onLoad="iniFilePage()"{/if}> <div id="container"><!-- main container //-->
<div id="logo"><!-- logo //--> <a href="index.php"><img src="{$baseurl}/images/logo.gif" alt="Home" /></a> </div><!-- end logo //-->
{insert name="msg_count" assign=total_msg} {if $smarty.session.USERNAME ne ""}
<div id="login"><!-- login //--> Welcome, <a href="my_profile.php">{$smarty.session.USERNAME}</a> | <a href="inbox.php"> {if $total_msg eq ""} {assign var=mailIcon value="tpl_icon_message.gif"} {else} {assign var=mailIcon value="tpl_icon_new_message.gif"} {/if} <img src="{$imgurl}/{$mailIcon}" border="0" /> </a> (<a href="inbox.php"> {$total_msg} </a>) | <a href="{$baseurl}/my_profile.php">My Profile</a> | <a href="{$baseurl}/friends.php">Friends</a> | <a href="{$baseurl}/my_video.php">My Videos</a> | <a href="{$baseurl}/mygroup.php">My Groups</a> | <a href="logout.php">Log Out</a> | <a href="help.php">Help</a> </div><!-- end login //--> {else}
<div id="login"><!-- login //--> <a href="{$baseurl}/login.php"> Login</a> | <a href="{$baseurl}/signup.php"> SignUp</a> </div><!-- end login //--> {/if} <div id="search"><!-- search container //--> <form action="{$baseurl}/search_result.php" method="get" name="searchForm" id="searchForm"><!-- form //--> <div class="search_rl"><img src="{$baseurl}/images/search_left.gif" alt="" /></div> <div id="search_form"><!-- search form //--> Search for <input size="40" tabindex="1" maxlength="22" name="search_id" value="{$smarty.request.search_id}" class="s_for" /> in <select name="search_typ" tabindex="2"> {if $smarty.request.search_typ eq "search_videos"} <option value="search_videos" selected="selected">Search Videos</option> {else} <option value="search_videos">Search Videos</option> {/if} {if $smarty.request.search_typ eq "search_users"} <option value="search_users" selected="selected">Search Users</option> {else} <option value="search_users">Search Users</option> {/if} {if $smarty.request.search_typ eq "search_groups"} <option value="search_groups" selected="selected">Search Groups</option> {else} <option value="search_groups">Search Groups</option> {/if} </select> <input type="submit" name="submit" value=" " class="search_button" /> </div> <!-- end search form//--> <div class="search_rl"><img src="{$baseurl}/images/search_right.gif" alt="" /></div> </form><!-- end form //--> </div><!-- end search container //--> <div id="menu"> <!-- menu and upload bar //--> <div class="search_rll"><img src="{$baseurl}/images/menu_left.gif" alt="" /></div> <div id="navigation"> <div class="navigation_title"><a href="{$baseurl}/index.php" {$homecurrent}>Home</a></div> <div class="navigation_title"><a href="{$baseurl}/video.php?next=watch" {$watchcurrent}>Watch</a></div> <div class="navigation_title"><a href="{$baseurl}/channels.php" {$channelscurrent}>Channels</a></div> <div class="navigation_title"><a href="{$baseurl}/groups.php" {$groupcurrent}>Groups</a></div> <div class="navigation_title"><a href="{$baseurl}/members.php" {$communitycurrent}>Community</a></div> </div> <div id="upload_button"><a href="{$baseurl}/upload.php"><img src="{$baseurl}/images/upload.gif" alt="" /></a></div> <div class="search_rl"><img src="{$baseurl}/images/menu_right.gif" alt="" /></div> </div> <!-- end menu and upload bar //-->
|