Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • AbsolutelyN 84 posts 432 karma points
    14 days ago

    Blocks: Cannot read properties of undefined (reading 'variants')

    I've been building a new Umbraco 13 site and whilst working with blocks I keep randomly getting the error "Cannot read properties of undefined (reading 'variants')" when you hit the submit button to save the blocks.

    I've upgraded with each version of 13 and the error still persists. It is making it hard to edit and add content as you never know when it will happen - when it does all the changes you've made can't be saved.

    Its hard to tell what triggers it but it is possibly if you start editing again before the previous changes were saved. Also seems to happen if you try to click save but just miss the save button. Anyone else having this issue? I've noticed it now on three different installs.


     angular.js:15697 TypeError: Cannot read properties of undefined (reading 'variants')
        at mapElementValues (
        at blockObject.retrieveValuesFrom (
        at Object.submit (umbraco.directives.min.js?d=638430867950000000:1:575424)
        at vm.submitAndClose (umbraco.controllers.min.js?d=638430867950000000:1:184431)
        at fn (eval at compile (angular.js:16548:15), <anonymous>:4:170)
        at d.<computed> [as action] (angular.js:11517:22)
        at UmbButtonController.clickButton (umbraco.directives.min.js?d=638430867950000000:1:47809)
        at fn (eval at compile (angular.js:16548:15), <anonymous>:4:245)
        at e (angular.js:29123:13)
        at b.$eval (angular.js:19523:16)

    Slightly different error in Firefox:

    TypeError: can't access property "variants", toModel is undefined
        submit umbraco.directives.min.js:1
        submitAndClose umbraco.controllers.min.js:1
        Angular 2
        clickButton umbraco.directives.min.js:1
        Angular 5
        jQuery 2
Please Sign in or register to post replies

Write your reply to: