Again: article without images gives a error in .

Hello, with minifronpage 5.0.1, I get the following error, see attachment, for an article without an image.
Test both cases:
- article with no image
- article with image, but it can not be found.
I looked at the origin, and find the reason.
The  $custom_default_thumb contains a #: 
images/logos/banners/LB-logo2020.png#joomlaImage://local-images/logos/banners/LB-logo2020.png?width=480&height=480
The $custom_default_thumb has a to be stripped after the #, like as is done in line 219:

line 332 of MiniFrontpageHelper.php:
                    if (File::exists(JPATH_ROOT.'/'.$orig_image)) {
                        $orig_image =$orig_image;
                    } else {
                        if($custom_default_thumb){
                            $file_ext = File::getExt($custom_default_thumb);
//added pch 6-10-2025
                            $custom_default_thumb = strstr($custom_default_thumb, '#', true);

                            if($file_ext == 'png'){

Best regards,
Peter
9 hours 21 minutes ago - 9 hours 20 minutes ago #1 by Peter
Attachments:
Last edit: 9 hours 20 minutes ago by Peter.

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5331) Offline
Hi Peter, how can I replicate the issue? Can you please tell me the exact steps you took? I’m unable to reproduce it on my end.
The custom default should already be stripped on line 219.
7 hours 31 minutes ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum