1
knight
theme problem ?
  • 2003/10/19 5:40

  • knight

  • Just popping in

  • Posts: 29

  • Since: 2002/12/29


after patch from 2.03 to 2.05, if i on the debug mode getting all these error, is these because the theme problem ?

Quote:
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: xoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined property: _extract in file templates_c/db%3Asystem_block_topusers.html line 8
Notice [PHP]: Undefined property: _extract in file templates_c/db%3Asystem_block_topusers.html line 8
Notice [PHP]: Undefined property: _extract in file templates_c/db%3Asystem_block_topusers.html line 8
Notice [PHP]: Undefined property: _extract in file templates_c/db%3Asystem_block_topusers.html line 8
Notice [PHP]: Undefined property: _extract in file templates_c/db%3Asystem_block_topusers.html line 8
Notice [PHP]: Undefined offset: 1 in file modules/xoopsgallery/blocks/xoopsgallery_blocks.php line 78
Notice [PHP]: Undefined variable: bShowCreatedDate in file modules/xoopsgallery/blocks/xoopsgallery_blocks.php line 93
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_posts in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 62
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 69
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 76
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 62
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 69
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 76
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 62
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 69
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 76
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 62
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 69
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 76
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 62
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 69
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 76
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 62
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 69
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 76
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 62
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 69
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 76
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 62
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 69
Notice [PHP]: Undefined index: topic_order in file templates_c/db%3Anewbb_thread.html line 76
Notice [PHP]: Undefined index: lang_top in file templates_c/db%3Anewbb_viewtopic_flat.html line 93
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96

2
Herko
Re: theme problem ?
  • 2003/10/19 9:40

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


That's just Smarty not having defined every variable in advance, and that produces these notices. They're nothing to worry about tho, your website should function as normal

Herko

3
knight
Re: theme problem ?
  • 2003/10/19 12:11

  • knight

  • Just popping in

  • Posts: 29

  • Since: 2002/12/29


oo thanx Herko ..

the site was function as normal, its just that so many error is hard to trace when there is "real" problem occur..

so the problem actually because of smarty right ? thanx ..

4
skalpa
Re: theme problem ?
  • 2003/10/19 12:42

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Precisely, the resource.db.php problem is coming from an error in this file.
As I said in a previous post you can already get the updated version in CVS if you want, as it has other advantages and works with the 2.0.5 kernel.

The ones coming from /templates_c/xxxxxx.html come from the template files, not really smarty. As a general rule, if you want to use a variable in your template but are not sure it will be defined, you should test for its existence like this:

<{if isset($myvar)}><{$myvar}><{/if}>


Skalpa.>

5
johny
Re: theme problem ?
  • 2003/10/24 22:23

  • johny

  • Just popping in

  • Posts: 23

  • Since: 2003/8/25


I also got the following messages displayed and I'd like to get rid of them so I can troubleshoot the real problems later.

Notice [PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 17
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 23
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 71
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 77
Notice 
[PHP]: Undefined variablefile_path in file class/smarty/plugins/resource.db.php line 96
Notice 
[PHP]: Undefined indexlang_rememberme in file templates_c/db%3Asystem_block_login.html line 7
Notice 
[PHP]: Undefined indexsslloginlink in file templates_c/db%3Asystem_block_login.html line 10
Notice 
[PHP]: Undefined indexxoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 17
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 23
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 71
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 77
Notice 
[PHP]: Undefined variablefile_path in file class/smarty/plugins/resource.db.php line 96
Notice 
[PHP]: Undefined indexmodules in file templates_c/db%3Asystem_block_mainmenu.html line 10
Notice 
[PHP]: Undefined indexxoops_module_header in file templates_c/default^theme.html line 35


After downloeading the latest resource.db.php (http://cvs.sourceforge.net/viewcvs.py/xoops/xoops2/class/smarty/plugins/resource.db.php) I only have three errors left.

Notice [PHP]: Undefined indexxoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexmodules in file templates_c/db%3Asystem_block_mainmenu.html line 10
Notice 
[PHP]: Undefined indexxoops_module_header in file templates_c/default^theme.html line 35


Any ideas how to get rid of those?

6
johny
Re: theme problem ?
  • 2003/10/24 22:49

  • johny

  • Just popping in

  • Posts: 23

  • Since: 2003/8/25


One more...

If I turn on the 'site closed' function, I get this displayed:

Warning [PHP]: fopen("/MY_PATH/cache/db%3Asystem_siteclosed.html""r") - No such file or directory in file class/smarty/Smarty.class.php line 1998
Notice 
[PHP]: Undefined indexxoops_sitename in file templates_c/db%3Asystem_siteclosed.html line 12


OK I do know that I can turn them off (and when the new site will be ready for public I will do that) but I really do want to eliminate any problems first...

Login

Who's Online

292 user(s) are online (218 user(s) are browsing Support Forums)


Members: 0


Guests: 292


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits