Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Installation error. Fresh install from nightly 2013-03-01 16:44 (-0800)
Notice: Trying to get property of non-object in commons_admin_permissions() (line 257 of /home/kljb/public_html/fic/profiles/commons/commons.profile).
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'rid' cannot be null
This happened after submitting the "first group" form with a proper title and body.
Comments
Comment #1
keithleeds CreditAttribution: keithleeds commentedAn FYI... after dropping all the tables, removing settings.php, and running the install again, it flew fine, with the identical input. No explanation as to why.
Comment #2
jsulmar CreditAttribution: jsulmar commentedditto what keithleeds said.
Using commons-7.x-3.19-core.tar.gz, the install.php script produced "Trying to get property of non-object" error while trying to create first group.
I dropped all tables, deleted settings.php, ran install.php again and it worked fine.
Great feature!
Comment #3
robladdish CreditAttribution: robladdish as a volunteer commentedAny update on this issue? I also tried dropping all tables and resetting settings.php, and I still get the error.
I spent a couple days on this, reverting to many previous versions of MySQL and PHP, but the error remains. Another post suggested PHP 5.3 is required, but this is many, many years old, and doesn't seem compatible with the latest Apache.
This error is occurring for me on a brand new install/VM, Apache 2.4 running on Windows 7, PHP 7.07, MySQL 5.7.
Any suggestions? This seems to be a show stopper and I can't continue. It looks like I need to install all the commons modules one at a time?