Please or Register to create posts and topics.

Problems when adding a new topic using the shortcode for a single forum

Page 1 of 2Next

Hi I have a Learndash site (with Restrict Content Pro) with two different courses that I want separate forums for. When I use a shortcode to embed a single forum on the course support page it appears correctly.  However when I add a new topic, I get the following error message.

No Results Found

The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.”

 

Can you assist?

PS this problem doesnt happen when I add a topic on the forum page (as specified in settings/forum location)

Hello @timgoodenoughza

I just checked your described problem and I cannot reproduce it.

The error-message you mentioned is also not a message generated by Asgaros Forum. It seems that for some reason the permalinks are not set correctly.

How are the following links look like:

  • The link to your single forum which is based on the shortcode-parameter
  • The link after adding a new topic inside this forum

What you can test is to save your permalinks again in Settings -> Permalinks. Its also possible that this issue can be caused by another extensions (maybe some SEO/URL/Caching-extensions). You can verify by disabling other extensions one by one for testing purposes only to see if this fix this issue.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hi @asgaros

Thank you for the prompt reply.

This is my link to my single forum:  https://www.beyondthegap.com/topic/high-performance-learning-discussion-forum/

I use the following shortcode on the page [forum forum="2"]

After adding a new topic the following address leads to the error message: (it loses the topic part of the address)

https://www.beyondthegap.com/high-performance-learning-discussion-forum?view=forum&id=2

I saved the permalinks again – (without any edits) and it says it was updated.

Any ideas of how I get the ‘topic’ part in the address back when I add a new topic?

Many thanks

Tim

Hello again @timgoodenoughza

I see that your first link also contains a topic slug after the domain-name. Do you just have set a topic-page as the parent-page for this forum-page or are you using a certain plugin which adds some kind of topic/lesson-logic to your site?

The reason why I ask is: Asgaros Forum also uses the slug topic to determine if the user is currently inside of a topic-view – which maybe can cause an incompatibility if other plugins try to parse the same slug as well. So besides of the wrong redirect: After creating the topic, does it appear inside of the forum? If so, can you open it?

If not: What happens if you enable SEO-friendly URLs in Forum -> Settings -> URLs?

If this also does not help: Can you try to disable other plugins one by one for testing-purposes only to verify if this is a compatibility-problem? If so, maybe there is a way to solve this by changing some settings.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Yes my LMS Learndash creates topic/lesson logic and has some hidden redirects where if you put the topic name in the url  http://www.beyondthegap.com/lessonName it takes you to http://www.beyondthegap.com/topic/lessonName.

The topic is not created if I create it via a page that has a  /lesson or /topic in its URL. It is however created when I go to beyondthegap.com/forum.

I tried the SEO-friendly options – both slug and and ID and no luck – still losing the ‘topic’ or ‘lesson’ part.

If I insert the forum in beyondthegap.com/lessons/x it also removes the ‘lessons’ part when a click on “add a new topic”  and goes to beyondthegap.com/x

I know an obvious solution would be to just create urls outside of the course structure but that has membership/privacy implications as well as losing ‘sight’ of the menu structure for users.

Is there anything else that can be done on the ‘asgaros’ side?

 

Hello @timgoodenoughza

If this plugin is doing redirects, I guess this is the reason for this problem because the redirect occurs before the content can be stored inside of the database.

With the next update I want to introduce additional URL-settings which allows you to change the view-names. For example instead of topic for topics you can set it to something different like top. I cant promise you that this will fix the issue, but I think the change is high.

I cant give you an exact date on when this update will be available, but it should be relatively soon – if everything goes well, it will be around next week. You can keep track on the development-progress of this view-renaming-functionality here:

https://github.com/Asgaros/asgaros-forum/issues/220

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

While trying to add the mentioned options, I unfortunately figured out that this will require more changes than expected to the existing code-base. This means that I have to postpone this feature to a later major-update to avoid that I introduce possible system-breaking changes in a minor-update. I am very sorry for the delay. 🙁

In the meantime, can you check if there is an option in the lesson/lecture plugin which allows you to change the url-term there?

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Update: Seems I found a good solution to add it. Maybe I can include it in the next update after all, but I have to do some extensive testing before which means: I cannot 100% promise it, but I will give my best! 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thank you for your prompt responses and your commitment to going the extra mile. I appreciate it and am excited by the possibility of this being fixed.  Please let me know if I can assist in any way?

Best

Tim

PS yes I can change the slug in LearnDash for both Topics and Lessons if needed.

@timgoodenoughza

I will let you know as soon as I have a testing-version ready.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Page 1 of 2Next