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.

Memory Exhausted w/Reverse Related Entries

July 29, 2011 7:15pm

Subscribe [2]
  • #1 / Jul 29, 2011 7:15pm

    mollyawatson

    7 posts

    Hello!

    I’m building a job listing page for a company, and I’m running into a “memory_exhausted” error. In my channels, I’ve created a relationship between my company info channel, and my job entry, where the job entry selects which company info entry it will be related to (there are several companies to chose from).

    My template looks something like this:

    {exp:channel:entries channel="companies" url_title="{segment_3}"}
    
        <div>
          
            {title} Positions Available:
    
            
    
                <!-- Job List Goes Here -->
    
            
            
        </div>
        
    {/exp:channel:entries}

    Which displays my company’s name. To create the jobs list, I wanted to use a reverse_related_entries tag, like this:

    {exp:channel:entries channel="companies" url_title="{segment_3}"}
    
            <div>
    
                {title} Positions Available:
    
                
    
                    {reverse_related_entries channel="jobopps" orderby="entry_date" sort="desc" status="open|internal"}
    
                        {title}
    
    
                    {/reverse_related_entries}
    
                
    
            </div>
    
        {/exp:channel:entries}

    But I get an exhausted allowed memory error, and the page won’t display. There are only about 10 jobs that should be returned in this tag. I added a “limit = 1” parameter to the reverse_related_entries tag, and I still get the same error:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 19419 bytes) in /path_info/public_html/expeng/expressionengine/libraries/Functions.php on line 1472

    I’ve checked the memory_limit, and it’s set to 64MB, so I’m really confused by this issue. Surely pulling 10 entries through a reverse relationship from a single company entry shouldn’t cause such a memory issue. Any ideas?

    We’re running EE v2.2.1 - Build: date 20110705.

    Any help’s appreciated! Thanks!

  • #2 / Aug 01, 2011 4:24am

    John Henry Donovan

    12339 posts

    Hi mollyawatson,

    Do you have any third-party add-ons/custom fields installed?

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

ExpressionEngine News!

#eecms, #events, #releases