ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

ImgSizer stopped working when domain changed.

October 09, 2010 11:53am

Subscribe [3]
  • #1 / Oct 09, 2010 11:53am

    Nelga

    41 posts

    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]

  • #2 / Oct 10, 2010 2:41pm

    Greg Salt

    3988 posts

    Hi Nelga,

    I have no experience of ImgSizer but if the image paths are generated correctly when using the default EE tags then it might be combination of issues with Matrix or ImgSizer. Please post in the CodeShare Corner forum to get some community assistance with what might be causing this problem.

    Cheers

    Greg

  • #3 / Oct 28, 2010 5:31pm

    John St-Amand

    865 posts

    I’m having a problem with ImgSizer too all of a sudden.  I know for sure that the custom file field i have set up is parsing the right folder location for the original image, but if I try to use ImgSizer, whether with the variable name or even by hardcoding the file name, I get:

    Safari can’t open the page.
    Safari can’t open the page “http://jacobs.ehclients.com/index.php/about/test_list” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again.

    I’ve seen mention of this in some older forums as well.  I updated to the latest ImgSizer (2.6.4) and I’m on EE 2.1 build 20101020 and hosted on Engine Hosting.  This is the first time I’ve run into any issue with it.  The sized folder did automatically create itself based on the target file i had set. and the permissions on thje sized folders are correct.  But the file is not being created and the page that uses the plugin tag pair simply goes blank in Firefox and generates the above error in Safari.

    Anyone have a solution?  I’ve come to reply on ImgSizer so I’d really like to keep using it!

    Thanks,
    Jean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases