Please or Register to create posts and topics.

Blank Page after post + Autosuscribe problem

BOnsoir,
I have two problems after an update of my site :

1/ When I post a publication, I arrive on a blank page. The redirection link after the publication looks bad (it puts me an extra “forum” : https://elementsindustriels.fr/forum/forum/coups-de-belier-et-regimes-transitoires/ )

2/ The auto-subscribe doesn’t work anymore, although I have put back what you taught me the first time here: https://asgaros.com/support/topic/receive-notification-for-all-new-post/#postid-2349
What I want is that by default, the authors of the publications and those who respond are subscribed to the posts.

Thank you!

Translated with http://www.DeepL.com/Translator (free version)

Hey @elementsindustriels,

the redirection seems to be correct. It’s normal that you will get two times “forum” in your URL. The first “forum” is the name of the page where you have your [forum] shortcode. For example here in this forum the page is called support. So your URL is always domain.com/page-name/forum/forum-name. The second “forum” will change to “topics” when you open a topic. The structure of the URL is necessary for the forum to render the right content.

If you will get an empty page after submitting a new topic, it could be that your caching tools are not set up correctly. Do you use any plugin for caching on your website. It could also be a caching tool on your web server.  Please exclude the page of the forum from caching in the settings.

To auto subscribe the author and everyone that replies on the post you should add the snippets  shown in this topic:

https://asgaros.com/support/topic/subscribe-to-own-topics-automatically/

Can you please show the code that you are using at the moment.

If you ever wonder how to return the favour for helping you.

Thanks for the answer!

No, I don’t have a cache plugin enabled. This blank page only happens when adding a new post. When you get a reply, don’t worry. For the code, indeed I didn’t have the same one, because it was this one:

function auto_subscribe($postID, $topicID) {
    AsgarosForumNotifications::subscribeTopic();
}
add_action('asgarosforum_after_add_topic_submit', 'auto_subscribe', 10, 2);

I replaced it by the one you gave me, and I have the impression that it even solved the blank page proble!!

But same problem for auto subscribe: none of the authors or the the repliers receive an email

Thank you !

At least you were already able to get rid of the blank page. So there was probably an php error with your code that you were using.

To check the subscription please check first if the new post is listed in the subscriptions of the user.

Do you get a notification if you subscribe manually to a topic?

Uploaded files:
  • Screenshot_20200924_105647.png
If you ever wonder how to return the favour for helping you.

Hey @elementsindustriels,

I have updated my plugin Toolbox for Asgaros Forum today and added Autosubscription to the features:

https://wordpress.org/plugins/toolbox-for-asgaros-forum/

If you ever wonder how to return the favour for helping you.