Uncaught TypeError: Cannot read property 'getSrc' of undefined

I get following client side error in admin when trying to edit my site:

_all.js:32228 Uncaught TypeError: Cannot read property 'getSrc' of undefined
    at ImageSelectorSelectedOptionView.updateIconSrc (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:62672:42)
    at ImageSelectorSelectedOptionView.setOption (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:62663:38)
    at ImageSelectorSelectedOptionsView.addNewOption (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:62890:40)
    at ImageSelectorSelectedOptionsView.addOption (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:62870:38)
    at RichComboBoxComboBox.ComboBox.selectOption (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:25004:62)
    at http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:24913:43
    at Array.forEach (native)
    at http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:24909:39
From previous event:
    at RichComboBoxComboBox.ComboBox.doSetValue (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:24890:41)
    at http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:26033:57
    at ImageSelectorLoader.singleLoadListener (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:26070:33)
    at http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:3232:34
    at Array.forEach (native)
    at ImageSelectorLoader.BaseLoader.notifyLoadedData (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:3231:46)
    at ImageSelectorLoader.BaseLoader.handleLoadSuccess (http://localhost:8080/admin/assets/6.8.1/common/js/_all.js:3172:26)

Relevant site config in site.xml is:

<field-set name="logo">
            <label>Logo</label>
            <items>
                <input type="ImageSelector" name="logo">
                    <label>Logo</label>
                    <immutable>false</immutable>
                    <occurrences minimum="1" maximum="1"/>
                    <config>

                        <allowPath>./*</allowPath>
                    </config>
                </input>
                <input name="slogan" type="TextInput">
                    <label>Slogan</label>
                    <immutable>false</immutable>
                    <indexed>false</indexed>
                    <occurrences minimum="0" maximum="1"/>
                </input>
            </items>
        </field-set>

It seems that something fails during evaluation of my ImageSelector. Is this a known bug ?

Hi

Could you try giving your fieldset name another value then “logo”. Their might be a name collision there.

If that doesn’t help it can be good to know that <immutable> and <indexed> are not used anymore so they can safely be removed.

Also as last check: remove line break inside config node. It shouldn’t make any difference, but you never know =p