1
dhansen
Undefined variable errors in Sections and Partners
  • 2003/12/10 12:29

  • dhansen

  • Just popping in

  • Posts: 59

  • Since: 2003/12/6


I am seeing the following in the Sections and Partners modules, respectively. I have not mucked around with the code in either of these, so I don't think it's something I broke (but ya never know...)

Notice: Undefined variable: xoopsUserIsAdmin in /home/dhansen/www/xoops/header.php on line 91

Notice: Undefined variable: array_partners in /home/dhansen/www/xoops/modules/xoopspartners/index.php on line 68

dh


2
Mithrandir
Re: Undefined variable errors in Sections and Partners

Notices CAN indicate that something is not right - but sometimes it is just a simple
if ($variable) {
code code code
}

now if $variable is not set at the time, it raises a notice.

It is only a problem if it is SUPPOSED to be set and it is not. If the code works, no problem.

3
dhansen
Re: Undefined variable errors in Sections and Partners
  • 2003/12/10 14:48

  • dhansen

  • Just popping in

  • Posts: 59

  • Since: 2003/12/6


MithyT2 wrote:
Quote:
It is only a problem if it is SUPPOSED to be set and it is not.


If these modules are exhibiting this error "out of the box" I would think that this is the case, no?

dh

4
dhansen
Re: Undefined variable errors in Sections and Partners
  • 2003/12/12 16:48

  • dhansen

  • Just popping in

  • Posts: 59

  • Since: 2003/12/6


In case anyone else ever bumps into this:

I've found that I only get this error when I have PHP debugging turned on.

5
CBlue
Re: Undefined variable errors in Sections and Partners

It's a notice, not an error.

If it were an error, it would say "error", not "notice".

Login

Who's Online

410 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 410


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