You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I install the Bundle on Sulu 2.5, configure and can start using it. But when accessing the SEO tab, it doesn't allow me to edit any fields.
When writing in any field, I get this error that I don't understand.
Uncaught TypeError: e is undefined
set index.js:101
set ResourceStore.js:274
MobX 2
change ResourceStore.js:294
MobX 2
change ResourceFormStore.js:276
handleChange Form.js:93
handleChange Field.js:76
handleChange Input.js:45
React 11
unstable_runWithPriority scheduler.production.min.js:18
React 3
index.js:101:4
Line 101 is method
api.set = function set (obj, pointer, value) {
var refTokens = Array.isArray(pointer) ? pointer : api.parse(pointer),
nextTok = refTokens[0];
if (refTokens.length === 0) {
throw Error('Can not set the root object');
}
for (var i = 0; i < refTokens.length - 1; ++i) {
var tok = refTokens[i];
if (typeof tok !== 'string' && typeof tok !== 'number') {
tok = String(tok)
}
if (tok === "__proto__" || tok === "constructor" || tok === "prototype") {
continue
}
if (tok === '-' && Array.isArray(obj)) {
tok = obj.length;
}
nextTok = refTokens[i + 1];
if (!(tok in obj)) {
if (nextTok.match(/^(\d+|-)$/)) {
obj[tok] = [];
} else {
obj[tok] = {};
}
}
obj = obj[tok];
}
if (nextTok === '-' && Array.isArray(obj)) {
nextTok = obj.length;
}
obj[nextTok] = value;
return this;
};
I would say this is a serialization issue in the bundle. Empty array maybe converted into [] instead of into a empty object {} and so the JSON Pointer not working:
Make sure the bundle return:
{"ext": {"seo": {}// <-- if this is [] it could be the problem of the issue}}
I install the Bundle on Sulu 2.5, configure and can start using it. But when accessing the SEO tab, it doesn't allow me to edit any fields.
When writing in any field, I get this error that I don't understand.
Line 101 is method
Composer requires are
This also happened to me on a Sulu 2.4 installation with SuluNewsBundle version 1.2.0.
The text was updated successfully, but these errors were encountered: