1
jordi_rc
module xoops stats
  • 2006/10/8 19:05

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello

I was trying to eliminate all the bugs I have in my XOOPS modules, and I have one in module statistics that I don't know how to fix.

It says:

"Notice: unserialize () [function.unserialize]: Error at offset 0 of 6 bytes in file /modules/statistics/include/hitcounter.php line 383"

If I go to hitcounter.php and read line 383 I have this:

$options = unserialize( striplashes( $optionsret[0] ) );

Someone knows why is this module doing such a bug?
I use XOOPS 2.0.15 and this module is Site Statistics v 0.6 by IBDeeming, also named XOOPS stats.

Thanks.

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

2
zyspec
Re: module xoops stats
  • 2006/10/8 23:55

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Just for clarity, I assume it actually says:
$options = unserialize( stripslashes( $optionsret[0] ) );

right?

3
jordi_rc
Re: module xoops stats
  • 2006/10/9 9:26

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Yes it says that, missed an s.

Now, what is the bug? Any ideas?


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

4
script_fu
Re: module xoops stats

I can confirm the same error with 2.0.17 and php 5.2.4

5
script_fu
Re: module xoops stats

Here is the same error repeated 11 times. Not sure why it would report more than one.

/modules/statistics/admin/index.php line 220

Here is line 220

$name = $dn[1].".".$dn[2];

NoticeUndefined offset2 in file
/modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220
Notice
Undefined offset2 in file /modules/statistics/admin/index.php line 220

Login

Who's Online

128 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 128


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