Hi,

Thanks for your work on this wonderful addition to private messages. I'm currently using PM 1.2 and the latest PMV beta-1. Along with the absence of the threads actual display I'm getting the following whenever I try to access a private message:

warning: Invalid argument supplied for foreach() in /var/www/thomas/testing.londonfuse.ca/sites/all/modules/privatemsg_views/privatemsg_views.module on line 318.

Which is:

  foreach ($participants as $participant) {
    $uid = $participant->uid;   
    if ($user->uid == $uid && $replace) {
      $items[] = theme('privatemsg_views_self');
    }

Thanks again,
Thomas

Comments

crea’s picture

What page are you getting this message on ?

crea’s picture

If you get it on a view page, please copy-paste here the view query.

We need to be sure thread_id column is in the query.
Basically every message has a thread, and every thread has participants. Participant array can't be empty cause you can't send message to noone. You are guaranteed to have atleast 1 participant in the array, who is message author.

pribeh’s picture

Thanks for responding crea. How do I go about copy-pasting the view query? Can I use devel to do that? I have devel installed.

pribeh’s picture

Oh, and I'm trying to view a message thread by clicking on the message thread link/title at http://testing.londonfuse.ca/messages. I'll be sent to something like http://testing.londonfuse.ca/messages/view/1,596 but interestingly always with the same recipients in the recipient box, the message box and no actual messages displayed.

crea’s picture

You can use Views preview function to get exact query. You can also provide export of the view to help me debug it.

pribeh’s picture

crea, I'm using the default views that come with PMV. I'm pretty sure if you could be so kind as to check out my dev site you can find the answers to your questions. I created an admin account for you on the site testing.londonfuse.ca. Sorry I'm not very skilled with debugging and I'm not sure which view is overriding the message thread.

pribeh’s picture

Status: Fixed » Active

oh very sorry, the username and password are as follows:

username: crea

crea’s picture

Please remove password. Basically it was thousand separator in thread_id number. I'll fix it in the exported view.

crea’s picture

Status: Active » Fixed

I've removed thousand separator from default views. You can also fix your views manually.
http://drupal.org/cvs?commit=370012

pribeh’s picture

Thanks a lot crea. Account deleted.

pribeh’s picture

Status: Active » Fixed

Hi crea,

After upgrading to the latest (22nd) dev I'm now receiving the following whenever I try to access a thread via the message inbox view:

Fatal error: Cannot access empty property in /var/www/thomas/testing.londonfuse.ca/sites/all/modules/privatemsg_views/handlers/privatemsg_views_handler_field_message_actions.inc on line 26

Let me know if this should be filed as a separate issue. Just to note, I've flushed views cache along with site cache.

crea’s picture

@pribeh
That would be separate issue. I've just fixed it. Please try next dev snapshot.

pribeh’s picture

Works perfectly. Thanks so much crea. This is an amazing module. Just one question - don't want to make it into an issue unless it's actually related to PMV. When clicking on a message thread from the inbox view the thread's checkbox is marked: is that default behaviour of views bulk operations or PMV? I can just imagine that as being kind of confusing for the end-user. Not a big deal though.

crea’s picture

Yeah, this is annoying. It is VBO issue most likely. We don't have any JS in Privatemsg Views.
Next time, please open a separate issue, whether you think it applies to Privatemsg Views or not.

Status: Fixed » Closed (fixed)

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

gillisig’s picture

Version: 6.x-1.0-beta1 » 6.x-1.0
Status: Closed (fixed) » Active

I am having this issue using Privatemsg views 1.0, privatemsg 1.5 and views 3.0. How do I go about disabling that thousands separator if that is causing this for me also?

Thanks

crea’s picture

Status: Active » Closed (fixed)

Views 3 is not supported.

gillisig’s picture

Is there any particular reason why views 3 is not suppoted? It seems to work fine except for this message appearing when there are no messages in the inbox..

crea’s picture

It's not supported because it works differently in our target areas