Hello I'm new to drupal development.
These days I tried to create a module, all ok with the module. The module works like a block, but when I go to block administration page and try to configure the block of my module I get this error message:

Fatal error: Cannot use string offset as an array in /opt/lampp/htdocs/drupal/includes/form.inc on line 979

And some times in administrator pages when I try to save some settings after press submit(/save) button instead of refresh the page I get a white empty page. That wasn't happen before activate my module.

Can anyone help me??
Thank you.

Comments

bobzibub’s picture

Check that you're not inadvertently setting $form['storage'] when you really mean $form_state['storage'].....

Cheers,
-b

nevets’s picture

Posting your code (at least the block related code) would be useful. Remember to place between <code> and </code> tags.