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.

Reverse related entries blank page

August 03, 2010 9:09am

Subscribe [3]
  • #1 / Aug 03, 2010 9:09am

    Wes McWhorter

    36 posts

    Boy,
    I really thought I was on to something by reading through this thread. Alas, I seem to be having the exact same issues, only the mod.weblog.php file seems to already have the fix built in.

    What I’m trying to do is pull all the videos related to a specific artist. Much like the guy who started this thread, I can say that at one point over the last few weeks, this page was working, and then I started getting white screen problems. My memory limit is cranked to 160MB. 😉 So hopefully that wouldn’t cause a problem.

    First of all the details:
    EE 1.6.9 build 20100430

    The page where the test code resides:
    http://www.partisanrecords.com/media/wtf

    And the code in question:

    {exp:weblog:entries weblog="artists" orderby="title" sort="asc" status="not closed" dynamic="off" disable="trackbacks|member_data|pagination"}
    {reverse_related_entries weblog="videos" limit="1" status="not closed" dynamic="off" disable="categories|member_data|pagination|trackbacks"}
    {if no_reverse_related_entries}
    {/if}
    <div>
    <h3>{embed="global/_artist_name" my_weblog="videos" my_id="{entry_id}" artist_prefix="video"}</h3><p> <!-- This template code below… --><br />
    {/reverse_related_entries}</p>
    
    <p>{reverse_related_entries weblog="videos" status="not closed" dynamic="off" disable="categories|member_data|pagination|trackbacks"}<br />
    <div><br />
    {title}<br />
    <a href="http://{video_url}" title="" class="video">{exp:imgsizer:size src="{video_image_preview}" height="100" width="150" alt="Video Still"}</a><br />
    </div><br />
    {/reverse_related_entries}</p>
    
    <p>{reverse_related_entries weblog="videos" limit="1" status="not closed" dynamic="off" disable="categories|member_data|pagination|trackbacks"}<br />
    {if no_reverse_related_entries}<br />
    {/if}<br />
    </div><br />
    {/reverse_related_entries}<br />
    {/exp:weblog:entries}


    The code for the “global/_artist_name” template:

    {exp:weblog:entries weblog="{embed:my_weblog}" entry_id="{embed:my_id}" status="not closed" dynamic="off" disable="categories|member_data|pagination|trackbacks"}
    {related_entries id="{embed:artist_prefix}_artist"}{title}{/related_entries}
    {/exp:weblog:entries}

    Thanks for taking a look. Please let me know if anything stands out.
    ~
    Wes

    [Mod Edit: Split off from this thread]

  • #2 / Aug 03, 2010 9:45am

    FountainInternet

    53 posts

    I suspect that it might be your {exp:imgsizer} that’s the problem. It could be that the plugin is failing to allocate sufficient memory to allow the resizing to occur. Try removing that tag and see what happens.

    Simon

  • #3 / Aug 03, 2010 10:21am

    Wes McWhorter

    36 posts

    Hey Simon,
    I simplified the request to the “videos” weblog even more.

    {reverse_related_entries weblog="videos" status="not closed" dynamic="off" disable="categories|member_data|pagination|trackbacks"}
    <div class="media-content-module">
    {title}
    <a href="http://{video_url}" title="" class="video">{video_url}</a>
    </div>
    {/reverse_related_entries}

    So now, all it’s trying to grab is just the title of the video and it’s URL.

  • #4 / Aug 03, 2010 10:27am

    FountainInternet

    53 posts

    If that’s all there is in your page, then that looks ok to me. Have you tried clearing out your cache (both the EE cache and your browser cache)?

    EDIT: you do have that code inside a {exp:weblog:entries} tag pair, right?

  • #5 / Aug 03, 2010 7:02pm

    Brandon Jones

    5500 posts

    FountainInternet, thanks for the assistance.

    manicgenius, I split this off to a new thread for you. Let us know if FountainInternet’s suggestion helps. If you find that it works immediately after an EE cache clear but not on subsequent loads, that would definitely suggest a memory issue as well.

  • #6 / Aug 12, 2010 9:10am

    Trumpet

    19 posts

    I have cleared the caches and my memory limit is cranked to 160MB.

    The funny thing about all this is that I’m using the same exact code here:

    http://www.knittingfactoryrecords.com/media

    ..no issues there.

  • #7 / Aug 12, 2010 7:34pm

    Brandon Jones

    5500 posts

    Trumpet, which code are you referring to? Do you have error reporting enabled?

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

ExpressionEngine News!

#eecms, #events, #releases