Simple mentions

Old Mentions Stopped Working - Simple mentions

Old Mentions Stopped Working

by liever123 » Fri Aug 28, 2020 8:07 am

Hi,

Mentions had been working fine up until last night when I tried installing the 'Advanced BB Codes' contribution. Installing this caused a server error 500 and I ended up removing it.

However, I've since discovered that now when I go into any old post, rather than it showing the '@name' it shows [mention]name[/mention]

Essentially it's stopped rendering any old mentions.

If I go to edit any of those old posts and hit preview it resolves it, but we have lots of posts so it's not feasible to do this on every one (plus we don't want to generate new mention notifications).

Few things I've tried:

1. Obviously completely removing the advanced bb codes contribution and all files
2. Clear cache
3. DIsabled Simple Mentions, Delete Data, Enable, reconfigure permissions.

But the old posts with mentions are still not rendering.

Has anyone seen anything like this before? - is there anything that can be ran which will go back through the posts and render things correctly?
liever123
Registered User
Posts: 6
Joined: Thu Aug 27, 2020 9:04 pm
Contact:

Re: Old Mentions Stopped Working

by Paul » Fri Aug 28, 2020 10:05 am

The only way is to reparse all posts. You should be able to that via the CLI.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 27105
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: Old Mentions Stopped Working

by liever123 » Fri Aug 28, 2020 10:38 am

Thanks Paul, I was afraid you were going to say that. I'm even more nervous since I think all users will end up getting new notifications that they have been mentioned.

However, I just managed to get that working using: https://www.phpbb.com/support/docs/en/3 ... -reparser/

From the bin folder, when I type php phpbbcli.php reparser:reparse --ansi

I get the whole progress bars etc

reparsing post_text 8875/8875 4secs/4secs 22.4MB 100%

Reparsing ended with success

BUT still old posts are just showing with [mention]xxname[/mention]

Even tried refreshing cache just in case but still same
liever123
Registered User
Posts: 6
Joined: Thu Aug 27, 2020 9:04 pm
Contact:

Re: Old Mentions Stopped Working

by liever123 » Fri Aug 28, 2020 10:49 am

OK FIXED! - Running it using the safemode command (ignoring other contributions) fixed the old posts!

Running it without safemode did nothing. So I'm assuming there was something in this 'simple mentions' contribution stopping it reparsing the old content

No idea why it happened though so any insight would be appreciated
liever123
Registered User
Posts: 6
Joined: Thu Aug 27, 2020 9:04 pm
Contact:

Re: Old Mentions Stopped Working

by bikeridr » Wed Nov 11, 2020 10:42 pm

liever123 wrote:OK FIXED! - Running it using the safemode command (ignoring other contributions) fixed the old posts!

Running it without safemode did nothing. So I'm assuming there was something in this 'simple mentions' contribution stopping it reparsing the old content

No idea why it happened though so any insight would be appreciated
What is "safe mode" and how do I do it?
bikeridr
Registered User
Posts: 49
Joined: Wed Oct 14, 2020 9:19 pm
Contact: