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 Not Showing On MSM Site

November 08, 2012 11:56pm

Subscribe [4]
  • #1 / Nov 08, 2012 11:56pm

    Gareth Redfern

    86 posts

    This is my first MSM site so I am not sure if there is something I am doing wrong or another bug which relates to:

    https://support.ellislab.com/bugs/detail/18276

    I have two sites with different domain names eg one is not on a subdomain but a completely different domain name. My MSM set up is so that site two creates entries which I want to show on site one (the original site).

    Everything works fine for the title and text content using the site param in my channel entries tag both sites display these fine. I can’t get images to display on site one, site two where the entries are made displays the images fine. I have the full path to the images in the file upload directory and if I hard code the path into the template the image displays on site one fine.

    I have tried the code in the bug tracker above but this has not fixed the issue, my issue is that the images will not display at all, it doesn’t matter if you are logged in as super admin or not.

    I am running EE 2.5.3

    Thanks

    Gareth

  • #2 / Nov 12, 2012 10:16am

    Shane Eckert

    7174 posts

    Hey there Gareth,

    Thank you for posting your question.

    Can you tell me if you replicated the file Upload Preferences from site 2 to site 1?

    I would also like to see the code you use to build the image link and the rendered link.

    Thank you,

  • #3 / Nov 12, 2012 10:28am

    Gareth Redfern

    86 posts

    Hi Shane,

    No I didn’t copy any settings across when I created site 2.

    My code for pulling in content from site 2 to site 1 is as follows:

    {exp:channel:entries
          site="bev_white"
          channel="news_articles"
          limit="3"
          paginate="bottom"
          disable="{pre_disable}"
        }
          {if {pt_news_article_website:selected option ="bev_alex"}}
            <li>
              <article>
                <h3>{title}</h3>
    <p>            {if cf_news_article_image}<br />
                  {cf_news_article_image:thumb}<br />
                {/if}<br />
                {exp:eehive_hacksaw words="30" allow="<p>" append="…" parse="inward"}<br />
                  {cf_news_article_body}<br />
                {/exp:eehive_hacksaw}<br />
                <footer><br />
                  <span class="meta">Posted: {entry_date format="%d %M %y"} by {author}</span> <a href="http://{url_title_path=%27news/article%27}" class="btn more">Read More</a> <br />
                </footer><br />
              </article><br />
            </li><br />
          {/if}<br />
          {paginate}<br />
            Page {current_page} of {total_pages} pages {pagination_links}<br />
          {/paginate}<br />
        {/exp:channel:entries}

  • #4 / Nov 13, 2012 4:39pm

    Shane Eckert

    7174 posts

    Hi Gareth,

    So this is pulling from the secondary site into the main site?

    What does the rendered page look like? I am curious to see what the image link looks like.

    Where do you have the upload location defined? The File upload prefs have to be on the second site.

    Thank you,

  • #5 / Nov 13, 2012 4:44pm

    Gareth Redfern

    86 posts

    Hi Shane,

    Yes this is pulling from the secondary site to the main site. The image link is empty it just displays:

    <img  alt="">

    The file upload prefs are on the second site and the second site displays the images fine.

  • #6 / Nov 15, 2012 4:20am

    Gareth Redfern

    86 posts

    Hi Shane, is there any update on this please, could really do to get it resolved.

  • #7 / Nov 15, 2012 3:59pm

    Dan Decker

    7338 posts

    Hi Gareth,

    Did you apply the fix in the bug report?

    I think we can best help if we get a look at this. Be on the lookout for an email from EllisLab!

    Cheers,

  • #8 / Nov 20, 2012 2:18pm

    mattsidjohn

    10 posts

    I am having the same problem…. I have a Main site with all the channel data, including the images and file directories. It was working fine then i updated MSM and now on my child sites pulling from the main sites channel data all the other fields work fine just not the file custom field. The img tag is displaying the same results as above.

  • #9 / Nov 20, 2012 3:04pm

    Gareth Redfern

    86 posts

    Hi Matthew, did you update your File_field.php file like the bug tracker post shows? I got it working in the end by making that change.

  • #10 / Nov 20, 2012 3:29pm

    What is the link to the right bug?

  • #11 / Nov 20, 2012 3:39pm

    Gareth Redfern

    86 posts

    What is the link to the right bug?

    https://support.ellislab.com/bugs/detail/18276

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

ExpressionEngine News!

#eecms, #events, #releases