Bug deleting blog media images after upgrading to SPPB pro 6.6.2 - Forum | JoomShaper
Awaiting an answer Helix Framework

Bug deleting blog media images after upgrading to SPPB pro 6.6.2

Asked by HalTurner 3 months ago Last activity 2 months ago

SP Page Builder 6 Pro
Version: 6.6.2


Bug Report: "Remove" button fails in Blog Media tab when deleting a featured image

File: plugins/system/helixultimate/src/Platform/Blog.php
Method: remove_image() (~line 247)


Steps to Reproduce

  1. Open any article for editing in the Joomla administrator
  2. Navigate to the Blog Media tab
  3. A thumbnail of the article's featured image is displayed
  4. Click the Remove button on the image thumbnail
  5. The removal appears to fail on the frontend

Symptom
The AJAX response returned to the browser is corrupted — a PHP warning is emitted before the JSON payload, making the response unparseable:
Warning: Trying to access array offset on null in ...Blog.php on line 249
{"status":true,"output":"Invalid Token"}
The frontend AJAX handler cannot parse this as valid JSON and reports failure, even though the underlying DB operation actually completed successfully.


Root Cause
Two issues in remove_image():

  1. Missing null guard on $galleryImages (line 249) — the breaking issue
    The image being removed is the article's featured image (helix_ultimate_image). That reference is correctly cleared on lines 243–245. Execution then falls through to the gallery block (lines 247–257), which checks whether helix_ultimate_gallery is set in the article
    attribs — it is, but its value is empty or contains non-object JSON, so json_decode() returns null. The code immediately accesses $galleryImages['helix_ultimate_gallery_images'] without first confirming $galleryImages is a valid array. This emits a PHP warning into
    the response body, corrupting the JSON and breaking the frontend.

This is the common case: an article that has a featured image but no gallery images will have an empty or null helix_ultimate_gallery value, making this bug reproducible on the majority of articles.

  1. Success path never clears the output field (line 266) — misleading response
    $report['output'] is initialized to 'Invalid Token' as the default message for the early-exit die path. When the operation succeeds, status is set to true but output is never updated, resulting in the confusing "output":"Invalid Token" appearing in an otherwise
    successful response.

Fix

// Before (line 249):
if (is_array($galleryImages['helix_ultimate_gallery_images'])) {

// After:
if (is_array($galleryImages) && is_array($galleryImages['helix_ultimate_gallery_images'])) {

// Before (line 266):
$report['status'] = true;

// After:
$report['status'] = true;
$report['output'] = 'Image removed successfully.';


Notes

  • The file physically exists on disk and the DB update completes successfully — the failure is purely in the response being corrupted by the warning
  • The bug is reliably triggered on any article that has a featured image but no gallery images assigned — which is the typical use case
  • Likely exposed by a recent extension update that may have changed how helix_ultimate_gallery is stored or initialized in article attribs

8 replies

Paul Frankowski Senior Staff
3 months ago · edited

Hi,

thanks for investigation, I shared info with our Helix developer. But it's weekend, so we both have to wait till Monday morning for next step.

HalTurner Asked this

I saw the related fix was noted in helix 3.1.2 in the release notes, but I don't see it reflected in Helix ultimate. I checked blog.php and there are no changes

Paul Frankowski Senior Staff

Maybe becuase the last HU update was on 11 May 2026.
Keep your custom change by now.

Paul Frankowski Senior Staff

Till Monday a new fixed version should be ready.

Seamoose IT Solutions

facing the same problem on Helix Ultimate template. is the fix already available?
BTW these kind of bugs are very annoying and could be avoided by proactive and qualitative regression testing before launching a new update ;-)

Paul Frankowski Senior Staff
2 months ago · edited

I shared link already in 4 different topics.

And I will do it again >> https://limewire.com/d/5b3iO#gKULTC9M8f (updated, active for 6 days)

Seamoose IT Solutions

Is this the correct link Paul?
gr,
Peter

Paul Frankowski Senior Staff

click again

Seamoose IT Solutions

Zip's download and successfuly installed. Works OK now.
tx for the quick respons.
gr,
Peter

paul

Can delete but can't upload image via pagebuilder. Perpetual loading.

Installed the temp fixes from here, but no difference.

Workaround is uploading images via joomla upload.

paul

Paul Frankowski Senior Staff
2 months ago · edited

I checked on 3 different sites, and I can upload images (files) using SPPB Media, that area wasn't changed in last couple of weeks.

Helix Ultimate update is for Helix only (Blog Media tab).


So Paul, please create a different NEW topic. Also on the same server, in subdomain, install Joomla + SPPB and test there too. It should take you few minutes, but give you (and us) more clues.

Log in to reply.