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
Comment #1
ezra-g commentedThanks 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!
Comment #2
drupalycious commentedHello,
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
Comment #3
drupalycious commentedI 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.
Comment #4
drupalycious commentedI 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 ;-)
Comment #5
matt v. commentedI 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:
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.
Comment #6
ezra-g commentedI 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