Topic on Extension talk:Echo

error displaying images in HTML email

1
Derek Jones Smr (talkcontribs)

hi!

I configured the extension to send email notifications

it works :)

But in the body of the letter there is a link to the image and it is not displayed:

/load.php?modules=ext.echo.emailicons&image=user-rights&lang=en&format=rasterized

The picture can be seen if i replace 'rasterized' to 'svg'

I manually corrected the code in EchoIcon.php. this helped me, but is there probably some other reason?

// If the URL is null or false call the resource loader

// rasterizing module

if ( $url === false || $url === null ) {

$iconUrl = wfScript( 'load' ) . '?' . wfArrayToCgi( [

'modules' => 'ext.echo.emailicons',

'image' => $icon,

'lang' => $lang,

#'format' => 'rasterized'

'format' => 'svg'

] );

} else {

// For icons that are defined by URL

$iconUrl = $wgEchoNotificationIcons[ $icon ][ 'url' ];

}

Product Version
MediaWiki 1.39.5
PHP 8.0.30 (fpm-fcgi)
MySQL 8.0.36-0ubuntu0.20.04.1
ICU 66.1
Lua 5.1.5
Pygments 2.11.2
Reply to "error displaying images in HTML email"