Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2006 at 16:36 UTC
Updated:
18 Oct 2006 at 19:25 UTC
I've made a page view that takes an argument to view nodes by a certain user, but it also displays the argument as a Drupal message under the title. Why does it display the argument in a message box (is it for debugging?) and can I disable it?
Comments
Comment #1
merlinofchaos commentedI don't understand why this might be happening. I did a grep and there is definitely no drupal_set_message() in views that could cause this.
Comment #2
solipsist commentedI'm using the CVS version. I'll try updating to the latest CVS and see what happens.
Comment #3
merlinofchaos commentedNote that the latest CVS version is for Drupal 5.0, not 4.7
Comment #4
solipsist commentedRight then... would it be possible to use the 4.7 release? The site doesn't use RSS feeds or any of the features introduced in CSS.
Comment #5
potential commentedI am having the same/similar problem. My argument is "User: Username is Author". When I make a page filtered by "node type is one of image", the view will output a message containing the username and the images from that user name below it.
If instead I filter by "node type is one of blog entry" (which is a custom flexinode type) it will output the UID as a message and will not print out any of the nodes.
If, however, I use the argument "User: UID is author", everything works well. I would like to use the "User: Username is author" for my argument so I hope this can be fixed for the 4.7 version.
Thanks!
Comment #6
merlinofchaos commentedPlease do me a favor:
Recreate this problem using a stock Drupal 4.7 using only Bluemarine,and the simplest view you can come up with (preferably not using CCK or taxonomy) that will cause it. Then post the view here. That'll help me a lot in figuring out what's going on here.
Comment #7
potential commentedmerlinofchaos: I just did a fresh install of druapl 4.7.3 and installed image.module and views.module. I added one picture and created the view below. When I go to www.example.com/photos/admin it shows an "admin" message on the page along with the teaser view for the image.
Comment #8
merlinofchaos commentedOk, fixed and checked in; tarballs will be built sometime in the next 12 hours, or you can update from CVS.
Comment #9
solipsist commentedMerlin and potential: Thanks for a lightning fast fix!
Comment #10
(not verified) commentedComment #11
micheleannj commentedI have the new tarball for 4.7 (modules show a timestamp of 2006-10-06) but I'm still getting this... suggestions?
Comment #12
merlinofchaos commentedCheck the version of the file 'modules/views_user.inc' -- it should be 1.11.2.1
Comment #13
micheleannj commentedIt's 1.11, so that's prolly my problem.
Thanks for the quick reply!
Comment #14
micheleannj commentedErrr, guess I'm a little slow today but now I've got the right version and it's still showing up there... am I missing a step? thanks
Comment #15
merlinofchaos commentedUmmmmmm.
If you have the right version of that file then, uh. I don't know how that message could be appearing.
This is when using the username argument, right?
Comment #16
micheleannj commentedCould it be a caching thing? Don't think I'm crazy, but now it's showing up on non-view pages too!
It's the same thing discribed above: I have username as an argument and usernames are showing up in a green warning box at the top of the page...
Comment #17
merlinofchaos commented1) Are you sure you have the new file in the right place? It should be views/modules/views_user.inc. And that you don't somehow have 2 copies of Views installed? (Drupal has a good likelihood of getting the wrong one when this happens)
2) I don't think it should be a caching thing but it can't hurt to dump your cache anyway. The most effective way is from mysql: execute this sql: 'TRUNCATE cache;'
3) non-view pages as well? That's only possibly from views if you have a block or something that's doing the drupal_set_message as well?
Comment #18
micheleannj commentedI cleared the cache and deleted the views.old folder I had moved the previous copy to. One of these things did the trick.
Thanks again for the help!
m
Comment #19
merlinofchaos commentedProbably the views.old did it --
For future reference, when making backup copies of modules (which is recommended) be sure to put them outside of the drupal modules and sites directories; Drupal has a habit of finding the backup copies and using them in place of the actual modules.