Composer Dependency Changed PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar mohsinkhan85090
mohsinkhan85090
20 Mar 2026

Pull Request Resolves #47211

I have read the Generative AI policy and confirm that my contribution is compatible with the policy and licensed under GNU/GPL 2 or later.


Summary of Changes

This pull request updates the system/schemaorg plugin to support the image property when it is provided as an array.

Previously, the plugin only supported a string value for image. However, according to Schema.org specifications, the image property may also be an array (e.g., multiple images for a product).

This change:

  • Adds support for both string and array values for image
  • Prevents PHP errors caused by passing arrays to preg_match()
  • Maintains backward compatibility with existing implementations
  • Enables proper handling of multiple images in structured data

Testing Instructions

  1. Apply this pull request.

  2. Enable the System - Schemaorg plugin.

  3. Test structured data using:

    • image as a string
    • image as an array of strings
  4. Verify:

    • No PHP errors or warnings occur
    • Structured data is generated correctly
    • Existing functionality continues to work as expected

Actual Result Before Applying This Pull Request

  • The plugin only accepts image as a string.
  • Providing an array results in errors.
  • PHP warnings may occur due to invalid usage of preg_match().

Expected Result After Applying This Pull Request

  • The plugin supports both string and array formats for image.
  • No errors or warnings occur.
  • Multiple images are correctly processed.
  • Backward compatibility is preserved.

Documentation Changes

  • No documentation changes required for guide.joomla.org
  • No documentation changes required for manual.joomla.org
avatar mohsinkhan85090 mohsinkhan85090 - open - 20 Mar 2026
avatar mohsinkhan85090 mohsinkhan85090 - change - 20 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Mar 2026
Category External Library Composer Change Front End Plugins
avatar mohsinkhan85090
mohsinkhan85090 - comment - 20 Mar 2026

Hi @richard67, I’ve created a new PR with a clean commit, fixing only the relevant file and addressing code style issues.

I’m currently monitoring CI checks and testing. Please let me know if anything needs improvement.

avatar mohsinkhan85090 mohsinkhan85090 - change - 20 Mar 2026
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2026-03-20 09:08:26
Closed_By mohsinkhan85090
Labels Added: Composer Dependency Changed PR-5.4-dev
avatar mohsinkhan85090 mohsinkhan85090 - close - 20 Mar 2026

Add a Comment

Login with GitHub to post a comment