Hi again - in my lame way, I tried the following query in Data Explorer, and got no relevant hits for messages deleted in the Staff category
SELECT *
FROM topics
WHERE deleted_at is not NULL
AND category_id = 3
or even in any category
SELECT *
FROM topics
WHERE deleted_at is not NULL
So wondering if there is something else going on if the topics were not deleted?. Is there some other way to detect those missing topics? Or are system posts perhaps not stored in the topics table at all?
I am wondering if I even can hack the database to cancel deletions if there is no sign of the missing pre-seeded posts ever having existed? Is there a way to rerun the setup wizard on an existing installation, to trigger those pre-seeeded posts to be created? Is there some way the setup wizard could have omitted them the first time? (perhaps there was an option where I clicked ‘skip’ the first time round?)
Is it possible that there was a bug in play with the then current discourse version at the time I set up?
Is it possible that if the missing pre-seeded posts are not even marked as deleted, but simply don’t exist, the absences will not propagate or overwrite anything if I restore backed up database to a fresh Discourse install? Or is it the case that the starting database is removed entirely and replaced by the backup, with all its flaws?
Thank you!! That is exactly what I was looking for - though sadly for me the final rake topics:update_static[en]
command gives an error - not sure why, or how to deal with it.
@Paul_King I encountered an error too when run update_static, but my FAQ page is back! @gerhard The error is the followings and I guess it’s same for Paul.
[5] pry(main)> rake topics:update_static[zh_CN]
NameError: undefined local variable or method `update_static' for main:Object
You were running the rake task in the rails console which doesn’t work. But when you run it correctly, you will notice that the rake task doesn’t exist anymore.
Is there a way to get the TOS and Privacy links in the signup dialog to work? Nothing above seems to have achieved that for me, though I can recreate TOS and Privacy topics that are not linked.
I am unsure exactly how these topics came to be missing in the first place. I just assumed I must have deleted them accidentally somehow when I discovered they were missing, but from my reading it seems this is not even supposed to be possible within the user interface - and given others seem to have struck a similar issue, could this involve a possible bug somewhere?
You have to also copy/paste the urls generated for published posts into the corresponding feilds in Settings/Legal as if these were ‘externally hosted’ Terms of Service & Privacy Policy pages, if you want the links to these in the new signup dialog to work. (not sure why FAQ is omitted from sign up dialog, but you can also set this url here as well - though not sure purpose of this feild/what otherwise links to it if not included in signup dialog?
A workaround that might unravel if the site ever moved to another url, but great in the meantime to at least allow people the option to see what the terms of service etc actually are before they sign up!