Categories

Featured templates

Joomla 3.x. Troubleshooter. Images are missing after update to Joomla 3.3.4+ (Lazyload plugin)

Daniel Morales February 9, 2015
Rating: 5.0/5. From 3 votes.
Please wait...

Our Support team is ready to present you a new tutorial that shows how to fix the missing images issue after Joomla 3.3.4+ update.

In case Lazyload plugin is used, some of the images might not load after the update:

images_lazyload_after_update_1

Solution 1

  1. In order to fix the issue, open the plugins/system/tmlazyload/tmlazyload.php file.

  2. Locate line 131. You will see the following code:

    $arg_1 = array('src=','>','<img', 'class="');
    $arg_2 = array('src="'.$blankimage.'" data-src=','></span>','<span class="lazy_container" style="width: '.$width.'px;"><span class="lazy_preloader" style="padding-top: '.$ratio.'%;"></span><img','class="lazy ');
    

    Replace it with:

    $arg_1 = array('src="','>','<img', 'class="');
    $arg_2 = array('src="'.$blankimage.'" data-src="'.JURI::base(),'></span>','<span class="lazy_container" style="width: '.$width.'px;"><span class="lazy_preloader" style="padding-top: '.$ratio.'%;"></span><img','class="lazy ');
    
  3. Locate line 135. You will see the following code:

    $arg_1 = array('src=','>','<img');
    $arg_2 = array('src="'.$blankimage.'" class="lazy" data-src=','></span>','<span class="lazy_container" style="width: '.$width.'px;"><span class="lazy_preloader" style="padding-top: '.$ratio.'%;"></span><img');
    

    Replace it with:

    $arg_1 = array('src="','>','<img');
    $arg_2 = array('src="'.$blankimage.'" class="lazy" data-src="'.JURI::base(),'></span>','<span class="lazy_container" style="width: '.$width.'px;"><span class="lazy_preloader" style="padding-top: '.$ratio.'%;"></span><img');
    
  4. Check your site, the issue should be fixed:

    images_lazyload_after_update_2

Solution 2

You may simply deactivate lazy load effect for specific images or even image formats.

  1. Navigate to Extensions > Plugins;

  2. Click on ‘TM Lazy Load plugin;

  3. Open the ‘Settings’ tab. Locate an ‘Exclude images’ option;

    With this option you can exclude certain images to be processed from the plugin. Enter one name each line:

    Example:

    image001.jpg
    thumb_
    .jpg

    The last entry would exclude all JPG images.

    images_lazyload_after_update_3
  4. Check your site, the issue should be fixed:

    images_lazyload_after_update_2

Feel free to check the detailed video tutorial below:

Joomla 3.x. Troubleshooter. Images are missing after update to Joomla 3.3.4+ (Lazyload plugin)
Responsive Joomla Templates
This entry was posted in Joomla! Tutorials and tagged image, joomla, missing, update. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket