Bug Deleting Blog Media Images After Upgrading To SPPB Pro 6.6.2 - Question | JoomShaper

Bug Deleting Blog Media Images After Upgrading To SPPB Pro 6.6.2

H

HalTurner

Helix Framework 1 month 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
0
12 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 month ago #226290

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.

0
H
HalTurner
Accepted Answer
1 month ago #227321

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

1
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 month ago #227326

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

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 month ago #228330

Till Monday a new fixed version should be ready.

0
SS
Seamoose IT Solutions
Accepted Answer
4 weeks ago #228612

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 ;-)

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 weeks ago #228629

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)

0
SS
Seamoose IT Solutions
Accepted Answer
4 weeks ago #228637

Is this the correct link Paul? gr, Peter

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 weeks ago #228638

click again

0
SS
Seamoose IT Solutions
Accepted Answer
4 weeks ago #228641

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

0
P
paul
Accepted Answer
4 weeks ago #228711

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

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 weeks ago #228720

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.

0
P
paul
Accepted Answer
4 weeks ago #228728

OK

0