Hi,
Warning message :
Strict warning: Only variables should be passed by reference in tournament_privatemsg_write_access() (line 99 of /var/www/drupal/sites/all/modules/contrib/tournament/modules/tournament_privatemsg/tournament_privatemsg.module).
Conditions:
-when viewing a node (like *BaseUrl*/node/9) and perhaps other pages ?
-For all user without the "Write private messages to all tournaments participants" permission.
i tried to google the error message and it seems few drupal sites have this bug but didn't find any report.
Also in Dev version.
Thanks for your help :)
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | fix-variable-dereference-2388647-4.patch | 718 bytes | lahoosascoots |
Comments
Comment #1
LemonHardos commented(oh please delete this comment, it seems i mixed forms...)
Comment #2
fenda commented@Lemon006
Are you still experiencing this error? Could you explain in a little more detail how I can reproduce it?
Comment #3
lahoosascoots commentedAre you on PHP 5.5? It now throws a warning when you try to pass function return values to other functions that dereference variables like reset()
This around line 99 of tournament/modules/tournament_privatemsg/tournament_privatemsg.module
needs to be updated to be something like this:
Comment #4
lahoosascoots commentedThis should do it for you. Give it a shot and let me know how it goes for you.
Comment #5
fenda commented@lahoosascoots
Thanks!! I've committed this to 7.x-1.x.
Comment #7
fenda commented