Quantcast
Channel: Optimizely Search & Navigation
Viewing all 6894 articles
Browse latest View live

"Cache cleared" and EPiServer Application Reboot

$
0
0

I have a website where I use Episerver CMS 11 and also Commerce. I have an issue on my site where it is occasionally unresponsive for up to a couple of minutes. When recovered from this period of unresponsiveness, I have noticed the following line consistently in my log:

2018-12-13 00:14:15,167 [1] WARN EPiServer.Core.Internal.ContentCacheRemover: Cache cleared

The mystery-cache-clear is logged about 4-8 times per day, and seems to follow no pattern (except on 03:00 every day when I recycle app-pool in IIS). For example, this 24-hour period:

2018-11-11 03:00:27,079
2018-11-11 08:03:05,568
2018-11-11 12:12:04,301
2018-11-11 16:36:37,739
2018-11-11 19:48:09,106
2018-11-11 22:48:15,181

In my dev environment, I can trigger the "Cache cleared" message by running an iisreset.

I have noticed a warning event logged in windows Event Viewer -- under System -- for most of the periods of unresponsiveness, but not all.

Source: WAS, ID: 5011, Message:
A process serving application pool 'MyPool' suffered a fatal communication error with the Windows Process Activation Service. The process id was '3788'. The data field contains the error number.
Source: WAS, ID: 5010, Message:
A process serving application pool 'MyPool' failed to respond to a ping. The process id was '4500'.

My questions:
1. When/why does EPiServer log the "Cache cleared" message?
    1.a Is the message logged consistently on startup?
2. My theory is that the EPiServer app is rebooted, and that the cache is cleared on initialization.
    2.a Under what conditions can I expect EPi to reboot itself?
    2.b Under what conditions can I expect IIS to reboot EPi?
3. Other theories?


Thumbnail Manager should respect checked in image type

$
0
0

We are making using of image renditions on our websites.  We do not like the fact that the ThumbnailManager does not respect the image type that we have checked in in turn has png hard-coded as the extension of all the renditions that are kicked back.  Support explained to us that the reason that this was done this way was because, "According to R&D this was done as PNG is the most optimized format for the web." Our expectation is that if we choose to check in a jpg, then the rendition should be returned to us a jpg, not png.  

Which validator do I used to exclude SelectionElementBlock multiselect?

$
0
0

I only want to allow the required validator for a custom and remove multiselect as an Editor option for an element based on SelectionElementBlock.

[AvailableValidatorTypesAttribute(Include = new Type[] { typeof(RequiredValidator)},     Exclude = new Type[] { typeof(???)})]

Create Return Programmatically

$
0
0

Commerce 11.

I have used this as a reference point: https://world.episerver.com/documentation/developer-guides/commerce/orders/using-the-return-order-form/

And while I can create and process a return in code I am missing a few bits of information that I can't seem to set in code.

Specifically the Totals information and the Total Before Return value on the line items (see image) I can't see any documentation which indicate how these are done.

Any documentation or help would be great.

Image:

http://i64.tinypic.com/11wc7ie.jpg

Cannot read property 'contentData' of null -- Publish (when EPiServer.Marketing.Testing installed)

$
0
0

Hello All,

I am starting out my journey into EpiServer and trying to spin up the AlloyDemo application. I am playing around with Users and associated permissions (more specifically Publishing a page). I ran into an issue where the Publish "popup" is not showing up. When I see the console I get the following error. This error goes away and the Publish popup comes up correctly when I uninstall the EPiServer.Marketing.Testing (I am not sure about the dependency between the Marketing.Testing and popups)

Uncaught TypeError: Cannot read property 'contentData' of null
at Object._isOpenSetter (widgets.js:2)
at Object.set (epi.js:2)
at Object.onOpen (widgets.js:2)
at Object.open (widgets.js:2)
at Object.advice (dojo.js:15)
at Object._264 [as open] (dojo.js:15)
at Object.openDropDown (widgets.js:2)
at Object.<anonymous> (widgets.js:2)
at dojo.js:15
at Object.loadAndOpenDropDown (widgets.js:2)

Would really appreciate any pointers.

Sincerely

Cant log in to CMS

$
0
0

I am new with episerver but I am building a e-commerce site with CMS and Commerce and I have trouble to login at my CMS as admin. I have tried to change in my web.config file 

<location path="EPiServer/CMS/admin">
<system.web>
<authorization>
<allow roles="WebAdmins, Administrators" />
<allow users="*" />
</authorization>
</system.web>
</location>

But I still have to login and no username or password I have used works. Would apreciate some help please.

How to hide or delete items in content area programmly

$
0
0

There is a requirement to show a different message depending on the day of the week in the page's header area.

For example, display "Hello Monday" on Monday, display "Hi Tuesday" on Thursday.

So I created a content area and added all messages to it and try to remove unnecessary message items in the controller.

like:

if(items[i] no need to show today){

currentPage.NotificationBlock.Items.RemoveAt(i)

}

but got error says "it's readonly property cannot remove it".

Is there some way we can do that?

CreateMetaField is not adding entry to mcmd_MetaField table

$
0
0

We're having an issue where the Business Foundation API for creating a new MetaField on a class is not working properly.

This is the code that I'm executing:

using (var myEditScope = DataContext.Current.MetaModel.BeginEdit())
{
	metaClass.CreateMetaField(name, friendlyName, typeName, isNullable, defaultValue ?? string.Empty, attributes);
	myEditScope.SaveChanges();
}

And this does create the column in the MetaClass's own SQL table, but it does not add an entry to the mcmd_MetaField table.

I've experimented with a few different approaches, and have tested it with various MetaFieldTypes (Integer, String, DateTime, etc) but keep getting the same result. I've double checked that I'm adding the correct attributes (I am checking against the MetaFieldBuiler code as a reference).

What really has me scratching my head is that this has always worked on previous projects reliably for me, and even in the early days of this project.. I guess maybe something is uniquely wrong with our state of data perhaps, but I can't figure what could have changed to cause this..?

We're using Commerce v12.11 (with CMS v11.10.6).

Anyone have any ideas/tips?


EPiServer.CMS.UI 11.14.0 Cannot Read Property "ContentData" of Null error

ImageProcessor Help Request

$
0
0

Hi Everyone,

I'm trying to take to take Vincent Baaij's ImageProcessor.Web.Episerver for a test drive, but I'm failing hard trying to get it to work. I've been trying for a couple of days now and I'm not sure what else to try.

The goal is to actually use the Azure version as we're running in DXC, but i've tried this and the local version in our codebase to no avail.

I had done little more than install the package and build to get:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Not sure where to start or what info to provide here so I'll start with the exception being thrown:

Exception thrown: 'System.NullReferenceException' in ImageProcessor.Web.Episerver.Azure.dll

The stacktrace shows the following:

at ImageProcessor.Web.Episerver.Azure.AzureBlobCache..ctor(String requestPath, String fullPath, String querystring)

These are the packages I have installed:

<package id="ImageProcessor" version="2.6.2.25" targetFramework="net461" />
<package id="ImageProcessor.Plugins.WebP" version="1.1.0" targetFramework="net461" />
<package id="ImageProcessor.Web" version="4.9.3.25" targetFramework="net461" />
<package id="ImageProcessor.Web.Config" version="2.4.1.19" targetFramework="net461" />
<package id="ImageProcessor.Web.Episerver" version="5.0.0.40599" targetFramework="net461" />
<package id="ImageProcessor.Web.Episerver.Azure" version="5.1.0.38549" targetFramework="net461" />

The web.config seems to have the all the entries it needs (pointers to the config files, imageprocessormodule etc).

I can successfully use something like:

PictureUtils.GetPictureData(Url.ContentUrl(Model.Image), ImageTypes.HeroImage, true);

to return a url like:

http://localhost:49945/siteassets/images/hero-banners/advanced_hero_reimagine_your_business_no_text_v001.jpg?width=1280&mode=crop&heightratio=0.5625&quality=80

but any image I attempt to GET that has the query string appended to it results in a 500 error. Remove the ?... and the image is retrieved correctly.

Any thoughts as to where to start?

Alex

inaccessible episerver blocks

$
0
0

We are using Episerver CMS 10 .

On a page we have total 32 blocks and we have not set any maximum limit for blocks on that page

in code but still if we add a new block on that page it gives 401 error (Unauthorized error).

Does any other factor is causing such issue ?

Conditional Next/Submit Button

$
0
0

Hi, we are working on a project that has a question that can be answered by yes or no. If the answer is yes, we want the button to be a next button. If the answer is no, we want the button to be a submit button. Is this possible with the current version? Thanks!

Caching images from assets

$
0
0

Hello

We are scaling our images from global assets using ?width=X&height=Y etc. The output of this is cached. How do I invalidate the cache when a new picture is added or overwritten in global assets?

Thank you in advance!

Regards,

Benjamin

The store was queried with a [string] but the entity id is a [undefined]

$
0
0

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?

Add button to TinyMCE and keep configured buttons?

$
0
0

Hi!

We have built a TinyMce plugin that is installed via Nuget. We want to add an extra button to the toolbar but since it is a plugin we want to keep the configured buttons and just add our button last.

Everywhere I read it says that you must use Toolbar() to get the button to show.

public void ConfigureContainer(ServiceConfigurationContext context)
        {            
            context.Services.Configure(config =>
            {
                config.Default().AddExternalPlugin("myplugin", "/script/plugin.js")
                .Toolbar("myplugin");
            });
        }

Using this code will clear all buttons and just add mine. How do I keep all configured buttons and just add mine?

Thanks!

/Kristoffer


Episerver search - regenerate the index

$
0
0

Hi All,

How do you rebuild the Episerver Search index? (Not episerver find)

I've deleted the contents of my index from the file system, and was hoping by manually triggering the Index Content tool, it would rebuild and regenerate all of the files. The tool being this one: /EPiServer/CMS/Admin/IndexContent.aspx

However, it doesn't. When deleting the generated files and running the tool I'm getting some exceptions:

ERROR EPiServer.Search.IndexingService.IndexingService: Reset of index: '' failed. Index not found!

ERROR EPiServer.Search.Internal.RequestHandler: Could not reset index '' for service uri 'http://localhost/IndexingService/IndexingService.svc/reset/?namedindex=&accesskey=local'. Message: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.GetResponse()

I need to flush out the index as I'm experiencing some problems with new content not getting indexed...

Thanks.

Delete User Event

$
0
0

Hi,

I would like to do something in code when an editor manually deletes a user from EpiServer CMS. I guess I have to use an InitializationModule and hook on to the event pipeline in some way, but im not sure how. We are using Episerver version 10.10.6. 

Thanks alot!

Getting all Products under Catalog in Episerver

$
0
0

Hi,

We are trying for a scenario where we need to fetch all the products in a catalog. Is there a specific method or api to fetch all the products under a catalog even though there are specific nodes available in it.

Note: we already tried fetching nodes and parsing them to fetch the products for each node.

Regards,

Varun

Empty trash scheduled job

$
0
0

Hi,

I'm having some issues with the scheduled job that empties the recycle bin and need to force some content to have been deleted more than 30 days ago so that I can test and debug. When debugging I can see that it checks for changeTrackable.Saved so I would like to manually change this in the DB so that I can test.

I can't find where this value is stored does anyone know where this is? I've checked tblContent and tblWorkContent and the value I'm seeing when debugging is not in either of these tables.

Thanks,

Mark

New page not showing in main menu

$
0
0

I'm a newbie and playing around with Alloy project. I have created a new page under existing Alloy Plan. But I could not see any change in main menu which is not the case when I add a new page under Start node.However I can navigate to the new page manually by entering url as ".../AlloyPlan/newpage". How do the things work?

My page hierarchy is as below.

Start

-Alloy Plan

--newpage

-Alloy Track

-Alloy Meet

Viewing all 6894 articles
Browse latest View live