stuck with php error

Associate
Joined
4 Nov 2002
Posts
902
Location
NE Scotland
I'm new to php and getting this error with phpbb afer installing a mod. I know what the error means, but the line number referred to doesn't look like the right one.

Parse error: syntax error, unexpected '}' in /usr/local/psa/home/vhosts/domain.com/httpdocs/forums/includes/template.php(127) : eval()'d code on line 42

on line 126-128 of template.php, this code looks like the culprit but can't see where the error is.

Code:
// Run the compiled code.
eval ($this->compiled_code[$handle]);
return true;
}

Would be very grateful for any help with this, thanks
 
This is line 42-53

Code:
// Hash of filenames for each template handle.
var $files = array();

// Root template directory.
var $root = "";

// this will hash handle names to the compiled code for that handle.
var $compiled_code = array();

// This will hold the uncompiled code for that handle.
var $uncompiled_code = array();
 
Last edited:
unexpected '}' usually means you've missed a ";" at the end of the previous line (before the "}".
 
Back
Top Bottom