Drupal views_embed_view Fatal error: Allowed memory size of x bytes exhausted

It took me about 3 hours to realise that I was trying to embed a view in the same view’s template page, and of course this causes an infinite loop! If you need to conditionally attach a view to another view (so creating a separate view attachment display and attaching it using the views interface to your main page/block view is not an option) then remember to rename your template file so it specifically affects the first view, not the attachment as well!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>