Hello,
with the latest version of your module I get this error:
Notice: Array to string conversion in token_replace() (line 102 of /.../includes/token.inc
In the past I had have the same conflict with the two modules Realname an Namefield as you can read in this thread:
http://drupal.org/node/1649458
Any ideas?
Best regards
Frank
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | rpt-array_to_string_notice-1973974-14.patch | 945 bytes | sumthief |
| #9 | rpt-notice_array_to_string-1973974-9.patch | 498 bytes | plazik |
Comments
Comment #1
fraweg commentedNo idea in that ? :-(
Comment #2
spleshkaUnfortunately, have no ideas.
Comment #3
fraweg commentedThis issue is only in the new version. The rc2 works with no problems...
No help in this issue?
Comment #4
dave reidIt appears that this module duplicates the [user:password] token that is added by core in user_mail_tokens() which causes this error.
http://drupalcode.org/project/rpt.git/blob/refs/heads/7.x-1.x:/rpt.modul...
Comment #5
spleshkaI think that problem may occur because of this code:
In previous release this module didn't provide any replacement if user object has no password. Some time ago this lines were added. Are they odd here?
Comment #6
fraweg commentedHello,
thanks a lot for your post!
Yes this could be the problem. I test the "old rc2" version with this patch:
http://drupal.org/node/1774492 #3
After apply the patch the issue was there.
But I am not a developer. What can I change to make this work?
Best regards
Frank
Comment #7
spleshkaJust comment the code like this:
Or just remove this line from module. This is a temporary solution, but it will work for now.
Comment #8
fraweg commentedOK ... thanks a lot for your help in this issue!
Best regards
Frank
Comment #9
plazik commentedPatch from solution in #7 comment.
Comment #10
sumthief commentedPatches attached in #7 and #9 solve problem temporary.
I think we just need do checking by tokens which exists at the moment when hook invokes like it done in other modules (as example 'user' module in core). Otherwise it will create replacement every time when hook_tokens invokes and user passed as data.
Comment #11
captainack commentedThanks guys. #10 worked for me :)
Comment #12
kala4ekSeems #10 is ok.
Comment #13
caschbre commentedThe patch file generated in #10 should be regenerated from the rpt module folder and not the drupal root folder. The patch as-is can only be applied if the module is in sites/all/modules/contrib/rpt which won't be the case for all sites.
Comment #14
sumthief commentedThank you for the catch @caschbre.
Here is regenerated patch to 7.x-1.x branch.
Comment #15
sumthief commentedSet back RTBC.
Comment #16
tyler.frankenstein commented+1 on #14 being RTBC, works for me.
Comment #18
kala4ekCommitted #10 into latest dev release.