OG User Roles Version 6.x (Public)

Primary tabs

Groups audience: 
- Private group -

Test 6.x version of OG User Roles.

  • Theoretically, we don't need the user.module patch because the "Clear the Cache" functionality is now a part of core.
  • Haven't yet tested multinode_access patch for node.module, so stay clear of that for now.

 

Comments

2

Renamed og_user_roles_theme() to og_user_roles_determine_context() (the equivalent function in OG module).

However, the equivalent function in OG, og_determine_context() is called from og_init(), NOT og_boot().

Need to look into this further. For right now, OGR is calling og_user_roles_determine_context() from og_user_roles_boot().

 

 

Problem with one undefined function after another. Apparently, OG User Test was clicked on. Got rid of first problems by adding

drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); // http://drupal.org/node/273068

to: og_user_roles_write_test().

db_num_rows() as been deprecated in 6.x. Replaced with db_result().

That seems to have gotten up past this round of errors, although there is now a new error on ognodeadd:

warning: array_merge_recursive(): recursion detected in /var/www/html/websites/drupal/test/includes/common.inc on line 2055.

No idea why that's there.

With his commenting out of a function I can now see the configuration page. After configuring, I saved the page and got the error:

Fatal error: Call to undefined function format_date() in C:\*\sites\all\modules\og_user_roles\og_user_roles.module on line 2506

I commented out that line, and then got another error:

Fatal error: Call to undefined function db_num_rows() in C:\*\sites\all\modules\og_user_roles\og_user_roles.module on line 2498

I commented out that line, and then got another error:

Fatal error: Call to undefined function drupal_install_schema() in C:\*\sites\all\modules\og_user_roles\og_user_roles.module on line 2524

I commented out that line and then went back to the configuration page, and saved it, but obviously I don’t know whether the commented out lines affected things in the database….