Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 28th January 2012, 09:37
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default PHP FATAL ERROR !!
Hello,
I am using TSSE 5.6 by Nightcrawler.

I have been looking around in my cpanel, and i was checking the error logs it prodiced.

I suddenly see this error message, going on and on

PHP Fatal error:
Cannot redeclare class page_verify in /home/myhost/public_html/include/class_page_check.php on line 13.


I will put MY class_page_check.php here . Please help

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
class page_verify
  
{
    function 
page_verify ()
    {
      if (
session_id () == '')
      {
        @
session_name ('TSSE_Session');
        @
session_start ();
      }

    }

    function 
create ($task_name 'Default')
    {
      global 
$CURUSER;
      
$_SESSION['Task_Time'] = time ();
      
$_SESSION['Task'] = securehash ('User_ID:' $CURUSER['id'] . '::TName-' $task_name '::' $_SESSION['Task_Time']);
      
$_SESSION['HTTP_USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
    }

    function 
check ($task_name 'Default')
    {
      global 
$CURUSER;
      if (
$_SESSION['HTTP_USER_AGENT'] != $_SERVER['HTTP_USER_AGENT'])
      {
        
define ('errorid'4);
        include_once 
TSDIR '/ts_error.php';
        exit ();
      }

      if (
$_SESSION['Task'] != securehash ('User_ID:' $CURUSER['id'] . '::TName-' $task_name '::' $_SESSION['Task_Time']))
      {
        
define ('errorid'4);
        include_once 
TSDIR '/ts_error.php';
        exit ();
      }

      
$this->create ();
    }
  }

  if (!
defined ('IN_SCRIPT_TSSEv56'))
  {
    exit (
'<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
  }

?>
Thank you for your help
Reply With Quote
  #2  
Old 28th January 2012, 10:20
DAKz's Avatar
DAKz DAKz is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 380
Arrow no error on line 13
I have checked all the versions I have of this (about 10 of them) and the page you posted is the same for all of them, line for line. Since you didn't inlude a server error I am guessing there wasn't one, so I would suggest rebooting the server and the site and see if it comes up again with the same error. I have looked through the site here and don't see where this has been an issue and I am running several versions of nightrawler in different flavors of mods not only on localhost but live and never seen this issue and sine those pages are the same as the one you have I can't see an issue there.
If you have any more info please post it and either me or some of the others can work it.

Bump: I have checked all the versions I have of this (about 10 of them) and the page you posted is the same for all of them, line for line. Since you didn't inlude a server error I am guessing there wasn't one, so I would suggest rebooting the server and the site and see if it comes up again with the same error. I have looked through the site here and don't see where this has been an issue and I am running several versions of nightrawler in different flavors of mods not only on localhost but live and never seen this issue and sine those pages are the same as the one you have I can't see an issue there.
If you have any more info please post it and either me or some of the others can work it.
Reply With Quote
  #3  
Old 29th January 2012, 12:34
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default
thanks for your answer.

i did reboot the server, but still the problem remains ..

Quote:
[Sun Jan 29 12:29:38 2012] [error] [client 218.92.73.2] PHP Fatal error: Cannot redeclare class page_verify in /home/cretetra/public_html/include/class_page_check.php on line 13
[Sun Jan 29 12:29:35 2012] [error] [client 178.128.157.90] PHP Fatal error: Cannot redeclare class page_verify in /home/cretetra/public_html/include/class_page_check.php on line 13
[Sun Jan 29 12:29:33 2012] [error] [client 218.92.73.2] PHP Fatal error: Cannot redeclare class page_verify in /home/cretetra/public_html/include/class_page_check.php on line 13
[Sun Jan 29 12:29:29 2012] [error] [client 178.128.157.90] PHP Fatal error: Cannot redeclare class page_verify in /home/cretetra/public_html/include/class_page_check.php on line 13
This is taken from CPanel error logs.
Please let me know if yoy need something more in order to understand
Thanks
Reply With Quote
  #4  
Old 29th January 2012, 14:14
Optix's Avatar
Optix Optix is offline
Senior Member
 
Join Date: Sep 2011
France
Posts: 145
Default
It's very clear enough to be understanded : you're declaring your class twice to PHP.

By experience, this error is caused with require() or include(). You've to change these with _once suffix : require_once().
Reply With Quote
  #5  
Old 30th January 2012, 12:33
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default
hey,

i can understand the error message, what i cannot undwerstand is WHY ??

I can remember i have changed in my .htaccess. I have added this line

Code:
php_flag magic_quotes_gpc off
,
in order to fix the problem with clients not showing SEEDS,LEECHERS,DOWNLOADED

Click the image to open in full size.

But i am not sure if that is the problem.

Thanks
Reply With Quote
Reply

Tags
error , fatal , php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 14:12. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.