I can't figure out where this error is located. Line 1 is <?php
also i'm using a phpIDE app and its not showing any errors / missing braces.
PHP Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/ratemy/public_html/kernel/parser.php(190) : eval()'d code on line 1
code lines from 167 - 200... line 190 is marked below.
# Format replaced vars
function do_format($value,$s) {
global $en;
$value = (isset($en[$value]) ? $en[$value] : @constant($value));
$i = strtolower($s);
if (strpos($i,'echo') || strpos($i,'define')) {
$value = str_replace('"','`',$value);
$value = str_replace(chr(39),'`',$value);
}
return $value;
}
# Execute template block
function exec_block($start, $end, $jump = -2) {
$this->tpi = $start - 1;
while ($this->tpi < $end) {
$s = $this->templ_read();
$this->s = $this->template_replace_vars($s);
if ($this->act[$this->tpi] == 'continue_loop') return false;
if ($this->act[$this->tpi] == 'break_loop') {
$this->cancel_loop = true;
return false;
}
eval('$this->'.$this->act[$this->tpi].'();'); // LINE 190
}
if ($jump != -2)
$this->tpi = $jump;
}
# Echo a line
function do_print() {
echo $this->s;
}
... snippet
there is more too the file is there a way I can figure out where this error is actually at?
eval()
– knittl Jan 11 '12 at 12:21/home/ratemy/public_html/kernel/parser.php
? – jere Jan 11 '12 at 12:32()
ineval('$this->'.$this->act[$this->tpi].'();');
? the error says there's an unexpected parentheses – jere Jan 11 '12 at 16:08