Home

>

Tools

>

Drupal

>

Releases

>

7.54

Drupal Release: 7.54

Tag Name: 7.54

Release Date: 2/1/2017

Drupal LogoDrupal

Highly flexible, open-source content management system known for complex, scalable web applications. Preferred by government, educational, and large enterprise websites requiring advanced customization and security features. Robust module ecosystem.

TL;DR

Drupal 7.54 brings several important bug fixes, performance improvements, and minor enhancements to the core functionality. This release addresses issues with form validation, drag-and-drop functionality in Chrome, watchdog logging performance, and HTTPS detection. It also includes improvements to fieldsets, menu theming, and float field validation.

This maintenance release focuses on stability and performance rather than introducing major new features. Site administrators should upgrade to ensure their sites benefit from these fixes, particularly those experiencing issues with form validation for anonymous users or performance problems with watchdog logging.

Highlight of the Release

    • Fixed form validation errors for anonymous users on custom forms with '#token' = FALSE
    • Restored drag-and-drop functionality in newer Chrome versions
    • Added ability to disable watchdog logging of searches for performance improvement
    • New API function to detect HTTPS requests
    • Improved performance when clearing large watchdog logs

Migration Guide

No significant migration steps are required for this update. This is a maintenance release that focuses on bug fixes and performance improvements without introducing breaking changes.

Site administrators should review the following after upgrading:

  1. If your site has performance issues related to search logging, you may want to configure the new option to disable watchdog logging for searches.

  2. If you've implemented custom stream wrappers, ensure they properly implement the stream_metadata() method for PHP 5.4 compatibility.

Upgrade Recommendations

This update is recommended for all Drupal 7 sites, especially those experiencing:

  • Form validation issues with anonymous users
  • Drag-and-drop functionality problems in Chrome
  • Performance issues related to watchdog logging
  • Sites running on PHP 5.4 with custom stream wrappers

The update contains important bug fixes and performance improvements without introducing breaking changes, making it a low-risk upgrade that will improve site stability and performance.

Follow the standard Drupal update procedure:

  1. Back up your database and files
  2. Put your site in maintenance mode
  3. Update your Drupal core files
  4. Run the update script by visiting /update.php
  5. Take your site out of maintenance mode

Bug Fixes

Form Validation for Anonymous Users

Fixed an issue where custom forms with $form['#token'] = FALSE would always cause validation errors for anonymous users.

Drag and Drop in Chrome

Resolved a bug that prevented drag-and-drop functionality from working in newer Chrome versions after the jQuery update in Drupal 7.51.

Float Field Validation

Fixed validation for float field types that was rejecting numbers with decimal points but no decimal numbers (e.g., "123.").

File Validation Error Messages

Corrected an issue where file validation error messages were not being removed after a subsequent upload of a valid file.

Date/Time Format Display

Fixed the admin configuration page at /admin/config/regional/date-time which was not showing the correct default format for short and medium formats.

PHP 5.4 Stream Wrapper Compatibility

Implemented the stream_metadata() method on stream wrappers for PHP 5.4 compatibility, which was calling this method but not implemented by Drupal.

New Features

Modules Can Define Theme Engines

Modules can now define theme engines, expanding the theming capabilities of Drupal 7. This enhancement provides developers with more flexibility in implementing custom theming solutions.

New API Function for HTTPS Detection

A new API function has been introduced to detect HTTPS requests, factoring out this logic into a reusable function. This improves code maintainability and provides a standardized way to check for secure connections.

Option to Disable Search Logging

Site administrators now have the ability to turn off watchdog logging for all searches, which can significantly improve performance on sites with heavy search usage.

Security Updates

Hash Function Update

Replaced MD5 hash function calls in the Filter module with SHA2 hashes, improving the security of content filtering mechanisms.

Performance Improvements

Watchdog Search Logging

Added the ability to disable watchdog logging of all searches, which can be a significant performance improvement for sites with heavy search usage.

Watchdog Clear Performance

Improved the performance of clearing log/watchdog entries when there are large amounts of data, making administrative tasks more efficient.

Static Caching Optimization

Implemented the drupal_static_fast pattern in drupal_html_id() to improve performance through better static variable handling.

Impact Summary

Drupal 7.54 is primarily a maintenance release that addresses several important bugs and performance issues. The most significant impacts include:

  1. Performance improvements for sites with heavy search usage or large watchdog logs
  2. Usability enhancements by fixing drag-and-drop functionality in Chrome and improving form validation for anonymous users
  3. Developer improvements with new API functions for HTTPS detection and the ability for modules to define theme engines
  4. Better compatibility with PHP 5.4 through proper implementation of stream wrapper methods

While this release doesn't introduce major new features, it provides important stability improvements that benefit all Drupal 7 sites. The performance optimizations are particularly valuable for high-traffic sites or those with extensive logging enabled.

The security improvement of replacing MD5 with SHA2 hashes in the Filter module is also noteworthy, though not classified as a critical security fix.

Statistics:

File Changed32
Line Additions622
Line Deletions42
Line Changes664
Total Commits30

User Affected:

  • Improved performance when clearing watchdog logs with large amounts of data
  • New ability to disable watchdog logging for searches to improve performance
  • Better HTTPS request detection through new API function

Contributors:

stefanruijsenaarsDavidRothstein