1
ReySolar
News 1.3 bug
  • 2005/4/27 22:17

  • ReySolar

  • Not too shy to talk

  • Posts: 181

  • Since: 2005/2/2 1


Hi!
I have a question. In PHP Debug Mode, News 1.3 shows these error messages. How can I fix it?
Thanks

ReySolar


Warning [PHP]: array_rand(): Second argument has to be between 1 and the number of elements in the array in file modules/news/class/class.newsstory.php line 857
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222

2
ackbarr
Re: News 1.3 bug

Rey - can you report this on the news development site in the Bug Tracker? This way the module developers know all about it and you will be notified as they update your bug.

Typically notices are just messages from PHP saying, "hey, are you sure you want to do this this way?" and can be ignored. The first and last error you list look like they need some attention though.

3
ReySolar
Re: News 1.3 bug
  • 2005/4/28 13:41

  • ReySolar

  • Not too shy to talk

  • Posts: 181

  • Since: 2005/2/2 1


Thanks ackbarr!
Think finally I reported it correctly at the development site. Maybe I posted it two or three times 'cause I didn't find it published (sorry, but it's my first time with the report bug's system).

ReySolar

4
ReySolar
Re: News 1.3 bug
  • 2005/4/29 11:32

  • ReySolar

  • Not too shy to talk

  • Posts: 181

  • Since: 2005/2/2 1


This is the actually message errors's complete list in PHP Debug mode (I have installed XOOPS 2.0.10 and News 1.3). How can I fix it? Anybody knows? Hervé?
Thanks!

ReySolar


Notice [PHP]: Undefined offset: 0 in file modules/newbb/class/forum.php line 403
Warning [PHP]: array_keys(): The first argument should be an array in file modules/newbb/blocks/newbb_block.php line 76
Warning [PHP]: implode(): Bad arguments. in file modules/newbb/blocks/newbb_block.php line 79
Notice [PHP]: Undefined offset: 0 in file modules/newbb/class/forum.php line 403
Warning [PHP]: array_keys(): The first argument should be an array in file modules/newbb/blocks/newbb_block.php line 76
Warning [PHP]: implode(): Bad arguments. in file modules/newbb/blocks/newbb_block.php line 79
Notice [PHP]: Undefined offset: 0 in file modules/newbb/class/forum.php line 403
Warning [PHP]: array_keys(): The first argument should be an array in file modules/newbb/blocks/newbb_block.php line 76
Warning [PHP]: implode(): Bad arguments. in file modules/newbb/blocks/newbb_block.php line 79
Notice [PHP]: Constant Àü¦ Pƒ( already defined in file modules/news/language/english/blocks.php line 12
Notice [PHP]: Undefined offset: 14 in file modules/news/blocks/news_top.php line 344
Notice [PHP]: Undefined offset: 14 in file modules/news/blocks/news_top.php line 344
Warning [PHP]: array_rand(): Second argument has to be between 1 and the number of elements in the array in file modules/news/class/class.newsstory.php line 857
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Notice [PHP]: Undefined index: in file modules/news/class/class.newsstory.php line 859
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopsstory.php line 222
Notice [PHP]: Undefined offset: 1 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 1 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 3 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 3 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 5 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 5 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 7 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 7 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 8 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 8 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 9 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 9 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 10 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 10 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 12 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 12 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 13 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 13 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 14 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 14 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 15 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 15 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 16 in file modules/news/index.php line 237
Notice [PHP]: Undefined offset: 16 in file modules/news/index.php line 237

Login

Who's Online

195 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 195


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