Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Tbdev 2009 Problem (http://www.bvlist.com/showthread.php?t=8222)

ionut19alx 21st August 2012 22:33

Tbdev 2009 Problem
 
Hi, i have a problem with the tbdev 2009 source after uploading it on my server and configure it when i try to acces it the page is empty. All is white!!!
With the 2010 tbdev source i have no problem.Everything works fine.Anyone knows what i have to do? Thanks.
Sorry 4 my bad english.:sad:

firefly007 22nd August 2012 06:10

Quote:

Originally Posted by ionut19alx (Post 36197)
Hi, i have a problem with the tbdev 2009 source after uploading it on my server and configure it when i try to acces it the page is empty. All is white!!!
With the 2010 tbdev source i have no problem.Everything works fine.Anyone knows what i have to do? Thanks.
Sorry 4 my bad english.:sad:

Turn Display error messages on, so you can see what line the error is on.

But I me thinks it will be on index.php, try this on...

Code:


ob_start("ob_gzhandler");

require_once "include/bittorrent.php";
require_once "include/user_functions.php";

dbconn(true);

loggedinorreturn();

    $lang = array_merge( load_language('global'), load_language('index') );
    //$lang = ;
   
    $HTMLOUT = '';
/*
$a = @mysql_fetch_assoc(@mysql_query("SELECT id,username FROM users WHERE status='confirmed' ORDER BY id DESC LIMIT 1")) or die(mysql_error());
if ($CURUSER)
  $latestuser = "" . $a["username"] . "";
else
  $latestuser = $a['username'];
*/

    $registered = number_format(get_row_count("users"));
    //$unverified = number_format(get_row_count("users", "WHERE status='pending'"));
    $torrents = number_format(get_row_count("torrents"));
    //$dead = number_format(get_row_count("torrents", "WHERE visible='no'"));

    $r = mysql_query("SELECT value_u FROM avps WHERE arg='seeders'") or sqlerr(__FILE__, __LINE__);
    $a = mysql_fetch_row($r);
    $seeders = 0 + $a[0];
    $r = mysql_query("SELECT value_u FROM avps WHERE arg='leechers'") or sqlerr(__FILE__, __LINE__);
    $a = mysql_fetch_row($r);
    $leechers = 0 + $a[0];
    if ($leechers == 0)
      $ratio = 0;
    else
      $ratio = round($seeders / $leechers * 100);
    $peers = number_format($seeders + $leechers);
    $seeders = number_format($seeders);
    $leechers = number_format($leechers);


    //stdhead();
    //$HTMLOUT .= "
Welcome to our newest member, $latestuser!
\n";

    $adminbutton = '';
   
    if (get_user_class() >= UC_ADMINISTRATOR)
          $adminbutton = " News page\n";
         
    $HTMLOUT .= "

   
{$lang['news_title']}{$adminbutton}
";
     
    $res = mysql_query("SELECT * FROM news WHERE added + ( 3600 *24 *45 ) >
                    ".time()." ORDER BY added DESC LIMIT 10") or sqlerr(__FILE__, __LINE__);
                   
    if (mysql_num_rows($res) > 0)
    {
      require_once "include/bbcode_functions.php";

      $button = "";
     
      while($array = mysql_fetch_assoc($res))
      {
        if (get_user_class() >= UC_ADMINISTRATOR)
        {
          $button = "";
        }
       
        $HTMLOUT .= "
{$array['headline']}
\n";
       
        $HTMLOUT .= "".get_date( $array['added'],'DATE') . "{$button}\n";
       
        $HTMLOUT .= "
".format_comment($array['body'])."

\n";
       
     
      }
   
    }

    $HTMLOUT .= "
\n";


    $HTMLOUT .= "

   
{$lang['stats_title']}

   
     
     
     
     
     
     
     
      ";
     
    if (isset($peers))
    {
      $HTMLOUT .= "
     
     
      ";
    }
   
      $HTMLOUT .= "
{$lang['stats_regusers']}{$registered}
{$lang['stats_torrents']}{$torrents}
{$lang['stats_peers']}{$peers}
{$lang['stats_seed']}{$seeders}
{$lang['stats_leech']}{$leechers}
{$lang['stats_sl_ratio']}{$ratio}

     
";

/*

Server load



loadbarbg.gif"); background-repeat: repeat-x'>
if ($percent <= 70) $pic = "loadbargreen.gif";
elseif ($percent <= 90) $pic = "loadbaryellow.gif";
else $pic = "loadbarred.gif";
$width = $percent * 4;
print("$percent%"); ?>


*/

    $HTMLOUT .= sprintf("

{$lang['foot_disclaimer']}

", $TBDEV['site_name']);
   
    $HTMLOUT .= "";

///////////////////////////// FINAL OUTPUT //////////////////////

    print stdhead('Home') . $HTMLOUT . stdfoot();
?>


ionut19alx 22nd August 2012 13:46

I have replaced the index.php and nothing's change... How i turn "Display error messages" on? Thanks.

firefly007 25th August 2012 00:15

Quote:

Originally Posted by ionut19alx (Post 36200)
I have replaced the index.php and nothing's change... How i turn "Display error messages" on? Thanks.

Are you on shared hosting or dedi?

If one, Look in your Cpanel or plesk panel under php

If two, Edit your php.ini file found in etc/php5/apache2/php.ini

and look for this

Change this

Code:

display_errors = Off
to

Code:

display_errors = On

ionut19alx 26th August 2012 03:26

Quote:

Originally Posted by firefly007 (Post 36212)
Are you on shared hosting or dedi?

If one, Look in your Cpanel or plesk panel under php

If two, Edit your php.ini file found in etc/php5/apache2/php.ini

and look for this

Change this

Code:

display_errors = Off
to

Code:

display_errors = On


Ok, I've done that and now I got this error:
Quote:

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/tracker/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
Bump: Nobody knows? :sos:


All times are GMT +2. The time now is 22:48.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.