1
mouacy
xoopsOption[template_main] warning?
  • 2007/1/24 15:54

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


After install some modules, I have this warning. How do I fix this?

Quote:
Warning: xoopsOption[template_main] should be defined before including header.php in /home/content/e/c/a/ecahmaa/html/footer.php on line 68

2
vaughan
Re: xoopsOption[template_main] warning?
  • 2007/1/24 16:42

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


it will vary depending on the module.

basically you should edit the code, and move the line that says $xoopsOption['template_main'] = 'module_template.html'; above the line that says include XOOPS_ROOT_PATH . '/header.php';

ie.

$xoopsOption['template_main'] = 'your_module_template.html';
include 
XOOPS_ROOT_PATH '/header.php';

Login

Who's Online

186 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

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

Latest GitHub Commits