Sida 1 av 1

Parse error

Postat: 2004-10-06 17:21
av GustaFsson
Har ett litet fel här, när jag ska trycka på någon profil i t.ex. medlemslistan så får jag detta felmeddelande, jag har försökt rätta till det ett bra tag nu så nu ber jag om hjälp istället
Parse error: parse error, unexpected '}' in d:\wwwroot\users\web_gustafsson\gustafsson.webhosting.tant102.mine.nu\fbu_hv\includes\template.php(119) : eval()'d code on line 33
Någon som vet?

Postat: 2004-10-06 18:06
av PazZze
det verkar som om det hittade en oförvänad symbol } tror du måste lyckats peta dit en sådan. (eller tagit bor om jag är gissar helt fel :roll:)

Postat: 2004-10-06 21:33
av Holger
Posta din template.php fil här så tar vi oss en titt.
Har du installerat ngn modd som medförde ändringar i template.php?

Postat: 2004-10-06 22:31
av GustaFsson
har dessa moddar installerade
smartor album
ezportal
rank in memberlist
admin userlist 202
userlist
Stop Author View Increase


Line 33: (är nog inge fel med den så jag fattar inte varför det stog "on line 33")
// Hash of filenames for each template handle.
/**
* 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.
<!--här är line 119--> eval($this->compiled_code[$handle]);
return true;
}

Postat: 2004-10-06 22:39
av GustaFsson
GustaFsson skrev:har dessa moddar installerade
smartor album
ezportal
rank in memberlist
admin userlist 202
userlist
Stop Author View Increase
newsmod203


Line 33: (är nog inge fel med den så jag fattar inte varför det stog "on line 33")
// Hash of filenames for each template handle.
/**
* 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.
<!--här är line 119--> eval($this->compiled_code[$handle]);
return true;
}