Needs work
Project:
CKEditor Link
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2012 at 08:21 UTC
Updated:
8 Nov 2015 at 11:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
anrikun commentedI 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?
Comment #2
anrikun commentedClosed for no activity. Reopen if needed.
Comment #3
grayle commentedI 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?
Comment #4
grayle commented