After 3 hours of debugging I was able to track down the problem.....

During an install profile i'm writing, I was calling drupal_execute
and it would just white screen. So I started putting print statements everywhere in my code, then in form.inc to figure out what the problem was. I tracked it down to where form.inc starts calling form_alter for modules that implemented it:

foreach (module_implements('form_alter') as $module) {
    //print 'module is: ' . $module . '<br>';
    $function = $module .'_form_alter';
    $function($form_id, $form);
  }

if i uncommented that print statement I would see all the modules print out as their form_alter is called. They also happened to be in alphabetical order, but I noticed views modules form_alter wasn't being called and the last one being called was util. So i poked around util and found that it did some funky form_alter stuff. I deleted util module and everything worked as I expected.

I think an 'if' statement just needs to be thrown in somewhere to check to see if this form is #programmed == TRUE.

If you need more information, let me know
-Steve

CommentFileSizeAuthor
#4 util.execute.patch898 bytessun
#3 util_2.patch946 byteslitwol

Comments

litwol’s picture

Version: 5.x-1.0 » 5.x-1.x-dev
Assigned: Unassigned » litwol

fixed with dmitrig01's guidance

litwol’s picture

Status: Active » Fixed

forgot the /fixed/ status.

litwol’s picture

Assigned: litwol » Unassigned
Status: Fixed » Needs review
StatusFileSize
new946 bytes

adds the mentioned check. i dont have the proper setup nor experience to duplicate the error so some one else should.

however, the patch has been commited to the dev version

sun’s picture

Status: Needs review » Needs work
StatusFileSize
new898 bytes

Re-rolled patch, which had not been committed. However, this does not work out, because $form['#programmed'] is also FALSE on normal view of admin/build/modules.

sun’s picture

Version: 5.x-1.x-dev » 5.x-1.1
litwol’s picture

Status: Needs work » Closed (won't fix)

d5 branch is not supported anymore