I happened to click on the My (drupal) link before logging in and got this error:

warning: Invalid argument supplied for foreach() in /home/mofpeace/public_html/drupal/sites/all/modules/mysite/plugins/layouts/default.php on line 27.

Comments

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

I thought we quashed this bug. (http://drupal.org/node/144187).

Are you sure you are running the latest release? Please look at the top of mysite.module. It should say:

// $Id: mysite.module,v 1.48 2007/06/30 21:32:09 agentken Exp $

If you are, please tell me your access control configuration for the module and the role of the user who caused this error.

If you aren't, upgrade to the latest release.

The new release has this check which shoud prevent this error:

      if (!empty($data)) {
        print theme('mysite_'. $mysite->layout .'_layout', $content);
      }

Lines 685-687 of mysite.module

In the meantime, I do know that the error will go away if you configure default content.

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Merging this with http://drupal.org/node/153570 and investigating.

agentrickard’s picture

Status: Closed (duplicate) » Closed (fixed)