[CLS]_Airborne328
June 6th, 2005, 13:54
Afternoon -=DoW=-.
Can someone take a look at this error for me.
I am creating a new forum for new site using phpbb, and all is fine, except when I installed this theme.
http://www.combatlifesavers.us/forumtest/index.php
When posting or creating a topiv, you get this error
Parse error: parse error, unexpected '}' in /var/www/html/forumtest/includes/template.php(127) : eval()'d code on line 298
and this is area where line 298 is at
// This one will handle varrefs WITH namespaces
$varrefs = array();
preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs);
$varcount = sizeof($varrefs[1]);
for ($i = 0; $i < $varcount; $i++)
[color=red]LINE#298[/color] {
$namespace = $varrefs[1][$i];
$varname = $varrefs[3][$i];
$new = $this->generate_block_varref($namespace, $varname);
$code = str_replace($varrefs[0][$i], $new, $code);
} [color=red]Line#298[/color]
// This will handle the remaining root-level varrefs
$code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', '\' . ( ( isset($this->_tpldata[\'.\'][0][\'\1\']) ) ? $this->_tpldata[\'.\'][0][\'\1\'] : \'\' ) . \'', $code);
// Break it up into lines.
$code_lines = explode("\n", $code);
I know parse erros are usually simple, missing letter or text etc..However I cant find anything there.
Anyone who could look at this, I thank you in advance
I tried removing the "}", but that caused another error :(
below is link to template.php, the one with the issue.
http://www.combatlifesavers.us/downloads/template.ace
Can someone take a look at this error for me.
I am creating a new forum for new site using phpbb, and all is fine, except when I installed this theme.
http://www.combatlifesavers.us/forumtest/index.php
When posting or creating a topiv, you get this error
Parse error: parse error, unexpected '}' in /var/www/html/forumtest/includes/template.php(127) : eval()'d code on line 298
and this is area where line 298 is at
// This one will handle varrefs WITH namespaces
$varrefs = array();
preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs);
$varcount = sizeof($varrefs[1]);
for ($i = 0; $i < $varcount; $i++)
[color=red]LINE#298[/color] {
$namespace = $varrefs[1][$i];
$varname = $varrefs[3][$i];
$new = $this->generate_block_varref($namespace, $varname);
$code = str_replace($varrefs[0][$i], $new, $code);
} [color=red]Line#298[/color]
// This will handle the remaining root-level varrefs
$code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', '\' . ( ( isset($this->_tpldata[\'.\'][0][\'\1\']) ) ? $this->_tpldata[\'.\'][0][\'\1\'] : \'\' ) . \'', $code);
// Break it up into lines.
$code_lines = explode("\n", $code);
I know parse erros are usually simple, missing letter or text etc..However I cant find anything there.
Anyone who could look at this, I thank you in advance
I tried removing the "}", but that caused another error :(
below is link to template.php, the one with the issue.
http://www.combatlifesavers.us/downloads/template.ace