1
jordi_rc
undefined index errors in header.php
  • 2006/10/13 14:17

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Salute to all XOOPS friends.

I am trying to remove bugs from modules.

I've noticed many modules throw errors like this:

Undefined index: ... in file /header.php line ...

Where I put the ... there is a number.
The lines where the errors are produced in header.php usually go from 88 to 98.

What are this errors? How to fix them?

I suppose they have to do with something that is not done following all XOOPS protocols. Maybe something that has to deal with templates or some declaration.

What is?
Please help to fix.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR

2
phppp
Re: undefined index errors in header.php
  • 2006/10/13 14:25

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


it is a notice msg. You can disable php debug or change the line
$xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][ $xoopsModule->getVar('mid', 'n') ];

3
jordi_rc
Re: undefined index errors in header.php
  • 2006/10/14 9:22

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Thanks phppp!

I am runing my XOOPS site in debug mode to find the bugs.

Do you mean that I would simply ignore these messages? They are not important?

I also read in the faqs that messages like "blabla by reference...should be returned by reference" are just to be ignored.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR

Login

Who's Online

340 user(s) are online (216 user(s) are browsing Support Forums)


Members: 0


Guests: 340


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