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!