FREE Get a FREE template when you purchase Social bundle 🚀 ⚡️


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 online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Error processing images in AMP

Christopher Ambler · ·
4:03 AM Saturday, 17 October 2020
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='' alt='Mars' />

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