at /admin/modules/module_builder I get this drupal error message:
Warning: Invalid argument supplied for foreach() in module_builder_page_input() (line 210 of /srv/www/pixelscrapper/public_html/sites/all/modules/contrib/module_builder/includes/module_builder.pages.inc).
When I try try to generate I get a white screen with this error:
Fatal error: Unsupported operand types in /srv/www/pixelscrapper/public_html/sites/all/modules/contrib/module_builder/includes/generate.inc on line 388
Comments
Comment #1
joachim commentedIt's working for me.
Have you set it up at admin/config/development/module_builder ?
Comment #2
babruix commentedHad same problem on default installation.
This happens when your sites/default/files/hooks directory wasn`t created so module_builder doesn`t know about all hooks available, because module tries to save all APIs to that folder.
Comment #3
joachim commentedI take it this is via the UI?
I *never* use the UI at all -- only drush. So I don't usually remember to check it still works ok. Sorry!
Though it looks here like this is a long-standing bug. In fact, I think most modules have a problem if 'sites/default/files' doesn't exist when they want to create folders inside it. Image module (D6) had to jump through faffy hoops to work around this.
IIRC I did start looking at putting a check for this in the sanity check helper function. There may even be notes about this in the code, if anyone cares to try fixing this!
Comment #4
joachim commentedI tried the UI lately when developing the environment classes - this should all be fine now.
Comment #6
nithinkolekar commentedsorry about reopening this but with latest dev this still perent although hooks directory and the files are already present. Only change is in the line
Warning: Invalid argument supplied for foreach() in module_builder_page_input() (line 156 of C:\server\www\d7\sites\all\modules\module_builder\includes\module_builder.pages.inc).BTW I used "drush mbdl" to download to download hook files to that directory.
Comment #7
joachim commentedFixed. Thanks for reporting.
Comment #8
joachim commented