Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Can't call method "fetchrow_hashref" error when trying to view who is online

Quote Reply
Can't call method "fetchrow_hashref" error when trying to view who is online
Out of the blue I got this error when clicking to view who was online on the forum today. It worked yesterday, and we've done no changes to the forum in a good while.

Quote:
A fatal error has occurred:

Can't call method "fetchrow_hashref" on an undefined value at /web/sites/espen/dicereviews.com/forum/admin/GForum/Online.pm line 33.
Please enable debugging in setup for more details.
Stack Trace======================================GForum (14539): GForum::Online::whos_online called at /web/sites/espen/dicereviews.com/forum/admin/GForum.pm line 297 with arguments (GForum::Online, whos_online, HASH(0x84ae314)).GForum (14539): GForum::_plg_do_func_2 called at /web/sites/espen/dicereviews.com/forum/admin/GForum.pm line 261 with arguments (whos_online).GForum (14539): GForum::__ANON__ called at /web/sites/espen/dicereviews.com/forum/admin/GT/Plugins.pm line 133 with arguments (whos_online).GForum (14539): GT::Plugins::dispatch called at /web/sites/espen/dicereviews.com/forum/admin/GForum.pm line 261 with arguments (GT::Plugins, /web/sites/espen/dicereviews.com/forum/admin/Plugins/GForum, do_whos_online, CODE(0x83d9f98), whos_online).GForum (14539): GForum::_plg_do_func called at /web/sites/espen/dicereviews.com/forum/admin/GForum.pm line 252 with arguments (whos_online).GForum (14539): GForum::__ANON__ called at /web/sites/espen/dicereviews.com/forum/admin/GT/Plugins.pm line 133 with arguments (whos_online).GForum (14539): GT::Plugins::dispatch called at /web/sites/espen/dicereviews.com/forum/admin/GForum.pm line 252 with arguments (GT::Plugins, /web/sites/espen/dicereviews.com/forum/admin/Plugins/GForum, do_func, CODE(0x83d9dac), whos_online).GForum (14539): GForum::do_func called at /web/sites/espen/dicereviews.com/forum/gforum.cgi line 142 with arguments (whos_online).GForum (14539): main::main called at /web/sites/espen/dicereviews.com/forum/admin/GT/Plugins.pm line 133 with no arguments.GForum (14539): GT::Plugins::dispatch called at /web/sites/espen/dicereviews.com/forum/gforum.cgi line 22 with arguments (GT::Plugins, /web/sites/espen/dicereviews.com/forum/admin/Plugins/GForum, main, CODE(0x8443efc)).

Anyone have an idea what the problem might be?
Cheers,
Hans Jørgen
www.dicereviews.com

Last edited by:

perhaps: Jul 6, 2007, 1:02 AM
Quote Reply
Re: [perhaps] Can't call method "fetchrow_hashref" error when trying to view who is online In reply to
Hi,

For anyone interested, it was due to a corrupt table.

Can't open file: 'gforum_Online.MYI' (errno: 145)

To repair this, I simply just put this into MySQLMonitor:

Code:
REPAIR TABLE gforum_Online;

Just in case anyone else ever has the same problem <G>

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates