CMS MADE SIMPLE FORGE

CGUserDirectory

 

[#11776] CGUserDirectory crash with CGSmartImage

avatar
Created By: cyrcle (cyrcle)
Date Submitted: Wed Mar 21 16:39:50 -0400 2018

Assigned To: Robert Campbell (calguy1000)
Version: 1.5.1
CMSMS Version: 2.2.7
Severity: Minor
Resolution: Fixed
State: Open
Summary:
CGUserDirectory crash with CGSmartImage
Detailed Description:
CGUserDirectory crash when i add my CGSmartImage tag in a CGUserDirectory
summary template.
I don't have an error message, but the output of the CGUserDirectory module is
empty.
CGUserDirectory version is: 1.5.1
CGSmartImage version is: 1.22.2

Here is the code snippet:

{if isset($oneuser.properties.photo)}
{CGSmartImage src='/images/_feusers/5cbc1299cafc8e81deb14b31ed5e7d0e.jpg'
quality='50' filter_croptofit='500,740'}
{else}
      <img src="images/profil.svg" alt="default photo">
{/if}

Note :
If I put my CGSmartImage tag in my page template, it works normally, the image
is generated.
If I replace the CGSmartImage tag with an img tag everything works as expected.
For example, my page works well with this code:

{if isset($oneuser.properties.photo)}
<img src="/uploads/images//img-877.jpg" width="500" height="740"
alt="photo">
{else}
      <img src="images/profil.svg" alt="default photo">
{/if}


History

Comments
avatar
Date: 2018-04-09 10:57
Posted By: cyrcle (cyrcle)

Sorry, it works, here I forgot to use {cms_module module = "CGSmartImage" ...}
instead of {CGSmartImage ...}.
      
avatar
Date: 2018-04-09 11:53
Posted By: cyrcle (cyrcle)

But the problem persists if {cms_module module="CGSmartImage"...} is inside
{Capture} tags.
      
Updates

Updated: 2018-04-09 10:57
resolution_id: => 7
severity_id: 2 => 3