Unpacked https://ftp.drupal.org/files/projects/cod-7.x-2.0-core.tar.gz in top profiles directory of freshly unpacked drupal 7.61 distribution. The site uses php 7.2.12. install.php allows me to select the cod profile and then the locale, but install.php?profile=cod&locale=en fails with "Sorry, the profile you have chosen cannot be loaded."

Comments

prlw1 created an issue.

prlw1’s picture

Tried https://ftp.drupal.org/files/projects/cod-7.x-2.x-dev-no-core.tar.gz instead. Much better - installation at least starts, but then:

install.php?profile=cod&locale=en&id=1&op=do StatusText: OK ResponseText: Fatal error: Declaration of RulesRuleUI::form(&$form, &$form_state, $options = Array) must be compatible with RulesActionContainerUI::form(&$form, &$form_state, $options = Array, $iterator = NULL) in /usr/pkg/share/drupal/profiles/cod/modules/contrib/rules/ui/ui.plugins.inc on line 80

FWIW I'm using postgresql, but my guess is this more of a php 7 issue.

prlw1’s picture

I unpacked https://ftp.drupal.org/files/projects/rules-7.x-2.11.tar.gz in place of cod/modules/contrib/rules. Rerunning install.php seemed to just ignore the error, and I was already in site setup / create conference.

Now:

Notice: Trying to get property 'rid' of non-object in cod_admin_permissions() (line 282 of /usr/pkg/share/drupal/profiles/cod/cod.install).
SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "rid" violates not-null constraint DETAIL: Failing row contains (null, administer blocks, block). 
function cod_admin_permissions() {
  //get the administrator role, we set this in the install file
  $admin_role = user_role_load_by_name('administrator');
  user_role_grant_permissions($admin_role->rid, array_keys(module_invoke_all('permission')));
}

so sure enough, problem if $admin_role->rid is treated as null.

prlw1’s picture

cod=> select * from users_roles;
 uid | rid 
-----+-----
(0 rows)

cod=> select * from role;
 rid |        name        | weight 
-----+--------------------+--------
   1 | anonymous user     |      0
   2 | authenticated user |      1
(2 rows)

No "administrator"...

prlw1’s picture

Worked around the above by hand with:

insert into role (name,weight) values ('administrator',2);
-- check rid from administrator is 3
select * from role where name = 'administrator';
insert into users_roles (uid,rid) values (1,3);

Now see:

    Deprecated function: Function create_function() is deprecated in features_remove_recursion() (line 1095 of /usr/pkg/share/drupal/profiles/cod/modules/contrib/features/features.export.inc).
    The content access permissions need to be rebuilt. Rebuild permissions.
    Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in admin_menu_merge_tree() (line 207 of /usr/pkg/share/drupal/profiles/cod/modules/contrib/admin_menu/admin_menu.inc).

"Rebuild permissions" worked, and the installation seems to have completed.

Surely this shouldn't have been this hard...