1
djayc2104
Unknown error always coming up!
  • 2006/11/14 22:26

  • djayc2104

  • Just popping in

  • Posts: 40

  • Since: 2006/9/26


Hi,
I keep getting an error in XOOPS 2.0.15.
The error I get is
<B>undefined index: 29 in file /header.php</B>
Does anyone know what this is because I cannot seem to get rid of it.
Thanks in advance.
Dave

2
jensclas
Re: Unknown error always coming up!

we need more information - under what circumstances do you get this error? What have you tried from searching 'undefuned error'?

3
djayc2104
Re: Unknown error always coming up!
  • 2006/11/15 23:06

  • djayc2104

  • Just popping in

  • Posts: 40

  • Since: 2006/9/26


Hi,
Thanks for your reply.
I am designing a new module for XOOPS and the error started once I started testing my module.
It started when I called some data from a MySQL table. The variable that im calling came back with the value of "ARRAY".
I just dont understand whats going on.
Is it coming back with this error because of the module or is it the calling of the database.
Someone please help im going NUTS!!!!!
I am using XOOPS 2.0.15,
mysql version 4.1.10
php version 4.4.1
apache version 1.3.4
Thanks
Dave

4
m0nty
Re: Unknown error always coming up!
  • 2006/11/15 23:31

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


it sounds like the module code that's the issue.

if a select query is returned as Array, then make sure you are listing the results as an array.

without seeing the relevant code of the module etc it's hard to diagnose from here without even more info.

what query/statement are you using to get the data from the db?

a simple query in a module might be:

$sql $xoopsDB->query("SELECT uname, email FROM ".$xoopsDB->prefix('users')." WHERE uid=$uid");
    list(
$username$useremail) = $xoopsDB->fetchRow($sql);


$username would then be the result of uname etc..

5
rowdie
Re: Unknown error always coming up!
  • 2006/11/16 5:11

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


It's a 'notice', not an error, and it's removed in XOOPS 2.0.16. (which will be released soon)

Just ignore it, it won't affect your module development.

Rowd

6
djayc2104
Re: Unknown error always coming up!
  • 2006/11/16 7:06

  • djayc2104

  • Just popping in

  • Posts: 40

  • Since: 2006/9/26


Hi,
Thanks for your response's Monty and Rowdie.
I am using a standard call to the database.
$sql=("SELECT username FROM xoops_users WHERE uid=$uid");
$result=mysql_query($sql);
$payment=mysql_fetchRow($result);

But I will try your suggestion Monty. Thanks

Once again thanks to all that replied.

Dave.

7
djayc2104
Re: Unknown error always coming up!
  • 2006/11/16 7:07

  • djayc2104

  • Just popping in

  • Posts: 40

  • Since: 2006/9/26


Hi,
Thanks for your response's Monty and Rowdie.
I am using a standard call to the database.
$sql=("SELECT payment FROM xoops_users WHERE uid=$uid");
$result=mysql_query($sql);
$payment=mysql_fetchRow($result);

But I will try your suggestion Monty. Thanks

Once again thanks to all that replied.

Dave.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

72 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 72


more...

Donat-O-Meter

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

Latest GitHub Commits