In a certain case I do not wish to display a the content of a form when you get to the form_alter stage of my module. I have tried drupal_goto() and unset($form) . In the first case an error is thrown:
Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO watchdog...
&the second case the form is rendered. What else can I do?
The problem was the Devel module. Disabling this and it started working.