TypeError: Cannot read property '0' of undefined

Hi there,

since I updated Pro to the newest version (2.4.6), I receive the following issue after clicking on any of our custom elements within Cornerstone.
As soon as I click on a custom element, the left sidebar is blank and I have to restart cornerstone completely.
The issue only appears with our custom registered elements and I don’t see any issue why. Also, I deactivated all of the other plugins, but the error still stays.

Here’s a screenshot from the backend look:

Thanks already for any advice!

All the best
Jannis

Hey Jannis,

Scripts in your custom elements might be conflicting with the scripts in the latest version of Pro. I’d recommend that you dissect or remove scripts in your custom elements and test if the issue persists. You can also test further by breaking down features of your element until you find what functions are conflicting.

You can let us know what the conflicting functions are but please note that we do not offer support for custom made elements.

Thanks.

Hi Christian,

thanks for your feedback!
I will make some tests for that and come back to you in case there is something that’s not related to the element itself.

All the best
Jannis

Hi Jannis,

Sure, feel free to get in touch with us for the results.

Thank you.

Hi together,

I found the issue - It is not possible from my side to use some “common” settings inside of custom elements.
I have for example the following inside of one of my controls for some elements:

'common' => array( 'margin' ),

This breaks the whole site. It occurs with margin and with padding as far as I have tested it.
Custom scripts are not causing any issues.
Would be great if you can check this again from your end with a custom element.

All the best
Jannis

Hi Jannis,

I can confirm this issue and I’m added this to our issue tracker. Though, I can’t offer any workaround at the moment other than recommending restoring your site to when it’s still working is you wish to continue using your custom element.

Thanks!

Thanks Rad! I just removed the values for now - should be fine for the next couple of weeks - thanks!

You are most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.