boonebgorges / buddypress-docs

GNU General Public License v3.0
106 stars 44 forks source link

Docs/create/ -> Archive #712

Open DannyOure opened 1 year ago

DannyOure commented 1 year ago

When Im under Docs -> Create : it sends me to my docs archive instead of creating a new doc. Im using danish language pack.

boonebgorges commented 1 year ago

Could you please provide more information? When you say "it sends me", do you mean (a) when you click the 'New Doc' link in the navigation, you are led instead to the /docs/ archive, or (b) when you click the 'Create' button while creating a new doc, you're redirected to the /docs/ library? If the latter, is the doc actually created?

DannyOure commented 1 year ago

When I click the New Doc link, it sends me to "create" but shows the archive Docs/create/?group="XXX" = Just shows the Docs archive.

boonebgorges commented 1 year ago

Great, thanks for the additional details.

It seems like something is wrong with the rewrite rules. A few things to try:

  1. Visit Dashboard > Settings > Permalinks, and re-save your existing settings.
  2. Install and activate the Query Monitor plugin https://wordpress.org/plugins/query-monitor/ As an administrator, visit the /docs/create page. Then, in the Query Monitor toolbar dropdown, select 'Request'. Look for the section that says 'Request | Matched Rule | Matched Query | Query String'. It should look something like this: Screenshot_2022-08-30_12-49-17
DannyOure commented 1 year ago

When I click "create a Doc" it just re-enters the page "archives" it seems.

BP Docs query Monitor

boonebgorges commented 1 year ago

Thanks for this! Very helpful. It looks like the problem is not with rewrite rules - the query is being set up properly.

So the next place to look is with your template files. From the text 'Create a Doc', I can tell that at least part of the theme compatibility layer is working properly. What do you see below that title? Do you see a list of Docs, or do you see nothing at all?

What theme are you using? Do other Docs views work - ie when you go to /docs/ do you see the proper list of Docs?

DannyOure commented 1 year ago

All I see is : "Archive: Docs Create a Doc (link) But that link gets me back to the /Docs/create/?group=test "archives" -site.

Using Twenty Twenty-Two : Version: 1.2 and bp docs version 2.1.7