I'm not sure this applies to all setups but yesterday I spent many hours debugging an error that causes Apache to run out of memory and display a WSOD.

It boiled down to the use of CKEditor Link Filter and linking within the body of a taxonomy term to the term itself.

<a href="/taxonomy/term/123">the term</a>

As I said above. I'm not sure it is a not combination of modules that causes this but once I removed the link things started to work again.

CommentFileSizeAuthor
#3 infinite-loop-1870068-3.patch847 bytesgrayle

Comments

anrikun’s picture

I don't think this have to do with CKEditor Link Filter.
To be sure, please try to disable the CKEditor Link module and add the faulty link back manually.
Does the bug occur too?

anrikun’s picture

Status: Active » Closed (cannot reproduce)

Closed for no activity. Reopen if needed.

grayle’s picture

Issue summary: View changes
StatusFileSize
new847 bytes

I had the same issue. It happens when a taxonomy term has a field with ckeditor enable, the site is multilingual and you're using path prefixes to determine the language (in other words, ckeditor_link_get_languages() returns something. If that happens, and you have a taxonomy term with a link to itself or another term and that term has a link back to the original term an infinite loop occurs because in ckeditor_link_ckeditor_link_taxonomy_url() a taxonomy_term_load() occurs, which triggers a filter on the newly loaded term, which will again trigger a load on the first term, which will trigger the filter, etc etc.

I looked at node, and there the language is determined with a simple query instead of a node_load so the infinite loop is averted.

Included is a patch which uses the same system for taxonomy terms. When I have some more time, I'll see about adding a static cache so there's no needless querying.

It's against the dev version, but I didn't want to open a new issue. Should I?

grayle’s picture

Version: 7.x-2.2 » 7.x-2.x-dev
Status: Closed (cannot reproduce) » Needs work