Okay, I hope this won't paint me as a complete loser, but I've had a long few days here. I tries to upgrade my current build (2.4.1) to the new 3.0 and let's just say, it did not play well with others. Eventually I'll try it again when I have more time to deal with it, but for now I've had to revert back to my old version. After I re-established the database and uploaded by backup files, though, when you click on a topic, it won't take you to the first unread post, it just takes you to the message board main page. So, obviously, one of the files is either missing or got lost in translation. So, all that being said, what shoud I be looking at?
You can see what's happening here: [url=https://www.intanibase.com/index.aspx]https://www.intanibase.com/index.aspx.[/url]
Posted by: tha_watcha - Monday, 2 May 2022 08:54:04
The file that handles the url rewriting is the urlrewriter.config. Did you restore that file too?
Posted by: tha_watcha - Tuesday, 3 May 2022 08:33:46
Yes the findunread entries are missing
[code=markup]<rewrite url="^~/(.+)?posts/t([0-9]+)findunread-((['p{Ll}'p{Lu}'p{Lt}'p{Lo}'p{Nd}'p{Pc}-]+))?('?(.+))?$" to="~/$1forum.aspx?g=posts&t=$2&find=unread&$7" processing="stop" />[/code]
and
[code=markup]
<rewrite url="^~/(.+)?posts/m([0-9]+)findunread-((['p{Ll}'p{Lu}'p{Lt}'p{Lo}'p{Nd}'p{Pc}-]+))?('?(.+))?$" to="~/$1forum.aspx?g=posts&m=$2&find=unread&$7" processing="stop" />[/code]
Posted by: eutychus - Tuesday, 3 May 2022 17:54:56
Never mind ... I was able to find the corrected lines in an old file of mine.
[i]Didn't work. It throws a configuration error.[/i]
Next problem:
User profile URLs also now lead to the forum index. The scripted popup that appears when hovering over a username displays the following instead of profile details:
[quote]Sorry, no data found or something went wrong.SyntaxError: JSON.parse: unexpected character at line 3 column 1 of the JSON data[/quote]
Posted by: tha_watcha - Wednesday, 4 May 2022 08:13:58
[quote=eutychus;73337]Never mind ... I was able to find the corrected lines in an old file of mine.
[i]Didn't work. It throws a configuration error.[/i]
[/quote]
Sorry it seems the output for the code block gets messed up
[quote=eutychus;73337]
Next problem: User profile URLs also now lead to the forum index.
[/quote]
[quote=eutychus;73337]
The scripted popup that appears when hovering over a username displays the following instead of profile details:
[quote]Sorry, no data found or something went wrong.SyntaxError: JSON.parse: unexpected character at line 3 column 1 of the JSON data[/quote]
[/quote]
Both issues are caused by missing entries in the urlrewriter.config
[attach]2245[/attach] This should be the correct config file. For your version
Posted by: eutychus - Monday, 9 May 2022 21:47:53
Thanks! Everything seems to be working well now except for one thing: the "Thank" button doesn't seem to work.
Posted by: tha_watcha - Tuesday, 10 May 2022 08:12:22
[quote=eutychus;73346]Thanks! Everything seems to be working well now except for one thing: the "Thank" button doesn't seem to work.[/quote]
I assume your site is based on the yaf sample application? If yes then you need to apply the changes from the commit here.,..
[url]https://github.com/YAFNET/YAF.SampleWebApplication/commit/a28a16e40a68514dc05461fcddfe3adfb7392abc[/url]
Global.asax needs to inherit from YafHttpApplication not from HttpApplication