UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Error processing images in AMP

Christopher Ambler · ·
4:03 AM Saturday, 17 October 2020
High
I am seeing the following warnings:

Notice: Undefined offset: 1 in .../administrator/components/com_easyblog/includes/image/image.php on line 520


preg_match('/src="([^"]+)"/', $image, $src);

$url = $src[1];


In many cases, this preg_match returns no array, so $src is empty. Attempting to index into [1] thus fails. Here's the tag on an image that's not being converted to amp-img. It is found in the outer regex, but not the inner. Could it be that the img tag has a class before the src?


<img class='calloutplanet' src='https://www.retrograde.today/images/planetsretro/mars.png' alt='Mars' />

The replies under this section are restricted to logged in users or users with an active subscription with us