1
mcniac
help needed with a block
  • 2004/4/29 19:52

  • mcniac

  • Just popping in

  • Posts: 1

  • Since: 2004/4/29


Hi, i'm writing a new module, the problem is that when i make update of my module it show a message:

Fatal error: Call to a member function on a non-object in /trabajos/solidarios/sitio/html/modules/system/admin/modulesadmin/main.php on line 361

the line pointed there is the one that makes something with a block's template.

the lines of the block in the xoops_version are:

// Blocks
$modversion['blocks'][1]['file'] = "comercios_home.php";
$modversion['blocks'][1]['name'] = "listado_home_random";
$modversion['blocks'][1]['description'] = "muestra 3 comercios random";
$modversion['blocks'][1]['show_func'] = "b_comercios_home_show";
$modversion['blocks'][1]['template'] = 'com_block_home.html';


and the template is only plain html (just for test)

so, anybody knows what can it be? i can update any other modules and i haven't touched the system module, so.....
i need help :)

cheers,
Esteban

2
Mithrandir
Re: help needed with a block

Is the template called com_block_home.html placed in a modules/[modulename]/templates/blocks directory?

3
sylvainb
Re: help needed with a block
  • 2004/6/8 20:05

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello everybody,
I have the same problem when I try to add smarty template to a block.
I have rewrited istats to add smarty in it and all is fine but it's not the same thing with his block.
I added $modversion['blocks'][1]['template'] = 'istats_block_show.html'; in xoops_version.php and the html file is in modules/istats/templates/blocks.
Each time I'm trying to update the module I obtain this
Quote:
Fatal error: Call to a member function on a non-object in /home/sylvain/public_html/modules/system/admin/modulesadmin/main.php on line 361
.
Did I miss something important to add smarty in a block?
I hope that you'll have some indications to provide to me or better...a solution.
Thanks in advance

4
sylvainb
Re: help needed with a block
  • 2004/6/8 20:45

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Ok,
you can forget my question.
I have uninstalled istats and then installed it again and now template for the block is compiled.
I can now work on smarty in it, but I'm still asking myself why a simple update after adding template in xoops_version.php isn't working??

Login

Who's Online

229 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

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

Latest GitHub Commits