Bug Report: 500 Error When Removing Image In Article Blog Options (Joomla 5) - Question | JoomShaper

Bug Report: 500 Error When Removing Image In Article Blog Options (Joomla 5)

PD

Peter Dowse

SP Page Builder 1 day ago

Hi JoomShaper Team,

I am running into a bug when trying to delete an uploaded image from the Blog Options > Blog Media tab inside a Joomla article.

When I click the trash can icon to remove the image, the UI throws this warning: "Are you sure you want to delete? Confirming will permanently delete the selected item(s)! Unable to remove image. Please try again."

I did some troubleshooting via the browser console and server logs, and here is exactly what is happening under the hood so your team can patch it:

The Technical Issue: When the "Remove" button is clicked, blog-options.js fires an AJAX POST request to: administrator/index.php?option=com_ajax&helix=ultimate&request=task&action=remove-blog-image

This request immediately returns a 500 Internal Server Error, crashing the background script.

Because the standard PHP error_log doesn't catch a fatal crash trace for this, the 500 error is likely being caused by one of two things in the Joomla 5 environment:

Joomla 5 API Incompatibility: The HelixUltimate\Framework\Platform\Blog::remove_image() method may be relying on a deprecated Joomla 4 class (like JFile or JFolder) that has been removed in Joomla 5, causing a silent fatal failure when trying to execute the deletion.

WAF / ModSecurity Trigger: Because the AJAX payload passes a direct file path string (src=images/...) combined with an action: "remove" command, it is highly likely that standard server Web Application Firewalls are intercepting the request as a malicious file-deletion attempt.

Environment:

Joomla 5 (Latest)

Helix Ultimate Framework / System Plugin (Latest)

PHP 8.3

Could your development team please test the remove-blog-image AJAX routine in a strict Joomla 5 / PHP 8.3 environment? It likely requires a small code adjustment to how the file path is sanitized/passed or how the file deletion is executed natively to prevent the 500 crash.

Thank you!

0
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 day ago #228551

Hi Peter,

It will be fixed in probably today's update. Try that >> https://limewire.com/d/5b3iO#gKULTC9M8f

there are already 4 topics about the same ;p

info__369.png

0
PD
Peter Dowse
Accepted Answer
1 day ago #228554

That's great - thanks Paul - greatly appreciated.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 day ago #228556

Peter, can you check one more thing. Front-end editor for New Article, do you see all icons?

0
PD
Peter Dowse
Accepted Answer
1 day ago #228562

This is what I'm seeing - seems there's some font aweoms issues possibly?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 day ago #228568

Ok, thx (tiny thing, it should be fixed before premire day)

0