There are circumstances in which the maintenance message can appear more than once. For example, if a page triggers an AJAX event that returns JSON, the theme layer is never invoked for the AJAX request and thus drupal_get_messages() is never called, which normally clears the messages buffer. The page load subsequent such AJAX event will display the maintenance message twice.

The fix is simple: setting $repeat = FALSE for drupal_set_message() will prevent duplication.

CommentFileSizeAuthor
#1 maintenance_helper-965154-1.patch1.19 KBc4rl

Comments

c4rl’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

One-line patch attached

claar’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Fixed

Committed to 6.x-2.x -- thanks, c4rl!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.