Media library broken on 11.2 with Gin 5

Created on 20 June 2025, 3 days ago

Overview

Just tried XB on 11.2 and Gin 5. Got:

"call_user_func_array(): Argument #1 ($callback) must be a valid callback, function \"gin_form_after_build\" not found or invalid function name"

That's because the theme switches from gin to xb_stark. It's due to $use_sticky_action_buttons causing the form to have callbacks to Gin, but Gin isn't loaded.

Proposed resolution

Implement hook_gin_ignore_sticky_form_actions and ignore the XB page form

/**
 * Implements hook_gin_ignore_sticky_form_actions().
 */
function haas_content_gin_ignore_sticky_form_actions() {
  return ['xb_page_form'];
}

In the future something calculated at runtime will be needed to ignore any form in an XB API call

User interface changes

πŸ› Bug report
Status

Active

Version

0.0

Component

… to be triaged

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024