I tried to install the latest dev with Drupal 7.17 but it fails due to several problems:

I come from this issue #1824860: Multiple errors on and after install, using WAMP

During the install I get:

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

and after clicking the "visit your site" link I get:

Warning: Invalid argument supplied for foreach() in commons_follow_get_nids() (line 30 of /Drupal/profiles/commons/modules/contrib/commons_follow/commons_follow.module).
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND uid = '1'' at line 1: SELECT fid, content_id FROM {flag_content} WHERE fid IN () AND uid = :uid; Array ( [:uid] => 1 ) in commons_follow_get_followed_content() (line 130 of /Drupal/profiles/commons/modules/contrib/commons_follow/commons_follow.module).

Thanks

Comments

ezra-g’s picture

Title:installation issues» Undefined property: stdClass::$name in og_role_save() (line 2473 of og.module
Status:Active» Postponed (maintainer needs more info)

Thanks for the report.

The latter error is #1835020: Invalid argument error when user isn't following anything yet.

I don't see the og-related errors you reported on a fresh install - What version of PHP are you running?

Thanks!

drupalycious’s picture

Hello,

I am using PHP 5.3.6.

The problem with the latter error is that it breaks the installation in my case, the error is followed by "The website encountered an unexpected error. Please try again later." and I cannot do anything else.

Thanks

drupalycious’s picture

I just tried with PHP 5.4.4 and I get the same error.

I am using MAMP. My other Drupal installations work well (with both php versions) but I am not using commons on them.

drupalycious’s picture

I tried again and now things are working fine so far (with PHP 5.3.6),

On a fresh Drupal 7.17
I downloaded commons-7.x-3.x-dev, added Message-subscribe and entity api dev version to the contrib modules and downloaded commons_follow from git.
And so far I get a nice error message free homepage ;-)

Matt V.’s picture

I just tried installing using the latest 7.x-3.x-dev tar file (date: 2012-Nov-09). I received the following error about 9 times:

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

I'm running inside a Quickstart VM, which should make it relatively easy to recreate the problem. The only thing I changed from the tar file was to add php_value memory_limit 512M, since the installation was failing with the default memory limit in place.

I did not see the second error mentioned in the original post though.

ezra-g’s picture

Status:Postponed (maintainer needs more info)» Fixed

I was able to reproduce - The solution was a combination of applying an existing patch to OG and adding a new task to revert features during installation.

http://drupalcode.org/project/commons.git/commit/bfa78bc

Status:Fixed» Closed (fixed)

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