Image Bug in Joomla 3.8
Note: The image srcset bug is fixed in Joomla 3.8.1. It is save to update YOOtheme Pro now
Due to a bug in Joomla 3.8.0 with the
srcset attribute, we advise our YOOtheme Pro subscribers not to update to Joomla 3.8 till these issues are resolved.
This Joomla bug breaks all images which are optimized for different devices using the
srcset attribute. This means all images in YOOtheme Pro where the image width or height options are set, won't display anymore. This bug only appears in Chrome and mobile devices.
Together with Ryan Demmer, we already proposed a fix for Joomla on Github to solve the issue. Please help testing the fix, so it can be merged asap. Hopefully it will be included in Joomla 3.8.1.
Fix Joomla manually
- Scroll to row 143
- The following line of code
$data = preg_replace('#(?!/|' . $protocols . '|\#|\')([^\s]+)\s+(.*)#', $base . '$1 $2', $url);
should be replaced with
$data = preg_replace('#^(?!/|' . $protocols . '|\#|\')([^\s]+)\s+(.*)#', $base . '$1 $2', $url);
This should fix the issue.
Also make sure you are using YOOtheme Pro 1.9.7. This version fixes an issue with the module positions renderer in Joomla 3.8 and YOOtheme Pro.
Please let us know if you run into any additional issues regarding the Joomla 3.8 and YOOtheme Pro 1.9.7 in this thread. We will keep you up to date. Thanks for your patience.
The image srcset bug is fixed in Joomla 3.8.1. It is save to update YOOtheme Pro now