Notifications
Clear all

Wrong URLs are being sent in notification emails

18 Posts
2 Users
0 Likes
1,218 Views
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

Hello,

I am a big fan of your plugin! Recently I have noticed an issue regarding the permalink being sent to the post author when someone comments.

See I use LearnDash LMS and offer online courses on my site. So if some student posts a comment, the post author (instructor of the course) gets an email with the permalink of the course/lesson/topic. And when he replies, the student gets another notification email with the permalink of that same course/lesson/topic.

Say the permalink for a topic of my course being sent via email is (for example): https://www.bohubrihi.com/topic/interface/#comments

But the actual permalink of that topic is: https://www.bohubrihi.com/course/adobe-illustrator-complete-course/lesson/getting-started/topic/interface/

(The topic is nested under the lesson and lesson is nested under the course. Learndash uses this Nested URL so that same topic/lesson can be used in multiple courses.)

Bottom line is, the permalink being sent through email is not pointing and directing users to the actual topic/lesson/post. I initially thought this is something with Learndash’s nested permalink feature. But I deactivated your plugin and used the built-in wordpress comment system and it did send the rightly nested URL.

Can you help me with this? The comment/discussion section is very vital for my website and I really want to keep using your plugin cz I love it.

 

The page I need help with: https://www.bohubrihi.com/course/adobe-illustrator-complete-course/lesson/getting-started/topic/interface/


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

Hi @yipiash,

We don't find such an issue on our test websites. This is something specific on your website. We'll need admin access to check the issue. Could you please send admin login details to info[at]gvectors.com email address to allow us to check it? 


   
ReplyQuote
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

@astghik

I did send the login credentials at info[at]gvectors.com from yanur.piash[at]gmail.com

 


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

Hi @yipiash,

We've tested on your website and everything is working fine in our case. Please see the screenshot below.

wpDiscuz uses get_permalink function. Please make sure you don't use some functions that effect on these functions work: 

Info on get_permalink function here: https://developer.wordpress.org/reference/functions/get_permalink/

email

   
ReplyQuote
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

Hello,

I think you misunderstood my original post. I said the mail is sent but the permalink being sent is not the "nested permalink". If I use native wordPress comment feature, the nested permalink is correctly sent.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

ok @yipiash,

We cannot edit the wpDiscuz plugin codes. For further support please open the plugin editor and let us know.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

Hi @yipiash,

We've checked one more time the issue. This is not the mail sent by wpDiscuz. This is default email send by Wordpress side when the "E-mail me whenever Anyone posts a comment "  option is enabled from Dashboard > Settings > Discussion admin page. So the issue doesn't have a relation to the wpDiscuz plugin. 

All emails that are being sent by the wpDiscuz plugin you can find on Dashboard > Comments > Phrases > Email admin page. So jsut navigate and make sure there is not the email with such content.  


   
ReplyQuote
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

So If I disable the "E-mail me whenever Anyone posts a comment " option, will wpDiscuz send email notification to post author for new comments?


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

Hi @yipiash,

wpDiscuz sends email notification only if the post author subscribes to the current post. 

Please read this doc to get more info: https://wpdiscuz.com/docs/wpdiscuz-documentation/settings/email-subscription/


   
ReplyQuote
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

Okay. I checked further. So the post author gets the notification from wordpress core. but when he replies to the comment, the first commenter gets notification for the reply and it is sent by wpdiscuz. And in this reply notification, the url being sent is not nested either. So I am facing the same issue for the email that is sent by wpdiscuz.


   
ReplyQuote
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

Also If I deactivate wpdiscuz and use native wordpress comment forms. The first notification to the post author (which isn't apparently affected by wpdiscuz) DOES send the right nested URL to the post author.

This is getting more confusing for me.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

ok @yipiash,

It seems the some of active plugins (presumably the LearnDash LMS ) changes the permalinks. For more deeper support please either open the plugin and theme edit feature for the current user or install and activate the Duplicator — WordPress Migration Plugin, backup your WordPress site and send it to info[at]gvectors.com email address to allow us to check it. 


   
ReplyQuote
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

Hello,

The credentials I sent you for is the staging site. You may change plugins as you like. I have opened the ability to edit theme and plugin codes in the wordpress dashboard.


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

ok @yipiash thank you.

We're going to check the issue. I'll update the topic asap. 


   
ReplyQuote
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

Thank you for your efforts 🙂


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

@yipiash,

The issue doesn't come from wpDiscuz. It comes from the LearnDash LMS plugin.  Please see the issue description below and ask them to fix it. 

In this case, there is not course_id post_meta for the topics, so they should fix this and everything will work fine. 


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

Hi @yipiash,

Please let us know does the issue solved or not? 


   
ReplyQuote
(@yipiash)
Active Member
Joined: 5 years ago
Posts: 13
Topic starter  

Hello, I have contacted Learndash support and let them know about your findings. Yet to hear from their end.


   
ReplyQuote
Share:
Scroll to top