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

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

It's working for me.

Have you set it up at admin/config/development/module_builder ?

babruix’s picture

Had 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.

joachim’s picture

I 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!

joachim’s picture

Status: Postponed (maintainer needs more info) » Fixed

I tried the UI lately when developing the environment classes - this should all be fine now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nithinkolekar’s picture

Issue summary: View changes
Status: Closed (fixed) » Active

sorry 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.

joachim’s picture

Title: Halts with errors » Various errors on form

Fixed. Thanks for reporting.

joachim’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.