Closed (fixed)
Project:
Privatemsg Views
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2010 at 14:22 UTC
Updated:
27 Mar 2012 at 02:18 UTC
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
Comment #1
crea commentedWhat page are you getting this message on ?
Comment #2
crea commentedIf 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.
Comment #3
pribeh commentedThanks for responding crea. How do I go about copy-pasting the view query? Can I use devel to do that? I have devel installed.
Comment #4
pribeh commentedOh, 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.
Comment #5
crea commentedYou can use Views preview function to get exact query. You can also provide export of the view to help me debug it.
Comment #6
pribeh commentedcrea, 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.
Comment #7
pribeh commentedoh very sorry, the username and password are as follows:
username: crea
Comment #8
crea commentedPlease remove password. Basically it was thousand separator in thread_id number. I'll fix it in the exported view.
Comment #9
crea commentedI've removed thousand separator from default views. You can also fix your views manually.
http://drupal.org/cvs?commit=370012
Comment #10
pribeh commentedThanks a lot crea. Account deleted.
Comment #11
pribeh commentedHi 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 26Let me know if this should be filed as a separate issue. Just to note, I've flushed views cache along with site cache.
Comment #12
crea commented@pribeh
That would be separate issue. I've just fixed it. Please try next dev snapshot.
Comment #13
pribeh commentedWorks 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.
Comment #14
crea commentedYeah, 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.
Comment #16
gillisig commentedI 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
Comment #17
crea commentedViews 3 is not supported.
Comment #18
gillisig commentedIs 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..
Comment #19
crea commentedIt's not supported because it works differently in our target areas