Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Results 1 to 6 of 6

Thread: Fatal error: Cannot redeclare clear_parse()

  1. #1
    klmklm is offline Junior Member
    Join Date
    Jul 2003
    Posts
    2

    Default Fatal error: Cannot redeclare clear_parse()

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

  2. #2
    laura is offline Junior Member
    Join Date
    Jul 2003
    Posts
    1

    Default

    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??

  3. #3
    squadracorse is offline Junior Member
    Join Date
    Jul 2003
    Posts
    2

    Default

    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.

  4. #4
    squadracorse is offline Junior Member
    Join Date
    Jul 2003
    Posts
    2

    Default

    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"]);
    			}
    		}
    	}

  5. #5
    RamsesII is offline Junior Member
    Join Date
    Aug 2003
    Posts
    2

    Default 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

  6. #6
    imported_misi Guest

    Default

    commant only this line and not the all fuction :


    // $this->removed();

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fatal error
    By pteixeira in forum iG Shop
    Replies: 1
    Last Post: 04-10-2004, 12:36 AM
  2. Another redeclare clear_parse() problem
    By Muiter in forum iG Shop
    Replies: 0
    Last Post: 02-29-2004, 04:16 PM
  3. Fatal error: Cannot redeclare clear_parse()...
    By valpenguin in forum iG Shop
    Replies: 3
    Last Post: 12-14-2003, 04:12 AM
  4. Fatal error
    By hadaverde in forum iG Shop
    Replies: 2
    Last Post: 08-27-2003, 09:31 PM
  5. Error: not redeclare clear_parse()
    By RamsesII in forum iG Shop
    Replies: 1
    Last Post: 08-21-2003, 08:27 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124