Posted by: johnk - Saturday, 10 August 2013 09:19:10
Steps:
1. Download and install latest version from codeplex
2. Open Admin > Forums > Settings> Forums section,
3. Create new forum by clicking on "New Forum" button. Do not click on "New category" button.
4. Add name, description, sort order, etc. and click save button.
5. Next, immediately delete this newly created forum
I got a modal window popup and it did not close ever after 60 minutes.
[code]
Deleting Forum
Please do not navigate away from the page while deletion in progress.
[/code]
This was on chrome browser.
URL: /forum/default.aspx?g=admin_deleteforum&fa=28
After one hour, I opened a new tab and it seems the newly created forum was deleted (atleast on the front end).
Posted by: bbobb - Saturday, 10 August 2013 10:15:52
Forum is being deleted in a separate thread. The windows is outdated. There should be a warning that deleting is sheduled.
Posted by: tha_watcha - Sunday, 11 August 2013 10:36:22
[quote=bbobb;60498]Forum is being deleted in a separate thread. The windows is outdated. There should be a warning that deleting is sheduled.[/quote]
Thats incorrect, the task is immediately executed. The Window is not outdated.
[quote] Download and install latest version from codeplex[/quote]
Do you mean latest release or latest source code? Because i can not reproduce it with the latest source code. But i guess the javascript is broken in the current release.
Posted by: bbobb - Sunday, 11 August 2013 12:22:40
[quote=tha_watcha;60510]
Thats incorrect, the task is immediately executed.[/quote]
I have some doubts, because I myself was writing task blocking fuctionality. It has a good chance to be executed immediately.
Posted by: johnk - Sunday, 11 August 2013 22:22:59
[quote=tha_watcha;60510]
Do you mean latest release or latest source code? Because i can not reproduce it with the latest source code. But i guess the javascript is broken in the current release.
[/quote]
The latest source code from codeplex: 55ce45ad1b4a
I built it by running the build.bat file.
I was again able to reproduce this bug in Firefox browser. After clicking the confirm delete popup, it shows
[code]
Deleting Forum
Please do not navigate away from the page while deletion in progress.
[/code]
Few seconds later I noticed it loaded something in backend. But the message window above does not close automatically even after one hour. The forum gets deleted (or atleast does not show up in frontend). Possibly javascript is not loading correctly to close modal window.
Posted by: tha_watcha - Monday, 12 August 2013 13:09:22
[quote=johnk;60517]Few seconds later I noticed it loaded something in backend. But the message window above does not close automatically even after one hour. The forum gets deleted (or atleast does not show up in frontend). Possibly javascript is not loading correctly to close modal window.
[/quote]
Do you get any javacript errors in the error console?
Posted by: shide - Tuesday, 17 June 2014 16:10:46
I also have that problem.
The JS console says : "unable to parse reponse from server" the error is triggered in ScriptResource.axd.
Inside the Yaf logs we have :
System.InvalidCastException:
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'.
at YAF.YafResourceHandler.GetResponseLocalAvatar(HttpContext context)
Posted by: shide - Monday, 29 September 2014 16:01:02
here's a good to avoid that kind of error :
[url=http://weblogs.asp.net/leftslipper/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it]pagerequestmanagerparsererrorexception[/url]
but i still can't find out why i keep getting this error... :?
Posted by: shide - Tuesday, 30 September 2014 11:03:22
looks like a server error was thrown, that caused this JS error.
in DB, in the stored SP 'yaf_forum_move',
the line : 'exec [dbo].[yaf_topic_move] @tmpTopicID,@ForumNewID,0, -1;'
needed another argument which is the '@UTCTimeStamp'.
i set that argument to optionnal, and now it seems to be working.
And also, in yetAnotherForum/pages/admin/deleteforum.ascx.cs, around line 290,
there is a '// TODO : Handle Error Message?!' ;)
Posted by: tha_watcha - Wednesday, 1 October 2014 11:10:07
[quote=shide;64610]looks like a server error was thrown, that caused this JS error.
in DB, in the stored SP 'yaf_forum_move',
the line : 'exec [dbo].[yaf_topic_move] @tmpTopicID,@ForumNewID,0, -1;'
needed another argument which is the '@UTCTimeStamp'.
i set that argument to optionnal, and now it seems to be working.
And also, in yetAnotherForum/pages/admin/deleteforum.ascx.cs, around line 290,
there is a '// TODO : Handle Error Message?!' ;)
[/quote]
Thanks, fixed in latest commit.