Error > Import cycle detected for path

Highlighted
New Contributor | Platinum Partner

Hallo
using Hubl
trying to save an hubl object within a COS template

{% import "custom/system/connect_more/ebooks.html" as ebooks %}
some more hubl here

I'll get an error while saving the COS template
"Import cycle detected for path: custom/system/connect_more/ebooks.html"

Any Idea?

Reply
0 Upvotes
1 Reply 1
Community Manager
Community Manager

Hi @hojjohan,

 

I reached out to our COS development team and the "Import cycle detected for path:" occurs when there is some recurrsion happening. I can't tell where it is based off your current code sample, but this is the basic idea of what is going on.

 

Recursion in the COS:

Recursion occurs when a user is including File A on their Template B, but within File A, they are also including Template B. So to start diagnosing your issue, I would go and check what files/templates are being included in your current structures.

 

Let me know how this works out, also if you have a link to the template you're working on, I may be able to help you out further.

 

Thanks!

-- Ty

 

 

Reply
0 Upvotes