Hi,

After installing the owa module, when I attempt to view my permissions (/admin/people/permissions). I get a blank screen. Uninstalling the module allows me to see permissions again.

There are no entries in the watchdog table regarding this issue.

I did notice that when I enable the module, I get this entry in the reports:
The file was not deleted, because it does not exist.

I'm not sure if this is related or not.

Thanks.

Comments

MacRonin’s picture

Title: Can not see the permission screen after install » Can not see the permission screen after install ( OWA - Open Web Analytics )
Version: 7.x-1.x-dev » 7.x-1.0-alpha2

I am having the same problem with 7.x-1.-Alpha2

Just did an install on a D7.4 site and get Server error 500 when I try to goto any permissions page. Either the one for all roles or the individual role version.

BTW don't know if it's related, But the OWA tracking code doesn't seem to get inserted into any of my pages. I tried a manual install (of the javascript code in it's own block) to verify that the OWA install was in place and working. BTW it's 1.5.0RC2 The manual code did correctly load and track the pages.

Updated issue title so its source is obvious when viewed in Dashboard activity list. Also changed version to Alpha2 since that is where I experienced the error and it is less of a moving target than the DEV version. Although they both currently have the same update date

bavarian’s picture

subscribe

kades82’s picture

subscribe

kades82’s picture

the following error message is displayed when trying to access the permissions page with OPen Web Analytics module enabled:

Fatal error: Unsupported operand types in /home/phukalinoda/ftp/dariusz-kalinowskipl/modules/user/user.admin.inc on line 696

lelizondo’s picture

This is actually very simple to solve, the problem is in how hook_permission() is built, this module is using the old D6 way but this hook changed in D7.

You can take a look at http://drupal.org/node/1188018#comment-4600022 to see how it should be built.

cajmcmahon’s picture

Just for the list, I got the same error after I installed and activated Open Web Statistics 7.x-1.x-dev. Couldn't access Permissions and got this error:
"Fatal error: Unsupported operand types in /modules/user/user.admin.inc on line 696"

carl.brown’s picture

Thanks for the heads up @lelizondo!

I too was getting the same problem - Fatal Error on Permissions page.
The module has been updated to use Drupal 7's hook_permission() instead of Drupal 6's hook_perm() function, but the returned value hasn't been updated and should instead be "an array whose keys are permission names and whose corresponding values are arrays".

So, if you update owa.module hook_permissions function (around line 20) to look like this:

/**
 * Implementation of hook_permission().
 */
function owa_permission() {
  return array(
    'administer open web analytics' => array(
      'title' => t('Administer Open Web Analytics')
    ),
    'opt-in or out of tracking in owa' => array(
      'title' => t('Opt-in or out of tracking in OWA')
    ),
    'use PHP for tracking visibility in owa' => array(
      'title' => t('Use PHP for tracking visibility in OWA')
    )
  );
}

It sorts it out.

I apologise for the lack of a patch but I have no experience of creating them so thought simply posting it here was the next best thing. No on to finding out why there's no javascript in the page...

wranvaud’s picture

This problem is hapenning with other faulty modules as well and there is a discussion with possible solutions on this thread: http://drupal.org/node/1036262#comment-5959722

mgifford’s picture

Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new865 bytes

Without this you can't access the permissions page.. That's pretty important.

ianmarcinkowski’s picture

Component: Miscellaneous » Code
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new781 bytes

I have attached a revised patch file. mgifford's patch removes the newline at the end of owa.module which conflicted with the production file from the alpha2 release I have in my modules directory.

mgifford's patch does solve this bug, however.

I'm marking this ticket reviewed.

mgifford’s picture

Agreed.. Must have done this in a hurray. This isn't useful code (and thanks for removing it from my code your patch):

-}
\ No newline at end of file
+}
ianmarcinkowski’s picture

Issue summary: View changes

Bump. The supplied patch needs to be merged.

cockers’s picture

Has the patch been added? I only ask because I'm still getting the same issue when I installed the module this morning.

ianmarcinkowski’s picture

@cockers

This issue would be marked as resolved. I guess the developer has not yet merged this patch.