Parse error:

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
Luciouslinda
Registered User
Posts: 190
Joined: Thu Dec 26, 2002 6:12 am
Location: Singapore

Parse error:

Post by Luciouslinda »

Parse error: parse error in /home/htdocs/hosted/starwars/xxx.xxx.xxx/forum/includes/template.php(127) : eval()'d code on line 98


I keep getting this come up when i try to open a topic!!!!

This is the section of code around there but i do not know what is wrong!!!
Can anyone help please!!

Code: Select all

reset($filename_array);
		while(list($handle, $filename) = each($filename_array))
		{
			$this->files[$handle] = $this->make_filename($filename);
		}

		return true;
	}


	/**
	 * Load the file for the handle, compile the file,
	 * and run the compiled code. This will print out
	 * the results of executing the template.
	 */
	function pparse($handle)
	{
		if (!$this->loadfile($handle))
		{
			die("Template->pparse(): Couldn't load template file for handle $handle");
		}

		// actually compile the template now.
		if (!isset($this->compiled_code[$handle]) || empty($this->compiled_code[$handle]))
		{
			// Actually compile the code now.
			$this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle]);
		}

		// Run the compiled code.
		eval($this->compiled_code[$handle]);
		return true;
	}
Linda
User avatar
zeroK
Former Team Member
Posts: 20964
Joined: Sun Jan 20, 2002 7:36 pm
Location: Klagenfurt / Austria
Contact:

Post by zeroK »

Do you have installed any mods or changed anything in the templates?
Image My weblog | gamerslog.com | No support via PM or ICQ or email - If you don't know a term or a program mentioned in a post -> Google is your friend
Luciouslinda
Registered User
Posts: 190
Joined: Thu Dec 26, 2002 6:12 am
Location: Singapore

Post by Luciouslinda »

I have not changed anything in the templates.php file!!!!!

But i have changed the templates yes, i am running 2 templates and these are subSilver and subPortal!!!!!

Any help please!
Linda
User avatar
Techie-Micheal
Security Consultant
Posts: 19511
Joined: Sun Oct 14, 2001 12:11 am
Location: In your servers

Post by Techie-Micheal »

How about MODs installed?
Proven Offensive Security Expertise. OSCP - GXPN
Luciouslinda
Registered User
Posts: 190
Joined: Thu Dec 26, 2002 6:12 am
Location: Singapore

Post by Luciouslinda »

Ermmm i have got

Account Activation
Admin Forum Icons
Admin Register
Admin Mod Colours
BBCode
Member Number In Viewtopic
Quick Reply
Random Users
Rank In Memberlist

But i did not get this until i installed the Quick Reply MOD, but that does not touch the templates.php neither do any of the others!!!
Linda
User avatar
Techie-Micheal
Security Consultant
Posts: 19511
Joined: Sun Oct 14, 2001 12:11 am
Location: In your servers

Post by Techie-Micheal »

Alrighty. You'll have to uninstall those MODs. :P
Proven Offensive Security Expertise. OSCP - GXPN
Locked

Return to “2.0.x Support Forum”