Reviewed & tested by the community
Project:
Open Web Analytics
Version:
7.x-1.0-alpha2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2011 at 20:54 UTC
Updated:
3 Jul 2014 at 15:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
MacRonin commentedI 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
Comment #2
bavarian commentedsubscribe
Comment #3
kades82 commentedsubscribe
Comment #4
kades82 commentedthe 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
Comment #5
lelizondo commentedThis 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.
Comment #6
cajmcmahon commentedJust 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"
Comment #7
carl.brown commentedThanks 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:
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...
Comment #8
wranvaud commentedThis 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
Comment #9
mgiffordWithout this you can't access the permissions page.. That's pretty important.
Comment #10
ianmarcinkowski commentedI 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.
Comment #11
mgiffordAgreed.. Must have done this in a hurray. This isn't useful code (and thanks for removing it from my code your patch):
Comment #12
ianmarcinkowski commentedBump. The supplied patch needs to be merged.
Comment #13
cockers commentedHas the patch been added? I only ask because I'm still getting the same issue when I installed the module this morning.
Comment #14
ianmarcinkowski commented@cockers
This issue would be marked as resolved. I guess the developer has not yet merged this patch.