CMS Development

hojjohan
Participant | Diamond Partner
Participant | Diamond Partner

Error > Import cycle detected for path

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?

0 Upvotes
1 Reply 1
Ty
HubSpot Employee
HubSpot Employee

Error > Import cycle detected for path

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

 

 

0 Upvotes