Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 10d 23h 52m 13s
Claim 50% off
Awaiting an answer SP Page Builder Joomla 5 v6.10.0

Articles addon: no thumbnail when Thumb Size is not "Thumbnail" and only the Joomla intro image is set

Asked by Udo 1 day ago

Environment: Joomla 5.4.10, SP Page Builder 6.10.0, PHP 8.3

When I use the Articles addon with "Thumb Size" set to "Medium" and the articles only have the standard Joomla intro image (Images and Links -> Intro Image), no Helix/SP featured image, no thumbnail is shown at all.

I expected the intro image to be shown as the thumbnail.

Cause I found:

  1. In components/com_sppagebuilder/helpers/articles.php, getArticles() only sets $item->image_thumbnail from the intro image. Later the $keysToAdd loop initialises image_small, image_medium and image_large to an empty string ''.
  2. In components/com_sppagebuilder/addons/articles/site.php the image is chosen with:
    $image = $item->{$thumb_size} ?? $item->image_thumbnail;
    Because image_medium is '' (not null), the ?? operator does not fall back to image_thumbnail, so $image stays empty and nothing is rendered.

What I tried: Forcing $thumb_size = 'image_thumbnail'; in site.php fixes it, but I have to repeat this after every update.

Suggested fix (site.php):
$image = !empty($item->{$thumb_size}) ? $item->{$thumb_size} : $item->image_thumbnail;

Could you please fix this in the core? Thank you!
Udo

Log in to reply.