AW: [SMARTY] Debug console error with smarty 2.0.1
| From: | Werner Schweizer | Date: | Wed, 17 Apr 2002 16:49:48 +0000 |
| Subject: | AW: [SMARTY] Debug console error with smarty 2.0.1 | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3793@lists.php.net to get a copy of this message | ||
> -----Ursprüngliche Nachricht-----
> Von: Werner Schweizer [mailto:W.Schweizer@swissonline.ch]
> Gesendet: Mittwoch, 17. April 2002 18:08
> An: smarty-general@lists.php.net
> Betreff: [SMARTY] Debug console error with smarty 2.0.1
>
>
> When I'm turning debug on, I get a warning:
>
> Warning: Undefined offset: 0 in
> c:\inetpub\wwwroot\Smarty\Smarty-2.0.1\plugins\function.assign
> _debug_inf
> o.php on line 15
>
> and no debug console is displayed.
>
> Werner Schweizer
>
As additional informations I put here the last part of the generated
HTML-code.
It contains some warnings.
---------------------------------------------------------------------
<hr>
letzte Modifikation dieser Seite: Sat, 06 Apr 2002 10:29:52
GMT</body></html><!-- Smarty 2.0.1 2002-04-17 18:44:37 Westeuropäische
Sommerzeit -->
<SCRIPT language=javascript>
_smarty_console =
window.open("","Console_"+self.name,"width=680,height=600,resizable,scro
llbars=yes");
_smarty_console.document.write("<HTML><TITLE>Smarty Debug
Console for "+self.name+"</TITLE><BODY bgcolor=#ffffff>");
_smarty_console.document.write("<table border=0 width=100%>");
_smarty_console.document.write("<tr bgcolor=#cccccc><th
colspan=2>Smarty Debug Console</th></tr>");
_smarty_console.document.write("<tr bgcolor=#cccccc><td
colspan=2><b>included templates & config files (load time in
seconds):</b></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#eeeeee><td colspan=2><tt><font color=brown>main.tpl</font>
<font size=-1><i>(0.14508)
(total)</i></font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#fafafa><td colspan=2><tt><font color=green>options.conf []
local</font> <font
size=-1><i>(0.00008)</i></font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#eeeeee><td colspan=2><tt> <font
color=brown>htmlgn.tpli</font> <font
size=-1><i>(0.11711)</i></font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#fafafa><td colspan=2><tt> <font
color=green>../configs/options.conf [html] local</font> <font
size=-1><i>(0.00008)</i></font></tt></td></tr>");
_smarty_console.document.write("<tr bgcolor=#cccccc><td
colspan=2><b>assigned template variables:</b></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#eeeeee><td valign=top><tt><font
color=blue>{$ApplVars}</font></tt></td><td nowrap><tt><font
color=green><br>
<b>Warning</b>: Object to string conversion in
<b>c:\inetpub\wwwroot\Smarty\Smarty-2.0.1\plugins\modifier.debug_print_v
ar.php</b> on line <b>24</b><br>
<br>
<b>Warning</b>: Object to string conversion in
<b>c:\inetpub\wwwroot\Smarty\Smarty-2.0.1\plugins\modifier.debug_print_v
ar.php</b> on line <b>29</b><br>
<b>Array (22)</b><br>\r<b>CopyrightY</b> => 2002
<br>\r<b>Today</b>
=> Wednesday, 17. April 2002<br>\r<b>CompileTime</b> => Wed, 17
Apr 2002 16:44:36 GMT<br>\r<b>ContentsDate</b> => Sat, 06 Apr 2002
10:29:52 GMT<br>\r<b>CallType</b> => 1<br>\r<b>TplId</b>
=>
IndexTest.php;file=webinfo<br>\r<b>XHTML</b> =>
<br>\r<b>WwwStrict</b> => <br>\r<b>Caching</b> =>
1<br>\r<b>ContentsFile</b> =>
webinfo<br>\r<b>TemplateFile</b> =>
htmlgn<br>\r<b>ContentsPath</b> =>
../GuteNachricht/gn1/info<br>\r<b>MenuNumber</b> =>
55<br>\r<b>Title</b> => Webseite<br>\r<b>PageKind</b>
=>
main<br>\r<b>FrameSet</b> => <br>\r<b>TargetFrame</b>
=>
Mainframe<br>\r<b>Description</b> =>
<i>empty</i><br>\r<b>Keywords</b> =>
<i>empty</i><br>\r<b>Topic</b>
=> <i>empty</i><br>\r<b>XmlNode</b> =>
Object<br>\r<b>Contents</b>
=>
../GuteNachricht/gn1/info/webinfo.html</font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#fafafa><td valign=top><tt><font
color=blue>{$CloseTag}</font></tt></td><td nowrap><tt><font
color=green><i>empty</i></font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#eeeeee><td valign=top><tt><font
color=blue>{$Menu}</font></tt></td><td nowrap><tt><font
color=green><br>
<b>Warning</b>: Object to string conversion in
<b>c:\inetpub\wwwroot\Smarty\Smarty-2.0.1\plugins\modifier.debug_print_v
ar.php</b> on line <b>24</b><br>
<br>
<b>Warning</b>: Object to string conversion in
<b>c:\inetpub\wwwroot\Smarty\Smarty-2.0.1\plugins\modifier.debug_print_v
ar.php</b> on line <b>29</b><br>
Object</font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#fafafa><td valign=top><tt><font
color=blue>{$PathVars}</font></tt></td><td nowrap><tt><font
color=green><b>Array (20)</b><br>\r<b>MyHome</b> =>
/inetpub/wwwroot/Ich<br>\r<b>MyScriptURL</b> =>
http://wschweizer1/Ich/IndexTest.php<br>\r<b>MyURL</b>
=>
http://wschweizer1/Ich<br>\r<b>MyScript</b>
=>
IndexTest.php<br>\r<b>ScriptPathAbs</b> =>
/inetpub/wwwroot/Ich/IndexTest.php<br>\r<b>SmartyPathAbs</b> =>
/inetpub/wwwroot/Smarty<br>\r<b>SmartyPathRel</b> =>
../Smarty<br>\r<b>SmartyURL</b> =>
http://wschweizer1/Smarty<br>\r<b>PhpVersion</b>
=>
PHP-4.1.2<br>\r<b>SmartyVersion</b> =>
Smarty-2.0.1<br>\r<b>PhpSApiName</b> =>
cgi<br>\r<b>ApplicationRel</b> =>
../GuteNachricht/gn1<br>\r<b>ApplicationAbs</b> =>
/inetpub/wwwroot/GuteNachricht/gn1<br>\r<b>ApplicationUrl</b> =>
http://wschweizer1/GuteNachricht/gn1<br>\r<b>ApplPhpRel</b>
=>
../GuteNachricht/gn1/PHP<br>\r<b>ApplMenuRel</b> =>
../GuteNachricht/gn1/Menu/menu.xml<br>\r<b>ApplScriptsRel</b> =>
scripts<br>\r<b>ApplStylesRel</b> =>
../GuteNachricht/gn1/styles<br>\r<b>ApplConfigRel</b> =>
configs<br>\r<b>ApplTemplatesRel</b> =>
templates</font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#eeeeee><td valign=top><tt><font
color=blue>{$SCRIPT_NAME}</font></tt></td><td nowrap><tt><font
color=green>/Ich/IndexTest.php</font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#fafafa><td valign=top><tt><font
color=blue>{$contentsFile}</font></tt></td><td nowrap><tt><font
color=green>gugus/webinfo</font></tt></td></tr>");
_smarty_console.document.write("<tr bgcolor=#cccccc><td
colspan=2><b>assigned config file variables (outter template
scope):</b></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#eeeeee><td valign=top><tt><font
color=maroon>{#files#}</font></tt></td><td><tt><font
color=green><b>Array (1)</b><br>\r<b>options.conf</b> =>
1</font></tt></td></tr>");
_smarty_console.document.write("<tr
bgcolor=#fafafa><td valign=top><tt><font
color=maroon>{#vars#}</font></tt></td><td><tt><font
color=green><b>Array
(17)</b><br>\r<b>title</b> => Titel: Meine
Testseite<br>\r<b>organization</b> => Organisation:
ich<br>\r<b>copyright</b> => Copyright: Werner
Schweizer<br>\r<b>Description</b> => Dies ist meine
Testseite<br>\r<b>Keywords</b> => Werner, Schweizer, Werner
Schweizer<br>\r<b>Topic</b> =>
Testseite<br>\r<b>noDoctype</b> =>
<br>\r<b>noScripts</b> => 1<br>\r<b>noStyles</b>
=>
<br>\r<b>xhtml</b> => <br>\r<b>strict</b> =>
<br>\r<b>debug</b>
=> 1<br>\r<b>debugJs</b> => <br>\r<b>autonavig</b>
=>
1<br>\r<b>compile_check</b> => 1<br>\r<b>caching</b>
=>
1<br>\r<b>cutoff_size</b> =>
50</font></tt></td></tr>");
_smarty_console.document.write("</table>");
_smarty_console.document.write("</BODY></HTML>");
_smarty_console.document.close();
</SCRIPT>
---------------------------------------------------------------------
TIA
Werner Schweizer