Created By
DMG Development
As Seen On

Main Page  |  Forums  |  Register  |  Active Topics  |  Members  |  Search

 
Username:
Password:
DMG Forums >> DMG Forums Discussion >> General Discussion >> weird date error
weird date error
Author Topic
grahamc


Newbie

Join Date: 10/30/2009
Posts: 1

Posted: 10/30/2009 6:29:45 AM

Hi, I have recently integrated DMG forums with a site i am developing and it works great. No problems with install and all was fine.

However, I deleted the original welcome post that is created by default so that one of my users could put her own welcome message there. I also edited her post as there was some typos etc. (its ok the user is my sister and she knows i always correct her spelling lol!)

This seemed to cause an error which turn broke all the links (main page link errord forums link errord and i couldnt log out of admin account) and stopped the default.aspx from loading. I had to specifically add customerrors mode=off to my sites web.config ( i know, no proper error handling yet in my app... whoops!) to get the full error to display and hence realised the
problem was the DMG_forums table/forum_lastpost_date field was set to null and I was getting a db null to date conversion error which caused a page exception.

Is this a bug with either delete or edit post procedures or did i do something silly? I fixed it by updating the date in the table to a valid date and all's now fine. Am just a bit worried that i will have to do this every time a post is edited or deleted by admins or mods?
grimmeissen


Administrator


Join Date: 8/30/2005
Posts: 654
Location: Cincinnati, Ohio

Posted: 10/30/2009 4:59:03 PM

I'll run some tests on this to see if I can re-create the bug. My guess is that if there is something there, it's only when you delete that original post and there are no other posts currently in the system.

I delete threads and replies all the time and haven't seen this issue. Also, which version of the forums are you running?

  Copyright DMG Development DMG Forums 3.2