Hi there,
I have a frustrating problem with ImgSizer & Matrix, and have spent forever attempting to resolve it trying every forum thread suggestion, syntax change and control panel setting I can think of.
Essentially I was working on a site on engine hosting before the domain name was delegated. Everything worked fine, and matrix & imgsizer were great. I switched over the domain name, and updated all the paths using Deeploy Helper. Once that happened, any images that were uploaded to a specific channel didn’t work - the page would refuse to render (no php errors, nothing in the html at all) - just a white blank page. Curiously, old images do still work, and display the imgsizer resizes just fine.
I have 3 channels using matrix & imgsizer, and all work except for one. The paths are formatted exactly the same, the only difference between them, is that the channel contains 2 categories (but that shouldn’t matter?).
Using the ee tag only (no img sizer), i get the url of the image. Which works exactly the same in all 3 channels. So if the url renders fine, I guess it’s something to do with Imgsizer, and not with the paths…
I have the images within an IF statement, and then within a matrix. I’ve posted the code below. The channel I’m having issues with is “PROJECTS”, which has two templates (for categorisation) “projects” and “archive-projects”:
Template 1:
<ul id="gallery">
{if segment_2 == "projects" OR segment_2 == "archive-projects"}
{embed="includes/gallery_projects"}
{if:elseif segment_2 == "profile"}
{embed="includes/gallery_profile"}
{if:else}
{embed="includes/gallery_base_nonfallback"}{/if}
</ul>Template 2 (with imgsizer - not working on new uploads):
{exp:channel:entries channel="projects" limit="1"}
{if "{project_images:total_rows}" == "0"}
{embed="includes/gallery_base"}
{if:else}
{project_images}
<li>
{exp:imgsizer:size image="{project_mx_image}" height="370" quality="80" alt="{project_mx_title}"}
</li>
{/project_images}
{/exp:channel:entries}
{/if}Template 2 (works fine):
{exp:channel:entries channel="projects" limit="1"}
{if "{project_images:total_rows}" == "0"}
{embed="includes/gallery_base"}
{if:else}
{project_images}
<li>
{project_mx_image}
</li>
{/project_images}
{/exp:channel:entries}
{/if}Would anyone have any ideas on what the cause of this error could be? Really pulling out my hair here… It’s crazy it can happen only on this one channel, and only on new uploads.
[Mod Edit: Moved to the CodeShare Corner forum]