Support Forum

Email Digest/HTML Email – Cannot see links

RI Ricki
Ricki
Member

I have a problem on one of my production sites where the email digest does not display links that are within the forum post.  Instead of displaying the link, it says ** you do not have permission to see this link **.  A sample email digest is attached.

NOTE: This only occurs for the daily email digest.  I have not tested it for weekly digest.  For those subscribed live to the forum, they see the links just fine in their emails.

I have been able to recreate the problem on a clean test site that only has only two plugins (Simple:Press and WP-Frontend Pro) installed and active.  I am in the process of trying to see if I still get the error with only the Simple:Press active.

For forum add-ons, I have Email Digest and HTML Emails as well as the editor add-ons which I am testing.  The WordPress installation and all plugins/add-ons are at their latest versions.

For HTML Email template, I have the following:

<h1 class=”post-title”>%TOPICNAME%</h1>
<h3 class=”byline”>In <span class=”forum-name”>%FORUMNAME%</span></h3>
<div class=”post-content”>%POSTCONTENT%</div>
<h3 class=”post-link”>To reply to this post, click the link below: %POSTURL%</h3>
<div style=”margin:20px 0;border-bottom: 1px solid #000000″></div>

I can give admin access and login details via PM if needed.

Thank you,

Ricki

9 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Let me take a look at the code and see what I can find first. Are you by any chance aware if some recipients DO get the links while some do not?

RI Ricki
Ricki
Member

I have not found any instance where it appears for one type of person vs. another.  As an administrator, I receive the same error.  Let me know if you need me to take a look at this some more.

YS Yellow Swordfish
Yellow Swordfish
Member

It looks like we may be stripping some of the html from the content. I will talk to my colleague who wrote the plugin to try and get a handle on what is happening

MP Mr Papa
Mr Papa
Member

who was that email sent to?  just like regular content viewing, the user receiving the digest has permission check done to verify they can view the links…  just verified on one site I know uses daily digests that it is working properly with links… so doesnt seem to be a general problem (not saying there is not an issue)…

I assume these users can see the links when visiting the site?   are users members of more than 1 usergroup?  and perhaps dont have permission for viewing links in the other usergroup?

Can you do me a favor and see if any difference if you dont use the html emails?  the other site I referenced does as well, but trying to gather some data…

just to be safe and sure, could you please go to forum – toolbox – housekeeping and try resetting both the auths cache and user plugin data…and see if still an issue…

we will also do some more testing on our end…

RI Ricki
Ricki
Member

While I am looking into this some more, can you tell me if the error message,  ** you do not have permission to see this link **, is coming from the plugin code?

MP Mr Papa
Mr Papa
Member

yes, that definitely is our message… users need permission to view links in post content… so assuming they see links in content when viewing in the forum, they should see them in emails as well…

my initial thought my be the permission check wasnt working for emails… but when user I know does daily digests and uses html emails and said things were working, wasnt so sure…  I still plan to try to verify that is working right, just did not have time last night…

RI Ricki
Ricki
Member

No problem.  

I am trying to recreate the problem this morning on my test site, but now it is working fine.  

I did turn off HTML emails and those links are coming through fine.  Now, I turned on HTML email for the digest, and the links are coming through fine so I am not able to recreate the problem.

When I opened this post, I had re-run the test several times to make sure I was seeing it correctly.

___

General information…

The users who see this error, receive the links just fine in the live HTML email notifications and they can see them when they log into the site.  It just occurs in the digest version with HTML emails only.

All users are the WordPress role, Subscriber, and they have the can view links/can create links permissions checked for their User Group.  These users can see the links just fine when they are logged in.

I did clear both the caches so maybe that helped.

_____

This issue seems to appear and disappear on me.  I thought was fixed several times over the past few months but then it re-appears.  

I opened the ticket because it was appearing in a clean WP install with just Simple:Press active, but now I can’t recreate it.

MP Mr Papa
Mr Papa
Member

interesting…  perhaps you had stale auths cache… just let us know if you can recreate it…  thanks for update…