Over the past years, many people have reported a problem when using this mod - after clicking Thanks the following error appears :
Quote:
Could not find phrase 'post_thanks'.
|
It's been reported since 2006 (see
here) and apparently still hasn't been fixed. Some people have even stopped using the mod due to this error, even though the error is
only a message and doesn't affect functionality of the mod.
I think the main reason it hasn't been fixed is because the error is rarely seen - that's because the 'Redirecting' page is not seen by most people due to the use of AJAX. However, while testing this mod with various browsers and various settings, I have seen this error a few times. One way to see the error is to right-click the Thanks button and open it in a new tab, then it doesn't use AJAX so the error will appear temporarily before the page is reloaded. But I've also seen the error in other (rare) situations.
I couldn't find any solutions online so I tried to find a solution myself. First I tried to manually create the missing phrase, but I couldn't get it to work. Then I searched the post_thanks templates to manually fix it, but I couldn't find anywhere to fix it there, so then I searched the actual files included in the zip but I'm not an expert coder so I still couldn't figure out how to fix it.
Fortunately I then came up with a quick-fix solution and figured I should post it here in case anyone else wants to use it. It's very simple - you just use the Replacement Variable Manager to get rid of the message! So in your admin control panel just go to the Replacement Variable Manager, click 'Add New Replacement Variable' then in the top box enter the following :
Quote:
could not find phrase 'post_thanks'.
|
And just leave the bottom box blank, then Save. No more error message
Hope this helps someone!