Help Me/Question Fatal Error: Cannot Redeclare Clear_parse()

Status
Not open for further replies.
K

klmklm

Please find a solution to my problem....

I have followed the instruction by making the Admin folder set to 777 and also downloaded the FastTemplate and still having the following error:

Fatal error: Cannot redeclare clear_parse() in /home/arabicst/public_html/ig-shop/class.FastTemplate.php on line 644
my FastTemplate lines reads the following:

Code:
//	************************************************************
//	Aliased function - used for compatibility with CGI::FastTemplate
function clear_parse () 
   { 
      $this->removed(); 
   } 


//	************************************************************
//	Clears all variables set by assign()
What am I doing wrong? Your help is appretiated.....
 
L

laura

omg...

i got same error, and i dont know how to fix it!


here my trouble...
Code:
Fatal error: Cannot redeclare clear_parse() in /home/xlaucom/public_html/guiade11/class.FastTemplate.php on line 644
hey, anybody can help me??
 
S

squadracorse

Same problem as Laura here. Besides the symlink error (i use linux, but it gave errors), the Fatal error: Cannot redeclare clear_parse() stops showing anything. Could you please look into this? I also think that the images per item are too many, what is the use of making it 150 and 100 and 90 and 70? I think one big image say 600 (for site layout) and one of 150 will be more than enough. But i couldn't test it because of the error. Hope you can fix this, then i will promise to make a nice image upload script (one big and one thumb) which will make it very nice using GD2.
 
S

squadracorse

Ok the function clear_parse is put in one page twice, but with another sub function. Very strange way of programming.

FIRST:
Code:
function clear_parse ( $ReturnVar = "")
	{
		$this->clear($ReturnVar);
	}
which uses function clear:

Code:
function clear ( $ReturnVar = "" )
	{
		// Clears out hash created by call to parse()

		if(!empty($ReturnVar))
		{
			if( (gettype($ReturnVar)) != "array")
			{
				unset($this->$ReturnVar);
				return;
			}
			else
			{
				while ( list ($key,$val) = each ($ReturnVar) )
				{
					unset($this->$val);
				}
				return;
			}
		}

		// Empty - clear all of them

		while ( list ( $key,$val) = each ($this->HANDLE) )
		{
			$KEY = $key;
			unset($this->$KEY);
		}
		return;

	}	//	end clear()
SECOND ONE
Code:
function clear_parse ()
	{
		$this->clear_assign();
	}
clear_assign is:

Code:
function clear_assign ()
	{
		if(!(empty($this->PARSEVARS)))
		{
			while(list($Ref,$Val) = each ($this->PARSEVARS) )
			{
				unset($this->PARSEVARS["$Ref"]);
			}
		}
	}
 
R

RamsesII

Same Problem

Hi, I've the same problem!!!

The error is:


Fatal error: Cannot redeclare clear_parse() in /web/htdocs/www.irk.it/home/shop/admin/class.FastTemplate.php on line 647


auth.php as correct.

Please help me hehehehehe
 
I

imported_misi

commant only this line and not the all fuction :


// $this->removed();
 
Status
Not open for further replies.
Top