MediaGallery 1.9.0 brings PHP 8 hardening, better SEO, interoperability and 13 languages
- Sunday, October 04 2026 @ 10:11 pm EDT
- Contributed by: ::Ben
- Views: 384
MediaGallery 1.9.0 is now available from the official Geeklog Plugins repository.
This new version continues the modernization work started with MediaGallery 1.8.0 while keeping an important goal intact: existing Geeklog websites should be able to adopt the improved plugin without being forced to upgrade their entire CMS stack first.
MediaGallery 1.9.0 therefore continues to support Geeklog 2.1.1 and newer, including Geeklog 2.2.2, while keeping PHP 5.6-compatible syntax and being validated against PHP 5.6, 7.4, 8.1 and 8.3.
The source code and installable package are available here:
https://github.com/Geeklog-Plugins/mediagallery
Completing the PHP 8 compatibility work
One of the main goals of MediaGallery 1.9.0 is to complete the remaining PHP 8 runtime hardening.
Older MediaGallery installations may contain records created by previous releases, imports or migrations where some optional media metadata is not present. Newer PHP versions are much less forgiving when code accesses missing array keys.
MediaGallery 1.9.0 now normalizes optional media metadata before it reaches the rendering layer. This includes values related to media resolution, display resolution, remote media and remote URLs.
This prevents PHP 8 warnings when older or imported media records are displayed and completes the remaining compatibility work associated with issue #11 in the MediaGallery issue tracker.
The release branch is automatically checked against PHP 5.6, PHP 7.4, PHP 8.1 and PHP 8.3.
Better SEO and structured data
MediaGallery 1.9.0 also expands the SEO work introduced during the previous modernization cycle.
Album pages can now expose Schema.org CollectionPage structured data together with an ItemList representing the media displayed on the current page.
Individual media pages continue to expose content-specific structured data using appropriate Schema.org types such as:
ImageObjectVideoObjectAudioObject
Media URLs used in structured data are normalized into absolute public URLs where appropriate.
Albums and individual media pages also receive improved meta-description fallbacks. When a dedicated description exists, MediaGallery can provide content-specific metadata instead of relying only on the generic site description.
The result is cleaner metadata for search engines and other consumers without changing the editorial workflow for site administrators.
Optional Open Graph integration
MediaGallery can now cooperate with the OGP plugin when it is installed.
If an active OGP plugin exposes the expected social metadata API, MediaGallery can delegate Open Graph and Twitter/X metadata to it.
Albums can provide their title, description, canonical URL and a representative image. Individual media pages can provide similar information together with media-specific metadata.
This integration remains optional.
MediaGallery does not require OGP, and websites without the plugin continue to receive standalone Open Graph and Twitter/X metadata generated by MediaGallery itself.
MediaGallery also remains authoritative for its canonical URLs, descriptions and Schema.org structured data.
Improved Geeklog interoperability
A major part of the recent MediaGallery modernization has been making the plugin easier for the rest of the Geeklog ecosystem to work with.
Historically, another plugin wanting information about MediaGallery albums or media could be tempted to query MediaGallery's private database tables directly. That creates tight coupling between plugins and makes future changes more difficult.
MediaGallery instead exposes bounded services and standard Geeklog Plugin API information.
For example, other Geeklog components can request a permission-filtered album tree through PLG_invokeService() instead of knowing anything about MediaGallery's internal mg_* tables.
MediaGallery also reports album and media changes through Geeklog's normal lifecycle mechanisms.
This allows plugins and services such as IndexNow, XML Sitemap, Hub and future integrations to react to MediaGallery content without MediaGallery containing consumer-specific code.
The same interoperability work makes MediaGallery more suitable for newer Geeklog tools such as Agent, Hub and modern administration dashboards.
Persistent and safer media storage
MediaGallery continues to use the persistent storage architecture introduced with version 1.8.0.
User media is stored outside the replaceable public_html/mediagallery/ plugin directory and instead uses Geeklog's configured image storage location.
This is particularly important when updating a plugin through Geeklog's ZIP installer because plugin files can safely be replaced without treating user media as part of the application code.
The storage paths are derived from Geeklog configuration rather than hard-coded locations, which also makes the design suitable for shared-code multisite installations.
Each site can keep its own MediaGallery content even when several Geeklog sites share the same plugin source files.
Security and upload hardening
MediaGallery 1.9.0 carries forward the security improvements introduced during the 1.8 modernization.
These include protections around:
- normal browser mutation requests;
- album and media permissions;
- uploaded filenames;
- MIME types and extensions;
- FTP imports;
- ZIP extraction;
- directory traversal;
- symbolic links;
- CLI imports;
- remote HTTP(S) media;
- temporary files;
- moderation operations.
Image processing also checks that the configured Geeklog image backend is actually available before attempting resize, conversion, rotation or watermark operations.
Supported configurations include GD, ImageMagick and NetPBM according to the Geeklog site configuration.
Modern public output
The maintained MediaGallery interface has also moved away from several technologies and assumptions inherited from much older web applications.
The current templates provide responsive album and media layouts, improved semantic markup and accessibility, modern lightbox and slideshow behavior, and HTML5 audio/video playback.
Legacy Flash and ActiveX playback paths are no longer part of the active playback experience.
Album thumbnails and portrait-image rendering have also received improvements, including the use of better source images when generating visual representations.
13 maintained UTF-8 languages
MediaGallery 1.9.0 significantly expands its maintained language coverage.
The current English files are used as the structural reference, and the release includes updated or newly synchronized UTF-8 translations for:
- Spanish
- Italian
- Japanese
- Russian
- Chinese (Simplified)
- Chinese (Traditional)
- Hebrew
- Persian
- French Canada
- French France
- German
- German Formal
- Spanish Argentina
The language files follow the same functional key structure as the English reference and are included directly in the MediaGallery 1.9.0 distribution.
This should make the plugin much easier to deploy on multilingual Geeklog sites and within the international Geeklog community.
Cleaner version and compatibility management
MediaGallery 1.9.0 also improves how the plugin identifies itself to Geeklog.
Release and minimum Geeklog compatibility information are now centralized in a canonical version.php file.
The plugin runtime, installer and upgrade logic therefore share the same authoritative release metadata.
The static plugin.json manifest remains available for repository and administration tools, and the distribution workflow validates that its compatibility information remains synchronized with the installer metadata.
This avoids situations where the version reported by the running plugin, the installer and the package metadata can accidentally diverge.
Compatibility
MediaGallery 1.9.0 supports:
- Geeklog 2.1.1 or newer;
- Geeklog 2.2.2;
- PHP 5.6-compatible syntax.
Automated syntax validation currently covers PHP 5.6, 7.4, 8.1 and 8.3.
Keeping Geeklog 2.1.1 compatibility is deliberate. It gives administrators the option to modernize important plugins before, during or after a staged migration of the Geeklog core itself.
Upgrading from MediaGallery 1.8.0
Existing MediaGallery 1.8.0 installations can upgrade directly to MediaGallery 1.9.0.
No additional database schema migration is required beyond the existing 1.8.0 state.
As always, administrators should keep a current database and media backup before updating a production website.
Important note for MediaGallery 1.7.x installations
Sites still running MediaGallery 1.7.x require one additional precaution.
Those installations may still store user media inside:
public_html/mediagallery/mediaobjects/
Because Geeklog's plugin ZIP updater replaces the plugin public directory, legacy media must first be migrated to the persistent storage location introduced with MediaGallery 1.8.0.
MediaGallery includes a migration tool for this purpose. The tool copies and verifies the media while deliberately leaving the original source files untouched.
Administrators upgrading from 1.7.x should complete this migration successfully before replacing the plugin through the Geeklog ZIP installer.
Download MediaGallery 1.9.0
MediaGallery 1.9.0 source code, documentation and the validated installable archive are available from the official Geeklog Plugins repository:
https://github.com/Geeklog-Plugins/mediagallery
The installable package is:
mediagallery_1.9.0_2.1.1.zip
MediaGallery 1.9.0 is another step toward keeping one of Geeklog's long-standing content plugins useful on both existing and modernized Geeklog installations, with stronger PHP compatibility, cleaner interoperability, improved SEO and much broader language coverage.