London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Block inside a Block produces System.StackOverflowException

Vote:
 

Hi all,

I have a suspicion that Block inside a Block produces System.StackOverflowException. It happens only while developing on localhost, but not on a production when uploaded to server. 

I have a Content Area on a Page-1 where I create a Block-1 -> which has a Content Area where I create a different block (Block-2).

That same Block-2 when used in Content Area on any other page works.

However that Block-2 if not nested inside Block-1, and used on the same Page-1 still fires StackOverflowException.

What are your thoughts on this? I don't know how to debug this.

#222204
Edited, Apr 30, 2020 9:31
Vote:
 

Have you changed the property type?

Like - initially you defined the property with some other type and then change it to ContentArea.

#222257
May 01, 2020 12:04
fuji - May 01, 2020 12:42
In a Page which has ContentArea property or Block which has ContentArea property?
I can't recall doing that, but all is possible. You think it can be an issue?
Ravindra S. Rathore - May 01, 2020 12:45
I am not sure on that but it might be.
And have you tried adding new ContentArea property on blocks and then give it a try?
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.