Skip Navigation

[Resolved] Getting "You cannot view this message." while setting up messaging system.

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Luo Yang 4 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1325609

Hey guys,

I am following the instructions on https://toolset.com/learn/how-to-create-a-messaging-system-with-toolset/ to setup a messaging system on my website. I am getting this error when trying to reply to a message "You cannot view this message."

I've followed the instructions but must be missing something.

#1325641

Hello,

I can log into your website, and checking it, will update here if there is any found.

#1325643

Here are what I found in your website:
1) There are missing steps, you did not add those custom PHP codes into your website according to that document
2) There is a compatibility problem in your website, you are using three "Ultimate Member" plugins, those plugin will take over WordPress author archive page, and make the custom shortcode [get_author_id_in_archive] not working.

I have done below modifications in your website:
1) Deactivate those three "Ultimate Member" plugins
2) Add the custom PHP codes for shortcode [get_author_id_in_archive] here:
hidden link
click tab "Custom Code", you should be able see item "get_author_id_in_archive", same as that document, setup with below codes:

function get_author_id_in_archive_func($atts) {
$author_id = 0;
if (is_author()){
$author = get_queried_object();
$author_id = $author->ID;
}
return $author_id;
}
add_shortcode("get_author_id_in_archive", "get_author_id_in_archive_func");

3) Create two pages:
a) Inbox
hidden link
with the same codes according to that document:

[toolset_access role="Guest" operator="allow"]
Message for guests
[/toolset_access]
[toolset_access role="Guest" operator="deny"]
[wpv-view name="Messages received" info="[wpv-current-user info='id']"]
[/toolset_access]

b) Outbox:
hidden link
with the same codes according to that document:

[toolset_access role="Guest" operator="allow"]
Message for guests
[/toolset_access]
[toolset_access role="Guest" operator="deny"]
[wpv-view name="Messages sent"]
<div class="wp-block-toolset-cred-form">[cred-form form="new-message" ]</div>
[/toolset_access]

Although there are lots of steps not finished, but we can test it now:
1) In author archive page, for example:
hidden link
You should be able to see a post form "Contact author":
fill and submit that form,

2) then user "toolsetsupport" will see the new message in "inbox" page:
hidden link
And user "toolsetsupport" can reply the message

3) And you will be able to see those sent message in outbox page:
hidden link

As I mentioned above, there are still steps not finished, you will need to setup them according the document:
https://toolset.com/2018/11/introducing-toolsets-communication-system-for-professional-listing-sites/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.