I'm running a Drupal multi-site installation on Windows7 with Uniserver powering my WAMP stack.
I've upped the mem limits in php, mysql, eaccelerator and even the apache threadstacksize. My other sites run pretty fast for a windows install. I tried the Acquia dev desktop and didn't find any performance difference between it and my tweaked uniserver config.

But, I just can't get Commons to run.

Oct 27th dev version - errors after installation completes, on the page where it asks for site & account info.

Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 131 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\includes\og_features_permission.features.inc).
Warning: Invalid argument supplied for foreach() in og_features_permission_features_rebuild() (line 131 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\includes\og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 131 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\includes\og_features_permission.features.inc).
Warning: Invalid argument supplied for foreach() in og_features_permission_features_rebuild() (line 131 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\includes\og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 131 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\includes\og_features_permission.features.inc).
Warning: Invalid argument supplied for foreach() in og_features_permission_features_rebuild() (line 131 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\includes\og_features_permission.features.inc).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of E:\Web\UniServer\www\drupal\profiles\commons\modules\contrib\og\og.module).

Additionally I've been getting the following errors since the alpha version on both the sky and commons themes.

SKY

Notice: Undefined variable: hgroup_attributes in include() (line 19 of E:\Web\UniServer\www\drupal\profiles\commons\themes\contrib\sky\templates\page.tpl.php).
Notice: Undefined variable: site_name_attributes in include() (line 22 of E:\Web\UniServer\www\drupal\profiles\commons\themes\contrib\sky\templates\page.tpl.php).

Commons Origins

Notice: Undefined variable: header_attributes in include() (line 98 of E:\Web\UniServer\www\drupal\profiles\commons\themes\contrib\commons_origins\templates\page\page.tpl.php).
Notice: Undefined variable: branding_attributes in include() (line 102 of E:\Web\UniServer\www\drupal\profiles\commons\themes\contrib\commons_origins\templates\page\page.tpl.php).
Notice: Undefined variable: hgroup_attributes in include() (line 112 of E:\Web\UniServer\www\drupal\profiles\commons\themes\contrib\commons_origins\templates\page\page.tpl.php).
Notice: Undefined variable: site_name_attributes in include() (line 115 of E:\Web\UniServer\www\drupal\profiles\commons\themes\contrib\commons_origins\templates\page\page.tpl.php).
Notice: Undefined variable: content_header_attributes in include() (line 151 of E:\Web\UniServer\www\drupal\profiles\commons\themes\contrib\commons_origins\templates\page\page.tpl.php).

And when I try to create new content I get the following message

The website encountered an unexpected error. Please try again later.

When I check the status report, I see the following error

Tokens Problems detected

The following token types are not defined but have tokens:
$info['types']['taxonomy_term']

Are these Windows specific errors, or are people facing them on Linux as well? Or are they specific to my setup?

Comments

chats’s picture

I did a reinstall and still got the installation errors, but now I can use the site without seeing error messages, and can also create content.

But while creating groups I get the following error message:
Notice: Undefined index: radioactivity_timestamp in radioactivity_field_widget_form() (line 328 of E:\Web\UniServer\www\commons\profiles\commons\modules\contrib\radioactivity\radioactivity.field.inc).

And I still see the problems detected message regarding tokens in the status report.

slowflyer’s picture

Same for me on a LAMP stack

codexmas’s picture

I can confirm this issue as well on my Mac MAMP Stack.
Fresh install after running drush make build commons on the 3x-dev branch.

Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 131 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: Invalid argument supplied for foreach() in og_features_permission_features_rebuild() (line 131 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 131 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: Invalid argument supplied for foreach() in og_features_permission_features_rebuild() (line 131 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 131 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: Invalid argument supplied for foreach() in og_features_permission_features_rebuild() (line 131 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Notice: Undefined index: roles in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
Warning: in_array() expects parameter 2 to be array, null given in og_features_permission_features_rebuild() (line 140 of /Users/codexmas/Sites/commons/commons-3.x-dev/profiles/commons/modules/contrib/og/includes/og_features_permission.features.inc).
ezra-g’s picture

Component: Code » Events

This happens 3 times:

Undefined index: roles in og_features_permission_features_rebuild() (line 131 of

I suspect it's related to the empty roles in commons_events_og_features_default_permissions():

/**
 * Implements hook_og_features_default_permissions().
 */
function commons_events_og_features_default_permissions() {
  $permissions = array();

  // Exported og permission: 'node:group:create event content'
  $permissions['node:group:create event content'] = array(
    'roles' => array(),
  );

  // Exported og permission: 'node:group:delete own event content'
  $permissions['node:group:delete own event content'] = array(
    'roles' => array(),
  );

  // Exported og permission: 'node:group:update own event content'
  $permissions['node:group:update own event content'] = array(
    'roles' => array(),
  );

  return $permissions;
}

ezra-g’s picture

Assigned: Unassigned » ezra-g
ezra-g’s picture

Status: Active » Fixed
drupalycious’s picture

Status: Fixed » Active

Hello,

I am still getting part of the error messages with the latest dev and the commons_events module from git.

Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).
Notice: Undefined property: stdClass::$name in og_role_save() (line 2473 of /Drupal/profiles/commons/modules/contrib/og/og.module).

maybe it is not related to the commons_event module.

Thanks

geresy’s picture

Same here

Warning: include_once(commons_follow.features.inc): failed to open stream: No such file or directory in include_once() (line 3 of E:\xampp\htdocs\8\commons-7.x-3.x-dev\profiles\commons\modules\contrib\commons_follow\commons_follow.module).
Warning: include_once(): Failed opening 'commons_follow.features.inc' for inclusion (include_path='.;E:\xampp\php\PEAR') in include_once() (line 3 of E:\xampp\htdocs\8\commons-7.x-3.x-dev\profiles\commons\modules\contrib\commons_follow\commons_follow.module).
Warning: Invalid argument supplied for foreach() in commons_follow_get_nids() (line 30 of E:\xampp\htdocs\8\commons-7.x-3.x-dev\profiles\commons\modules\contrib\commons_follow\commons_follow.module).
Warning: Creating default object from empty value in panels_renderer_ipe->render_pane_content() (line 145 of E:\xampp\htdocs\8\commons-7.x-3.x-dev\profiles\commons\modules\contrib\panels\panels_ipe\plugins\display_renderers\panels_renderer_ipe.class.php).
Warning: Creating default object from empty value in panels_renderer_ipe->render_pane_content() (line 145 of E:\xampp\htdocs\8\commons-7.x-3.x-dev\profiles\commons\modules\contrib\panels\panels_ipe\plugins\display_renderers\panels_renderer_ipe.class.php).
Warning: Creating default object from empty value in panels_renderer_ipe->render_pane_content() (line 145 of E:\xampp\htdocs\8\commons-7.x-3.x-dev\profiles\commons\modules\contrib\panels\panels_ipe\plugins\display_renderers\panels_renderer_ipe.class.php).
ezra-g’s picture

Status: Active » Fixed

The Commons Follow errors were fixed by http://drupalcode.org/project/commons_follow.git/commit/dfd5e3d, which apparently went in just after the current nightly snapshot was rolled - It should be fixed in the next nightly snapshot. In the meantime, you can pull the latest commons_follow from git.

I also committed http://drupalcode.org/project/commons.git/commit/9d3c0d7, which fixes errors related to message subscribe.

I packaged the distro locally and this resolves the installer errors - If you experience new errors, please file a new issue. Thanks!

drupalycious’s picture

Thank you for your answer I have filled a new issue as I could not finalize the installation.

#1835722: Undefined property: stdClass::$name in og_role_save() (line 2473 of og.module)

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

added another error