Close

Fatal error when redis cache is enabled

saad77
5 years ago
#14748 Quote
Avatar
  • 1
Hello, as from the title there is an exception with a self referencing loop issue when using the template.
error is shown when visiting the website.

link to site:
http://dnn-sa.azurewebsites.net/en/





AggregateException: One or more errors occurred. (Self referencing loop detected for property 'ConditionGroupEntity' with type 'SevenSpikes.Nop.Conditions.Domain.ConditionGroup'. Path '1.ConditionEntity.ConditionGroups[0].ConditionStatements[0]'.)


Stack trace

System.AggregateException: One or more errors occurred. (Self referencing loop detected for property 'ConditionGroupEntity' with type 'SevenSpikes.Nop.Conditions.Domain.ConditionGroup'. Path '1.ConditionEntity.ConditionGroups[0].ConditionStatements[0]'.) ---> Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'ConditionGroupEntity' with type 'SevenSpikes.Nop.Conditions.Domain.ConditionGroup'. Path '1.ConditionEntity.ConditionGroups[0].ConditionStatements[0]'.
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference(JsonWriter writer, Object value, JsonProperty property, JsonContract contract, JsonContainerContract containerContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contrac
Boyko
5 years ago
#14751 Quote
Avatar
  • Moderator
  • 1570
saad77 wrote:
Hello, as from the title there is an exception with a self referencing loop issue when using the template.
error is shown when visiting the website.

link to site:
http://dnn-sa.azurewebsites.net/en/


AggregateException: One or more errors occurred. (Self referencing loop detected for property 'ConditionGroupEntity' with type 'SevenSpikes.Nop.Conditions.Domain.ConditionGroup'. Path '1.ConditionEntity.ConditionGroups[0].ConditionStatements[0]'.)


Hi saad77,

Thank your for reporting this!

It looks like the JsonSerializer that Redis is using could not handle such complex objects.
We have corrected this and sent you an updated version.

Please check your ticket!

Thanks,
Boyko
Regards,
Nop-Templates.com Team
[email protected]
5 years ago
#14831 Quote
Avatar
  • 1
How do the rest of us get an updated version?
SDobrev
5 years ago
#14841 Quote
Avatar
  • Moderator
  • 283
Hi,

The changes are deployed to our server. Just update your products to the latest version and you will get this fix.
Best Regards,
Stoyan Dobrev
Nop-Templates.com