YAFLogo

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
10 years ago
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.


Deleting Forum

Please do not navigate away from the page while deletion in progress.


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).
Sponsor

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
10 years ago
Forum is being deleted in a separate thread. The windows is outdated. There should be a warning that deleting is sheduled.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
Originally Posted by: bbobb 

Forum is being deleted in a separate thread. The windows is outdated. There should be a warning that deleting is sheduled.



Thats incorrect, the task is immediately executed. The Window is not outdated.

Quote:

Download and install latest version from codeplex



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.
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
10 years ago
Originally Posted by: tha_watcha 


Thats incorrect, the task is immediately executed.


I have some doubts, because I myself was writing task blocking fuctionality. It has a good chance to be executed immediately.

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
10 years ago
Originally Posted by: tha_watcha 


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.



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


Deleting Forum

Please do not navigate away from the page while deletion in progress.


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.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
Originally Posted by: johnk 

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.



Do you get any javacript errors in the error console?
shide
  • shide
  • 80.6% (Honored)
  • YAF Lover
9 years ago
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)
shide
  • shide
  • 80.6% (Honored)
  • YAF Lover
9 years ago
here's a good to avoid that kind of error :

pagerequestmanagerparsererrorexception 
but i still can't find out why i keep getting this error... :?

shide
  • shide
  • 80.6% (Honored)
  • YAF Lover
9 years ago
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?!' ;)
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
9 years ago
Originally Posted by: shide 

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?!' ;)



Thanks, fixed in latest commit.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button