It was an issue in previous versions. Not sure if it's been fixed yet.
http://world.episerver.com/support/Bug-list/bug/CMS-1420
AG.
Add <clientResources debug="true" /> to web.config, in the episerver.framework section, and you should get some more information to see what's causing this
Nice tip, PM!
The error is reported from _StoreMixin.js which is located in /Shell/10.7.1.0/ClientResources/lib/dgrid
The warning message is now a bit more detailed:
"Observable store detected, but no sort order specified. You may experience quirks when adding/updating items. These can be resolved by setting a sort order on the list or grid."
The error message "The store was queried with a [string] but the entity id is a [undefined]" comes from Patchable.js (also located inside Episerver Shell)
Tried to implement "Filtered display options" based on https://getadigital.com/no/blogg/filtered-display-option-menu-based-on-content-type-in-episerver/ on a latest episerver (10.7)
Now, when pressing the menu on the block where i can choose to edit the block or change display option i get the same error message, "The store was queried with a [string] but the entity id is a [undefined]". This seems to just be logged in the console, but it is actually working. Any tip?
Did you manage to get rid of this issue? I'm facing it and I don't know where to start. Error in console leads to "epi/shell/store/Patchable". The outcome is that I have a problem with structuring media and blocks:
Having an empty ContentReference as the root folder for the descriptor displayed this console error for myself, couldn't find a solution to resolving this without actually giving the root a content reference
Have you guys experiencing any faulty behaviour in Epi CMS when that error occurs? I get that same error, and I'm having problem with that the page does not load when clicking on its node in the left pane tree in editing mode.
Did you get rid of the warning message Mari?
I had the same issue with the error message and same behavior as Piotr.
I have a multisite and have enabled "Use site-specific assets" in Admin mode and the problem was only on one of the sites.
I upgraded to the latest version as of today, 11.11, but the error was still there.
The solution to get rid of it was to uncheck the box, save and then check it again and save.. Magically the error is now gone :).
I have a feeling that it has been fixed in the latest version and the remaining error was result of some cache related..
I didnt had to do the fix in my other enviroments. It just worked after the upgrade.
Lately we found ourselves in a similar situation like Piotr and Pawel. For us, the error only appeared when logging in with a role lower than "Admin". The trick with (un)ticking the "site specific assets" worked for us, too, but I'd like to mention that this was only a feasible option because there were next to no site specific assets in the affected project. It seems that disabling the option automatically removed any content below the node. You wouldn't want that if your site made heavy use of the "for this site" assets (or you would have to find a way to retain/restore them).
Just wanted to say i got this same issue after adding a media type to handle svg images. I follwoed what Pawel and Philipp suggested (uncheck 'use site specific assets') but initially it didn't work. however, after i restarted the web app everything is working correctly. So if you have the same issue try a restart too.
For "Filtered display options" based on https://getadigital.com/no/blogg/filtered-display-option-menu-based-on-content-type-in-episerver/ on a latest episerver (10.7)
I had the same error and I solved it changing the format of response of the RestStore Class
[RestStore("supporteddisplayoptions")]
public class SupportedDisplayOptionsStore : RestControllerBase
{
private readonly IContentLoader _contentLoader;
private readonly DisplayOptions _displayOptions;
public SupportedDisplayOptionsStore(IContentLoader contentLoader,
DisplayOptions displayOptions)
{
if (contentLoader == null) throw new ArgumentNullException("contentLoader");
if (displayOptions == null) throw new ArgumentNullException("displayOptions");
_contentLoader = contentLoader;
_displayOptions = displayOptions;
}
[HttpGet]
public RestResultBase Get(ContentReference id)
{
IContent content;
if (!_contentLoader.TryGet(id, out content))
{
return Default(id);
}
var specialRenderingContent = content as ISupportRenderingContent;
if (specialRenderingContent != null)
{
var supportedDisplayOptions =
_displayOptions
.Where(x => specialRenderingContent.SupportedRenderingTags.Contains(x.Tag, StringComparer.CurrentCultureIgnoreCase));
return Rest(new SupportedResultModel(id, supportedDisplayOptions));
}
// Default to all display options.
return Default(id);
}
private RestResultBase Default(ContentReference id)
{
return Rest(new SupportedResultModel(id, _displayOptions));
}
internal class SupportedResultModel
{
public string id { get; }
public IEnumerable<string> options { get; }
public SupportedResultModel(ContentReference _contentLink = null, System.Collections.Generic.IEnumerable<DisplayOption> _options = null)
{
id = _contentLink?.ID.ToString() ?? "-1";
options = _options?.Select(x => x.Id);
}
}
}
Hello,
we recently started seeing this error in the console. Every time admins try to enter data, we are seeing this error in the console also we are seeing Offlice Can't save error on top of the edit page. Tuned on the logs but there is nothig in the logs other this the console error in the browser.
Anyhelp would be greatly appreciated.
Thank You,
Swetha.
Found my way here troubleshooting. Setting clientResources debug="true" in my case shows this:
Error: Tried to register widget with id==iiiDeleteButton but that id is already registered
add h/epi/Shell/11.36.4/ClientResources/epi/shell/widgets.js:2
create /epi/Shell/11.36.4/ClientResources/epi/shell/widgets.js:2
_1a5 Dojo
create /epi/Shell/11.36.4/ClientResources/epi/shell/widgets.js:2
postscript /epi/Shell/11.36.4/ClientResources/epi/shell/widgets.js:2
Dojo 3
updateView /epi/EPiCode.InspectInIndex/1.5.1/ClientResources/Scripts/InspectInIndexView.js:63
I suggest adding an issue here: https://github.com/BVNetwork/InspectInIndex
When loading a page in OnPageEdit I first see a warning in the console:
"Observable store detected, but no sort order specified. You may experience quirks when adding/updating items. These can be resolved by setting a sort order on the list or grid."
If I try to edit any of the blocks, I get lots of "The store was queried with a [string] but the entity id is a [undefined]" errors.
The error is reported by widgets.js inside Episerver Shell ClientResources folder (version 10.7.1).
Does anybody know what is causing this?