Solution to Calendars not loading, incorrect Image syntax in description field breaks Calendars
- Status
- Closed
- Subject
- Solution to Calendars not loading, incorrect Image syntax in description field breaks Calendars
- Version
- 14.x
- Category
- Error
- Feature
- Calendar
- Resolution status
- Works For Me
- Submitted by
- taylordustin
- Lastmod by
- lindon
- Rating
- Description
I discovered an issue with my calendars a couple of weeks ago. It turns out that it was caused by one of our users giving a certain input to a new calendar item. Essentially, they were attempting to add an image to a calendar event and submitted an improperly formatted string in the description field. Instead of using the the 'Image' button on the new calendar item page (tiki-calendar_edit_item.php) to load their image, they did some sort of copy/paste of the image or its syntax from a page using the wiki syntax.
Their input in the database looked like:
<p>{img fileId="791"}</p>But the correct syntax looks like:
<p><img alt="" src="display791" /></p>
After hunting this bug down, it was determined that it was in fact the cause of our calendars getting hung during the loading screen, and this resulted in the WSOD. After simply deleting the two entries from our database that had the incorrect syntax, the entire issue was resolved, and the calendars began loading correctly again.In pursuit of a fix for this kind of bug happening again, maybe there is some way to prevent a write to the database when the title or description field (in tiki-calendar_edit_item.php) contains this form of syntax?
Hopefully, there will be a way to restrict this from happening, as it took a couple of weeks to hunt this bug down, since we had no idea when or where it originated from.
I'm submitting this bug report in case future users experience this same type of issue.
- Solution
I am not able to recreate this in 14x or trunk. I pasted in the same combination of Tiki and HTML syntax and it worked fine, both in WYSIWYG and Tiki syntax. I had the =+calendar_description_is_html+= preference from the Calendar control panel checked.
Do you have the same problem in a show instance or another site that can be tested?
- Importance
- 7
- Easy to solve?
- 9
- Priority
- 63
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 5770
- Created
- Monday 23 November, 2015 21:49:37 UTC
by taylordustin - LastModif
- Sunday 18 June, 2017 23:14:12 UTC