When selecting an inbox message to view, it is not going to the correct URL. I don't have this issue for sent messages. For example, messages within the sent message folder link as expected to localhost/mysite/messages/view/10. Messages within the inbox folder link to localhost/messages/view/10#new. For some reason the "mysite" component of the URL is lost.

Thank you for an excellent module and your support.

Sincerely,

Eric

CommentFileSizeAuthor
#10 privatemsg_views_sitepath.patch2.67 KBjcnventura

Comments

berdir’s picture

I don't know how that could happen.

The same code is responsible for displaying the two tables, really the only difference there is a slightly different query.

berdir’s picture

Status: Active » Postponed (maintainer needs more info)

The automated tests are done with a path like example.org/subpath/, so I really don't think this is a problem of us.

The link is generated in a theme funciton, maybe you're overriding that.

drtrueblue’s picture

I'm certain that I did not override the theme. I'm also getting that error if you send a message to oneself, it comes back with two new messages instead of one. Could it be related to that?

Thanks for your time and response previously.

Eric

berdir’s picture

I have no clue. Can you give me access to your site? (Use the contact form)

drtrueblue’s picture

That's very gracious of you and I am appreciative. Before I take up your time reviewing my site, perhaps this would be a reasonable approach?

I'll do another fresh install of drupal on my local host with just core and privatemsg modules.
- If the issue is still present, I'll send you a copy of the fresh install and database for you to review.
- If the issue is not present, perhaps you can tell me the best way to uninstall the privatemsg modules and associated database tables from the existing site.
- If after uninstalling/reinstalling, if the issue is still present, I'll again send you a copy of the site and database tables.

Is that agreeable to you? I'd hate to take up your time unless it was absolutely necessary.

Eric

berdir’s picture

Sounds good, trying to reproduce the bug on a default installation is certainly a good way to track this down.

drtrueblue’s picture

Well, I did a new install with nothing but core and privatemsg. NP.
I added views. NP.
I added privatemsg views. NP.
I added views bulk operations. NP.
I added privatemsg views UI. Problem!!

1. Immediately, my privatemsg inbox had the Inbox AND Messages menus highlighted when this was not the case before.
2. When I tried to view any of the threads, I experienced the issue first mention at the beginning of this thread.
3. When I send myself 1 message, I get the issue where the inbox displays 2 New messages.

I disabled the privatemsg_views_UI and presto, all back to normal again.

So, the issue really lies with privatemsg views UI.

I hope this was helpful.

drtrueblue

berdir’s picture

Project: Privatemsg » Privatemsg Views
Version: 6.x-1.3 » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Active

Well, then the problem is privatemsg_views, not privatemsg :)

Moving the issue.

drtrueblue’s picture

Is there any estimate as to when this issue may be reviewed again?

jcnventura’s picture

Status: Active » Needs review
StatusFileSize
new2.67 KB

I think that the following patch fixes this..

I wander why the author defined the correct path in Views, but then decided to write it's own HTML, when everything can be done through Views.

The problem with writing your own HTML like this is that it breaks the ability to move your site from one path to another without changing the View.

crea’s picture

I understand the problem, but please note that provided views are meant to serve as a draft. You are supposed to change them however you may need to. So yes, this is a bug, but a minor one.

jcnventura’s picture

Priority: Normal » Minor

@crea: I agree with you that it's minor. The thing that baffles me is why you had the trouble to configure the link fields correctly, and then decided to disable those and hard-code the HTML that views would create for you if you hadn't..

Sounds like you decided to have double the trouble. If (like most of us) you developed your sites using a folder in your localhost, you'd immediately encounter this problem.

savedario’s picture

subscribe

It's now several months later and it does not seem the patch made it into the CVS.
I am using 6.x-1.0-beta2

crea’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.