Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (Alento), 62 guests, and 193 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Outdoorking
Outdoorking
Sydney, Australia
Posts: 322
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 18
isaac 16
Ruben 15
Morgan 6
M4TT 2
driv 2
Alento 1
Latest Photos
Test
Testing to drag photos
Comfortable Cats
Test
BSA photos
Previous Thread
Next Thread
Print Thread
[FIXED for 7.0.1] Calendar entries disappearing - NEW REPRODUCEABLE BUG! #166152
10/15/06 06:43 AM
10/15/06 06:43 AM
Y
Yomar  Offline OP
member
Joined: Sep 2004
Posts: 168
Leiden, The Netherlands
Previously there was a bug that made calendar entries disappear if the corresponding topic was edited - something which frequently happens on our forums.

However, I am now 100% sure it is not only topic edits that cause entries to disappear. I think adding postings to the same thread does the same.

This morning, I noticed that an entry on the 17th of October had disappeared after what I thought to be an edit. I re-edited the posting, re-selected the calendar box and re-selected the date. The entry appeared on the calendar again (after a 5 minute cache delay). This happened at 3:40 AM.

However, this morning said entry had once more disappeared from the calendar, after several replies to said topic had been posted. However, the topic itself still read: [Edited by Yomar at 3:40 AM], i.e. the same edit that originally caused the calendar entry to re-appear.

I also know that calendar entries from inactive topics (one-time postings no one replies to, which we also use) do not disappear.

Rick, I believe something very funny is going on with calendar entries, and that the problems are not only caused by edits, but by topic activity in general, whatever that activity is.

I have mentioned this before, but at that time you thought only the edits were responsible. Since that explained all problems I had encountered until then but one case, I imagined the one remaining case was due to some kind of glitch.

However, this is the second time this happens while no one has edited said thread. So I'm 100% sure now there is more to this.

Last edited by Rick; 10/15/06 11:22 AM.
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Calendar entries disappearing - not only after edits [Re: Yomar] #166153
10/15/06 06:49 AM
10/15/06 06:49 AM
Y
Yomar  Offline OP
member
Joined: Sep 2004
Posts: 168
Leiden, The Netherlands
And now it happened a third time in the same thread, just after I edited my last posting in that thread... i.e. not the first posting in the topic, in which the date is set.

Re: Calendar entries disappearing - not only after edits [Re: Yomar] #166154
10/15/06 06:54 AM
10/15/06 06:54 AM
Y
Yomar  Offline OP
member
Joined: Sep 2004
Posts: 168
Leiden, The Netherlands
I've found it!

Reproducable bug

If a thread is added to the calendar and anyone who posted in said thread edits one of his/her postings in said thread, the entry will disappear from the calendar.

Re: Calendar entries disappearing - not only after edits [Re: Yomar] #166155
10/15/06 06:57 AM
10/15/06 06:57 AM
Y
Yomar  Offline OP
member
Joined: Sep 2004
Posts: 168
Leiden, The Netherlands
Rick, I could really use a fix for this one, even though the official version of 7.0.1 is not released yet. Any way I can temporarily fix this by editing a few files?

Re: Calendar entries disappearing - not only after edits [Re: Yomar] #166156
10/15/06 11:21 AM
10/15/06 11:21 AM
R
Rick  Offline
Former Developer
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
Thanks for tracking this down. It comes down to a closing bracket being in the wrong place, so some code gets executed on any edit to any topic replies. The fix.

Line 476 of scripts/modifypost.inc.php has this:

Code
        } // end if

        $query = "
                delete from {$config['TABLE_PREFIX']}CALENDAR_EVENTS


You need to take the "} // end if" line and move that down to around line 494. Right before:

Code
        // Update the files

Re: Calendar entries disappearing - not only after edits [Re: Rick] #166267
10/16/06 03:21 AM
10/16/06 03:21 AM
Y
Yomar  Offline OP
member
Joined: Sep 2004
Posts: 168
Leiden, The Netherlands
Thanks Rick, that worked!

The OT still has to re-select the date whenever he edits the first posting in said thread though. Is that a lot harder to fix temporarily myself?

Re: Calendar entries disappearing - not only after edits [Re: Yomar] #166293
10/16/06 11:00 AM
10/16/06 11:00 AM
R
Rick  Offline
Former Developer
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
Yeah, that one requires a few fixes in a couple files that are a bit complex, so unable to post that one.


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Upgrade from a really really old version
by Alento. 10/18/18 06:16 PM
Subscription Feature
by M4TT. 10/16/18 09:34 PM
PHP 7.2 compatibility
by Pak. 10/16/18 06:00 PM
UBB.threads 7.7.0 - Progress Reports
by isaac. 10/13/18 09:34 AM
Can't Reply to Global Announcements
by M4TT. 10/06/18 08:29 PM
Forum Statistics
Forums36
Topics35,151
Posts191,514
Members12,109
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2