Closed (fixed)
Project:
me aliases
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2009 at 16:12 UTC
Updated:
24 Apr 2009 at 18:50 UTC
Jump to comment: Most recent file
Appears to break views php code validator for user name arguments. The php code never appears to run.
Test case:
drupal_set_message('php validator executed');
return TRUE;
Commenting out me_views_api() fixes the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | me-429080.patch | 2.1 KB | cdale |
Comments
Comment #1
cdale commentedI am not able to replicate this problem. I followed each of the steps you laid out above, and I see the message just fine. Could it potentially be a clash with another module?
I'm about to release an update which adds the patch in #422042: Add views 'me' argument redirection for uid and name argument handlers., so download 2.2 later today, and see if that fixes the problem for you. (Though I'm not sure how it would, as it only adds new features). If the problem is still there, then we might need to dig a little deeper.
What version of views are you using?
Comment #2
john.money commentedMe 2.1, tested with both Views 2.3 and 2.4 (which I upgraded today).
Edit: upgraded to Me 2.2 and problem persists. Confirmed to be issue with me alias, disabling the module entirely and the problem goes away.
Screenshots of View config
http://vvcap.net/db/vKFaKEw9xxCOqI6xCAEd.htm
http://vvcap.net/db/GzJ4bwLR2Q_fbgefXR-I.htm
I am positive the function os_blog_view_arg_handler() never runs, (e.g. putting stop there, drupal_set_message, whatever). As I suggested, changing that code to something that just displays a message and returns TRUE also never runs.
Comment #3
cdale commentedOk. I've finally been able to reproduce this by turning off the "Let users enter the 'me' alias instead of their user name." option. It seems when that is not selected, that the view breaks. I'll dig into that and see what I can find.
Thanks for the report.
Comment #4
cdale commentedOk, so now that I've worked that out, I feel quite stupid as it's such a trivial bug that should never have happened, but there you go. I've commited the attached patch, and have made a new release. Should be ready in about 10mins.
Comment #5
john.money commentedAppreciate you addressing this so quickly... me aliases is a great little module that improves usability.
Thanks. :)