11
ackbarr
Re: I can't check my $moduyleconfig variables

If you are in a page (not a block) of a module, the XOOPS core retrieves module configuration variables and places them in the global variable $xoopsModuleConfig in /include/common.php

The configuration variables defined in xoops_version.php are stored in the XOOPS DB when a module is installed. Also, XOOPS creates a link in the administration menu for the module labeled "Preferences" where an admin can manipulate those values.

For your problem, if you turn on PHP debugging in System -> Preferences do any error messages appear on the page using your $xoopsModuleConfig variable?

12
Kalobotz
Re: I can't check my $moduyleconfig variables
  • 2004/10/7 15:08

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


I have the xmyReviews_admin_spaw switch set to 1(yes) in myReviews preferences.

Fatal errorCannot instantiate non-existent class: spaw_wysiwyg in /home/thinkres/public_html/TEST_Xoops/modules/myReviews/admin/index.php on line 284
Notice 
[PHP]: Constant €º‰ àP– already defined in file modules/myReviews/language/english/main.php line 402
Notice 
[PHP]: Constant b à:?  already defined in file modules/myReviews/language/english/main.php line 408
Notice 
[PHP]: Undefined variablexoopsModuleConfig in file modules/myReviews/admin/index.php line 59

13
Kalobotz
Re: I can't check my $moduyleconfig variables
  • 2004/10/7 15:26

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


Fatal errorCannot instantiate non-existent class: spaw_wysiwyg in /home/thinkres/public_html/TEST_Xoops/modules/myReviews/admin/index.php on line 284
Notice 
[PHP]: Constant ¸ßB¸ßBSIZE already defined in file modules/myReviews/language/english/main.php line 402
Notice 
[PHP]: Constant @ß• °ßBalready defined in file modules/myReviews/language/english/main.php line 408


This is when I add a global $xxopsModuleConfig variable but it should be reading it without it if it's a Xoopsglobal already. Hmm unless those two main.php errors have something to do with it.

Login

Who's Online

250 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 250


more...

Donat-O-Meter

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

Latest GitHub Commits