Foreach warning in Openpublish core module

Events happening in the community are now at Drupal community events on www.drupal.org.
Bilal81's picture

On installing the core module I get the following error when saving the modules:

warning: Invalid argument supplied for foreach() in public_html/modules/openpublish_core.module on line 36.

Line 36 is as follows:

foreach (glob(dirname(__ FILE__) . "/views/*.inc") as $filename) {

(ignore the space before FILE)

How can I fix this?

Thank you.

Comments

That means there're no ".inc"

irakli's picture

That means there're no ".inc" files in the "views" subfolder of the module (or not even the folder), which should not be the case if you properly uploaded/downloaded mofule.

But a bigger question is: why are you installing openpublish_core manually? Installation profile is supposed to do that instead.

Thank you

Irakli

.............................................
http://twitter.com/inadarei

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: