1
Jace303
Error calling blocksadmin.php (2.2.1)
  • 2005/8/12 8:53

  • Jace303

  • Just popping in

  • Posts: 38

  • Since: 2003/11/5


Hello everyone,

I updated from 2.0.13 to 2.2.1 without problems.
But when I try to "List all blocks" in Admin-Section I get the following PHP-Error:

"Fatal error: Call to a member function on a non-object in /htdocs/mydomain.de/www/modules/system/admin/blocksadmin/blocksadmin.php on line 58"

Did I forget to update anytyhing?

My php-version is 4.4

Thanks for your help!

2
Jace303
Re: Error calling blocksadmin.php (2.2.1)
  • 2005/8/12 9:11

  • Jace303

  • Just popping in

  • Posts: 38

  • Since: 2003/11/5


More information... the following line is causing the problem:

$block_arr[$block->getVar('mid')]['modname'] = $modules[$block->getVar('mid')]->getVar('name');


In the first iteration of the for ... each Statement

$block->getVar('mid') returns 0. I guess there is no module with 'mid' = 0 in the $modules object. I I think this is what is causing the error.

Maybe somehow may block-configuration got messed up?

3
Mithrandir
Re: Error calling blocksadmin.php (2.2.1)

Sounds like it

Could you check your newblocks table in the database for blocks with mid=0?
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

4
Jace303
Re: Error calling blocksadmin.php (2.2.1)
  • 2005/8/12 10:34

  • Jace303

  • Just popping in

  • Posts: 38

  • Since: 2003/11/5


Solved!

There was exactly one entry with mid=0 in the newblocks table (all fields except lastmoddate were NULL). I deleted the entry and it works. Thank you very much!

Login

Who's Online

336 user(s) are online (302 user(s) are browsing Support Forums)


Members: 0


Guests: 336


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