Analizuje sobie listę moich błędów E_NOTICE i widzę tutaj sporo błędów zwracanych w klasie szablonów. Chodzi o engine z webcity
Na stronie głównej wyrzuca mi tyle Notice'ów:
Cytat
Notice: Undefined index: TITLE in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 1
Notice: Undefined index: ALL_IN_ONE in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 16
Notice: Undefined index: DODANO_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 17
Notice: Undefined index: ZALOGOWANY_EMAIL in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 26
Notice: Undefined index: P_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: Z_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: D4_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
`
Notice: Undefined index: M_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: PM_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: ID_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: S_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: S_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: MIN in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 137
Notice: Undefined index: MAX in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 137
Notice: Undefined index: ALL_IN_ONE in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 16
Notice: Undefined index: DODANO_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 17
Notice: Undefined index: ZALOGOWANY_EMAIL in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 26
Notice: Undefined index: P_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: Z_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: D4_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
`
Notice: Undefined index: M_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: PM_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: ID_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: S_form_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: S_var in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 36
Notice: Undefined index: MIN in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 137
Notice: Undefined index: MAX in /home/domains/public_html/functions/functions_templates.php(88) : eval()'d code on line 137
Po małej analizie okazało sie, że jeżeli w szablonie są użyte znaczniki np {ID_form} a w kodzie php nie jest dany znacznik zadeklarowany w taki sposób: $tpl -> assign_block('ID_form',$id); to wtedy wyrzuca ten notice.
Próbowałem poprawić ten mechanizm szablonów, żeby nie wyrzucał w takim przypadku Notic'ów jednak nie udało mi się tego zrobic. Zbyt małe mam mozliwości, żeby ingerować w tą klase.
Cały kod do wglądu tutaj: http://ideone.com/kiFrg
Będe bardzo wdzięczny za wszelkie wypowiedzi.