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.

Two entries cause reverse related entries to give blank page

March 28, 2010 6:41pm

Subscribe [8]
  • #1 / Mar 28, 2010 6:41pm

    walpow

    133 posts

    Long time since I’ve posted - everything’s been going so smoothly. But no more. I’ve been struggling with this for hours, and now I need help.

    I’ve got a page that uses reverse related entries. It worked perfectly for a long time. Then one day I noticed every time I went to it I got a blank page. I did a bunch of debugging and discovered that if I comment out the {reverse_related_entries} tag it works fine, and if I tell it not to look at two particular entries it works fine. But if I leave the reverse related code in and let it see either of those entries (there are about 35 total), it fails.

    One of these entries used to work. The other isn’t going to display anyway because of an {if}.

    Here’s the code. I tried removing the {if writer-blurb} and it didn’t make any difference.

    <table>
        {exp:weblog:entries weblog="the-writers" orderby="writer-lnf" sort="asc" disable="categories|member_data|pagination|trackbacks"}
        {if writer-blurb}
        <tr>
          <td><a href="http://{path=features/writer}is/{url_title}/">/content/common/sorts/writers/{url_title}.jpg</a></td>
          <td>
            <a href="http://{path=features/writer}is/{url_title}/" class="link-main">{title}</a> | <a href="http://{path=/general/who-is-fourstory}#{url_title}">full bio</a>
    
            {exp:smarty_pants}{writer-blurb}{/exp:smarty_pants}
    
            <a href="http://{path=features/writer}is/{url_title}/">all features</a> <span class="t-small">| latest:</span>
            {reverse_related_entries weblog="the-features" sort="desc" limit="1"}<a href="http://{title_permalink=">{title}</a>{/reverse_related_entries}
     
            <a href="http://{path=weblog/writer}is/{url_title}/">all posts</a> <span class="t-small">| latest:</span>
            {reverse_related_entries weblog="the-weblog" sort="desc" limit="1"}<a href="http://{title_permalink=">{title}</a>{/reverse_related_entries}
          </td>
        </tr>
        {/if}
        {/exp:weblog:entries}
      </table>

    Any ideas?

  • #2 / Mar 29, 2010 2:20am

    John Henry Donovan

    12339 posts

    walpow,

    What version and build of EE are you using?
    Are you using any extensions?

    Can you try clearing your cache please
    Admin ›  Utilities ›  Clear Cached Data

  • #3 / Mar 29, 2010 2:57pm

    walpow

    133 posts

    What version and build of EE are you using?

    1.6.8 and 20100121. I didn’t report this earlier because I hadn’t gotten around to updating from 1.6.4. Now that I have, it didn’t make any difference.

    Are you using any extensions?

    Modules: LG Social Bookmarks
    Plugins: Widon’t, Smarty Pants
    Extensions: Edit Tab AJAX, Edit Remember, Edit Menu, LG SAEF File Upload, Category Checkboxes, Low CP

    Can you try clearing your cache please

    First thing I tried. No help.

  • #4 / Mar 29, 2010 8:01pm

    Brandon Jones

    5500 posts

    Have you tried enabling error reporting?  Usually a blank page indicates a suppressed PHP error.

    Is there something particularly different about that one entry?  What’s the minimum template code needed to reproduce the issue?

  • #5 / Mar 30, 2010 2:54pm

    walpow

    133 posts

    Have you tried enabling error reporting?  Usually a blank page indicates a suppressed PHP error.

    I had not tried that, but now I have, and it shows nothing. Still a blank page.

    Is there something particularly different about that one entry?  What’s the minimum template code needed to reproduce the issue?

    Nothing different about the entries that I can find. One has an accented character in the title field, but the other doesn’t. I tried clearing all the optional fields and putting one character in the required ones, and still got the error. To see if there was a corrupt entry, I also tried recreating one of them, deleting the original, and pointing all the appropriate other entries to it instead of the original. Same result.

    Minimum code follows. The template uses both reverse_related_entries tags, but I get the error with either one alone.

    {exp:weblog:entries weblog="the-writers"}
            {reverse_related_entries weblog="the-features"}foo{/reverse_related_entries} 
            {reverse_related_entries weblog="the-weblog"}foo{/reverse_related_entries}
        {/exp:weblog:entries}
  • #6 / Mar 30, 2010 7:15pm

    Brandon Jones

    5500 posts

    walpow,

    Can you let us know what your PHP memory limit is set to?

  • #7 / Mar 30, 2010 8:34pm

    walpow

    133 posts

    Can you let us know what your PHP memory limit is set to?

    It’s 64M.

  • #8 / Mar 31, 2010 2:23am

    John Henry Donovan

    12339 posts

    walpow,

    can you create a new blank template with nothing inside of it only the following please and can you share that link with us please.

    {exp:weblog:entries weblog="the-writers" limit="15" dynamic="off"}
    
    <h3>{title}</h3>
    
    <p>{reverse_related_entries sort="desc" orderby="title" weblog="the-features"}<br />
     {if no_reverse_related_entries}<br />
      </p><h2>No Reverse Entries</h2>
    <p> {/if}<br /></p><h2>{title}</h2>
    <p>{/reverse_related_entries}</p>
    
    
    
    <p>{/exp:weblog:entries}

    I had not tried that, but now I have, and it shows nothing. Still a blank page

    What did you do to enable reporting? Did you use the following instructions?

  • #9 / Mar 31, 2010 1:44pm

    walpow

    133 posts

    can you create a new blank template with nothing inside of it only the following please and can you share that link with us please.

    Done. It’s at http://fourstory.org/writers/test. When I execute it, it works, and includes results from the two entries that are causing the problem. Note that if I take the limit= off, it fails.

    What did you do to enable reporting? Did you use the following instructions?

    Well, yeah. That’s what you told me to do, so that’s what I did. I only had to change to “error_reporting(E_ALL);” - the control panel settings were already correct.

    Thanks,
    Nathan

  • #10 / Mar 31, 2010 9:58pm

    Brandon Jones

    5500 posts

    Hi Nathan,

    So when you remove the limit= parameter you get a blank screen again?

    I also want to make sure that when you visit Admin ›  Utilities ›  PHP Info, display_errors is On?  If so, can you check your server error logs as you experience the blank page?

  • #11 / Apr 02, 2010 4:53pm

    walpow

    133 posts

    Hey, Brandon -

    Well, this is weird. I posted an answer yesterday, and I checked to see that it was there, and it was; but today it’s not showing up.

    So when you remove the limit= parameter you get a blank screen again?

    Yes, and here things get stranger again. There were 35 entries in writers. If I said limit=34, it worked fine, and if I said limit=35 it didn’t. The entry that was added by increasing to 35 was one that did not cause a problem in my “real” template; and the two that caused a problem there displayed here fine.

    Then today, after I discovered my answer missing, I checked the test template again. I have added two more entries to writers, for a total of 37. If I say limit=36, no problem. If I say limit=37, white screen of death. So it bombs when I let it see the last record - which is different from what it does on my “real template,” where the two problematic entries seem to be random.

    I also want to make sure that when you visit Admin ›  Utilities ›  PHP Info, display_errors is On?  If so, can you check your server error logs as you experience the blank page?

    Seriously, I followed the instructions to the letter, and display_errors is on. I’d be happy to check my error logs if you’ll tell me where they are. I’m hosted at EngineHosting.

    Thanks,
    Nathan

  • #12 / Apr 02, 2010 4:58pm

    Sue Crocker

    26054 posts

    Nathan, what happens if you do something like limit=“50”?

  • #13 / Apr 02, 2010 5:54pm

    walpow

    133 posts

    Nathan, what happens if you do something like limit=“50”?

    It fails. Anything that includes that last record fails. Again, this is only on the test template; with the real-world one it seems to be particular records causing the problem, not the “last” one.

  • #14 / Apr 02, 2010 6:59pm

    Brandon Jones

    5500 posts

    Hi walpow,

    Please check your email shortly.

  • #15 / Apr 02, 2010 7:11pm

    walpow

    133 posts

    E-mail has been responded to.

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

ExpressionEngine News!

#eecms, #events, #releases