Parse error: syntax error, unexpected '}' in diye hata

phpBB 2.0.x kurulum ve çalıştırılmasında meydana gelen sorun ve problemler için buradan yardım alabilirsiniz.
Kilitli
muratdur
Kayıtlı Kullanıcı
Mesajlar: 7
Kayıt: 02.01.2007, 16:15
İletişim:

Parse error: syntax error, unexpected '}' in diye hata

Mesaj gönderen muratdur »

arkadaşlar bir yardımcı olur musunuz lütfen

Parse error: syntax error, unexpected '}' in /home/XXXX/domains/XXXX/public_html/forum/includes/template.php(127) : eval()'d code on line 118

diye hata veriyor

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;
}

/**
* Inserts the uncompiled code for $handle as the
* value of $varname in the root-level. This can be used
* to effectively include a template in the middle of another
* template.
* Note that all desired assignments to the variables in $handle should be done
* BEFORE calling this function.
*/
function assign_var_from_handle($varname, $handle)

anti_robot_login_v114 yükledim ve daha sonra çalışmadı geri sildim bu şekilde oldu bir yardımı olursanız sevnirim
HaYaL-eT
Kayıtlı Kullanıcı
Mesajlar: 311
Kayıt: 02.08.2006, 21:13
İletişim:

Mesaj gönderen HaYaL-eT »

118. satır o kalınla yazdığınızsa

Kod: Tümünü seç

eval($this->compiled_code[$handle]);
return true;
}
şeklinde olan kodu

Kod: Tümünü seç

eval($this->compiled_code[$handle]);
return true;
şeklinde değiştirin yani return true;dan bir alt satır sonra gelen "}" simgesini silin..

Bu gibi durumlarda size verdiği daha kodu: /home/XXXX/domains/XXXX/public_html/forum/includes/template.php dosyasının 118. satırında ( ya da civarında) fazla olan bir "}" işareti olduğunu söylemektedir..

Yani bir yere size verilen kod dışında fazla bir simge eklerseniz bu hata kodu çıkabilir.. Ya da siz modu kaldırırken o işareti silmeyi unutmuş da olabilirsiniz..
Lütfen MSNden ve özelden yardım istemeyin..
Kilitli

“2.0.x Destek Forumu” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Bing [Bot] ve 1 misafir