Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   PHP FATAL ERROR !! (http://www.bvlist.com/showthread.php?t=7561)

nikosuk 28th January 2012 09:37

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

DAKz 28th January 2012 10:20

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.

nikosuk 29th January 2012 12:34

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

Optix 29th January 2012 14:14

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().

nikosuk 30th January 2012 12:33

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

http://img513.imageshack.us/img513/7919/18592315.jpg

But i am not sure if that is the problem.

Thanks


All times are GMT +2. The time now is 00:15.

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