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.

Images from subsites (MSM) not printing on default site after EE 2.4 upgrade

February 24, 2012 7:57am

Subscribe [3]
  • #1 / Feb 24, 2012 7:57am

    Stephen Callender

    148 posts

    Hello,
    I’ve got a site with 5 subsites. The subsites house their own data that also feed into the primary site. Since upgrading to EE 2.4 images from the subsites are no longer printing when called to the main site. All other fields and data from the subsites will come through (ie, title, entry_id). The images’s custom field name is recognized even, but it simply won’t print the file url.

    I have synced directories, recreated new file image fields to see if they work, and just about everything I can imagine at this point, so I’m needing help.

    Live example of problem:
    http://www.brehmcenter.com/activities/events/ - Notice the event called “Higher Ground” doesn’t have an image - it is from a subsite. The events that do have images are from the default site. But all events, no matter the site, print all other fields.

    http://www.brehmcenter.com/initiatives/reelspirituality/events/ - This is the specific subsite for the “Higher Ground” event and you’ll see the image gets printed just fine.

    Again, this is happening for all our subsites trying to feed images using the core “file” field.

    v2.4.0 - Build: date 20120123
    MSM 2.1.2

    Thanks!

  • #2 / Feb 24, 2012 8:55am

    mark186282

    290 posts

    on your default site, I don’t see anything in the code that is trying to pull your image of higher ground.

    1.  Would you be able to share the code are you using to display the event lists on your default page?

    (I’m trying to sort out what field is failing to load in your default site template, and why)

    indeed, weird that it is working for the “engage the senses” and not the “higher group”.

    2.  Are these event snippets part of the same loop, or placed individually with unique settings for each one?

  • #3 / Feb 24, 2012 9:13am

    Stephen Callender

    148 posts

    Here’s the relevant piece of code that isn’t working for the image. I’ve tested this without using imgsizer and still nothing prints from the field. Inserting “Test” will print however in the sections where the image should come from, meaning the field is being read properly.

    {exp:channel:entries status="open" channel="events|conferences" site="default_site|site_2|site_3|site_4|site_5" dynamic="off" sort="asc" show_future_entries="yes" show_expired="off" disable="pagination|member_data|categories|category_fields"}
      <div class="ed_subpage_details">
        <div class="ed_subpage_child_img">
          <a href="http://{page_url}">__      {if brehm_image_thumb} <!-- PULLS FROM DEFAULT SITE AND WORKS -->__        {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{brehm_image_thumb}" width="192" height="96" alt="Brehm Event: {title}" class="" }__      {if:elseif rs_event_thumb} <!-- PULLS FROM SUBSITE - NOT WORKING -->__        {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{rs_event_thumb}" width="192" height="96" alt="Event: {title}" class="" }__      {if:elseif event_image_thumb} <!-- PULLS FROM SUBSITE - NOT WORKING -->__        {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{event_image_thumb}" width="192" height="96" alt="RS Event: {title}" class="" }__      {if:elseif event_main_image} <!-- PULLS FROM SUBSITE - NOT WORKING -->__        {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{event_main_image}" width="192" height="96" alt="Event: {title}" class="" }__      {if:elseif conf_thumb} <!-- PULLS FROM SUBSITE - NOT WORKING -->__        {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{conf_thumb}" width="192" height="96" alt="Ogilvie Event: {title}" class="" }__      {if:elseif conference_main_image} <!-- PULLS FROM SUBSITE - NOT WORKING -->__        {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{conference_main_image}" width="192" height="96" alt="Ogilvie Event: {title}" class="" }__      {if:elseif event_hero} <!-- PULLS FROM EITHER DEFAULT OR SUBSITE - WORKS FOR DEFAULT ONLY -->__        {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{event_hero}" width="192" height="96" alt="Brehm Event: {title}" class="" }__      {if:elseif logged_in_group_id == "1" OR logged_in_group_id == "6"}__        <div class="msg error">Admin Msg: Missing Image</div>__      {/if}_      </a>
        </div>
      </div>
    {/exp:channel:entries}

    Do you think I have a config setting somewhere that go out of whack in the upgrade?

    Notice that the following code works on the subsite:

    {exp:channel:entries channel="events" dynamic="off" show_future_entries="yes"}
      <div class="int_featured_media_right">
        {if event_main_image OR event_image_thumb}
          <div class="conv_left_image">
            <a href="http://{page_url}">_        _        {if event_image_thumb}__          {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{event_image_thumb}" width="155" height="95" alt="{title}" class=""  }__        {if:else}__          {exp:imgsizer:size base_cache="{imgbasecache}" base_path="{imgbasepath}" cache="{imgcacheon}" src="{event_main_image}" width="155" height="95" alt="{title}" class=""  }__        {/if}_        </a>
          </div>
        {/if}
      </div>
    {/exp:channel:entries}

     

  • #4 / Feb 24, 2012 9:26am

    mark186282

    290 posts

    it all looks like it should be working to me (and indeed, it was working before the upgrade)

    I see that you have sync’ed directories - I want to make sure I understand exactly what you did.  Did you:

    1. “sync files” (http://ellislab.com/expressionengine/user-guide/cp/content/files/sync_files.html)
    2. “sync templates” (http://ellislab.com/expressionengine/user-guide/cp/design/templates/synchronize_templates.html)

    Did you clear your caches? (http://ellislab.com/expressionengine/user-guide/cp/tools/data/clear_cached_data_files.html)

     

  • #5 / Feb 24, 2012 9:31am

    Stephen Callender

    148 posts

    Definitely. I’ve done all that multiple times, both on my local copy and the production site. I’ve created new test fields, uploaded new fields, etc. Nothing is working. The only thing I can think is that config is messed up in the MSM set up? All my MSM files are fine and new.

  • #6 / Feb 24, 2012 9:37am

    mark186282

    290 posts

    are other field types working okay, just the file type not working?

    is it a safecracker file?

    (I don’t know if it’s related, but I suspect not - I’ve been having an issue with the boolean true-false tests of safecracker file fields since upgrading.  Oddly, my error is opposite of yours, and not accessing files from a different site. I do not believe my situation and yours are related)

  • #7 / Feb 24, 2012 9:45am

    Stephen Callender

    148 posts

    All other field types work just fine. You can see the other data being imported with no problems. No, it’s not safecracker.

  • #8 / Feb 24, 2012 9:55am

    Stephen Callender

    148 posts

    After looking at the MSM changelog, I’m thinking it has to be that. I’m going to reinstall MSM a bit later today and see what that does. Don’t worry about me until then. I’ll report back.

  • #9 / Feb 24, 2012 5:18pm

    Kevin Smith

    4784 posts

    Hi sjc80,

    Actually, it sounds like you just ran into this bug. Give the fix suggested there a try and see if it clears everything up for you.

  • #10 / Feb 27, 2012 5:08pm

    Stephen Callender

    148 posts

    Hi Kevin,
    Thanks for the bug info. Unfortunately, that did not work for me. I still haven’t verified the MSM update to 2.1.2 was done properly (if at all). I’ll get back after I’ve done that.

  • #11 / Feb 27, 2012 5:21pm

    Stephen Callender

    148 posts

    Okay, I did the quick update to MSM 2.1.2 and nothing has helped. Can someone maybe give a look inside the cp an files?

  • #12 / Feb 29, 2012 1:58pm

    Dan Decker

    7338 posts

    Hi sjc80,

    What kind of field type are you using here? Is it file, text, etc?

    What are you seeing in place of the image you expect?

    Try creating a basic test template on your “sub site”:

    {exp:channel:entries channel="events" dynamic="off" show_future_entries="yes"}
     {event_image_thumb}
     {event_main_image}
    {/exp:channel:entries}

    What are the results of that test?

    Cheers,

  • #13 / Mar 01, 2012 1:14pm

    Stephen Callender

    148 posts

    Hi Dan,

    The image is using “File” field type.

    The field is returning nothing on the default site.

    I did your test. The image urls print on the page when the template is on the sub site. I moved the template to the default site and added “site=‘site_2’” to the channel:entries tag. Nothing.

  • #14 / Mar 02, 2012 1:56pm

    Dan Decker

    7338 posts

    Hi sjc80,

    Alright, you are not the only user to report that the fix didn’t have an effect. I’m going to take this up the ladder so we can get a closer look. Be on the lookout for an email from us.

    Cheers,

  • #15 / Mar 02, 2012 2:36pm

    Stephen Callender

    148 posts

    Login details sent.

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

ExpressionEngine News!

#eecms, #events, #releases