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

Uncaught ReferenceError: FindApi is not defined

$
0
0

Getting this js error in the console on the site: Uncaught ReferenceError: FindApi is not defined .  Identified that FindApi is not part of our custom solution, but rather out-of-the-box with Episerver Find.  Wondering if anyone has seen this before and know what causes this?

Site Details:
EPiServer.CMS version=10.10.1
EPiServer.CMS.Core version=10.10.4
EPiServer.CMS.UI version=10.10.2
EPiServer.CMS.UI.Core version=10.10.2
EPiServer.Commerce version=10.8.0
EPiServer.Commerce.Core version=10.8.0
EPiServer.Commerce.FindSearchProvider version=8.14.3
EPiServer.Commerce.UI version=10.8.0
EPiServer.Commerce.UI.ManagerIntegration version=10.8.0
EPiServer.DeveloperTools version=2.2.2
EPiServer.Find version=12.6.2
EPiServer.Find.Cms version=12.6.2
EPiServer.Find.Commerce version=9.8.0
EPiServer.Find.Framework version=12.6.2


PromotionInformationGetRedemptions sql being called too many times

$
0
0

Hi,

I am using Commerce 12.15.0.

I am trying to find the promotion price of an item using GetDiscountPrices method (I pass the content reference and the market to it). And I see from the reflector it is calling the GetRedemptionsFromDatabase method behind the scenes which in turn triggers the PromotionInformationGetRedemptions sql. And upon looking into the SQL Profiler, I see this being called many times which I was hoping will not be the case and this will be read from the cache instead. Also, this only happens when the redemption limits are set.

Example: When I set the redemption per customer to 1 (Promotion used : Buy Products for Discount on All Selections)

This has a significance performance impact, I was hoping this could be cached instead and not trigger a db call everytime. Is this expected behavior?

Application restart loop because of "BuildResult change, cache key=cindexingservice.svc.1f180bcd"

$
0
0

Hello everyone!

We are currently experiencing an issue that has started happening more and more frequently recently and we don't really know how to proceed to track it down...

For some reason our application pool decides to restart about 1-2 a week nowadays and once it has sucessfully restarted once it only runs for 5-10 minutes before restarting again in a restart loop. It keeps doing this until we perform an IIS reset or restart the entire webserver. Once we do this the problem always stops.

In order to try and figure out why the application is restarting I have added some code to catch the reason in the "Application_End" event in Global.asax.cs:

protected void Application_End()
{
	HttpRuntime runtime = (HttpRuntime) typeof(HttpRuntime).InvokeMember("_theRuntime",
		BindingFlags.NonPublic
		| BindingFlags.Static
		| BindingFlags.GetField,
		null,
		null,
		null);
	if (runtime == null)
		return;
	string shutDownMessage = (string) runtime.GetType().InvokeMember("_shutDownMessage",
		BindingFlags.NonPublic
		| BindingFlags.Instance
		| BindingFlags.GetField,
		null,
		runtime,
		null);
	string shutDownStack = (string) runtime.GetType().InvokeMember("_shutDownStack",
		BindingFlags.NonPublic
		| BindingFlags.Instance
		| BindingFlags.GetField,
		null,
		runtime,
		null);
	Logger.Log(
		Level.Critical," ==== APPLICATION END EVENT ====" + Environment.NewLine + shutDownMessage + Environment.NewLine
		+ shutDownStack + " ==============================="
	);
}

With this code in place we see this message in our logs each time the application restarts:

FATAL Piab.CMS.Global: ==== APPLICATION END EVENT ====

BuildResult change, cache key=cindexingservice.svc.1f180bcd

HostingEnvironment initiated shutdown

HostingEnvironment caused shutdown

It's always the same message each time. Even the "1f180bcd" part seems to be static. The only file called "Indexingservice.svc" in our project comes from the EPiServer.Search package and is located at the \IndexingService\IndexingService.svc path. I'm not sure if this means that our problem is somehow related to indexing/search and the EPiServer.Search package or if the restarts would still happen with a different message if we remove it.

We have a testing/staging server but unfortunately we've never seen this error there and we've never been able to reproduce it ourselves.


I have googled all I can for similar error messages but the only thing I find is the Microsoft.NET reference source code that decides to return the "BuildResult change, cache key=" part of the message I now see in the logs...

Has anyone of you guys seen this type of error and/or does anyone have any idea about how to proceeed troubleshooting something like this?
No modified dates are changing on this file itself or any other file in the "bin" folder... We've also tried to disable the IIS file system watcher completely (so dynamic recompilations should not be happening?):

<httpRuntime fcnMode="Disabled" ... />

Since we disabled this the application no longer restarts automatically if we manually edit a .cshtml file for example so the IIS should not be monitoring any files modified/created date and kick off any dynamic recompilations because of such things...

Expired pages are still appearing in the search bar at the front end

$
0
0

Expired pages are still appearing in the search bar at the front end

Exception: Failed to load content type with name 'CategoryData' when working with Geta.EpiCategories plugin

$
0
0

I've been struggling with an exception while I'm trying to import the package to one of the websites -

This has been due to the plugin installed - https://github.com/Geta/EpiCategories

So it's expecting a ContentType named 'CategoryData' which in my case I've two/category - 

 [ContentType]
    public class PressCategory : CategoryData
    {
    }
    [ContentType]
    public class GuestReportingCategory : CategoryData
    {
    }

And the block has a property that basically overrides the default Category of page/block

Any idea what may have happened?

Exclude expired content from the Link Status report

$
0
0

Hi 

Currently the Link Status report shows broken links that are present on expired pages and blocks. Can broken links that are on expired content be ignored by the report as our clients don't need to fix content issues that aren't visible by anyone?

Thanks

Jonathan.

Approval upon page version deletion via Versions gadget

$
0
0

We are currently trying to use Approval Workflows together with Change Approval Add-on. We have noticed that when a page is available (published) in both English (master) and Swedish and the Swedish version is being deleted via Versions gadget, no approval is required to perform the operation.

After spending a couple of days with EPi support guys we found out that this is not implemented and it was suggested that we create a topic here in order to track the status of the feature request.

We would highly appreciate if there was an indication on when this functionality might be included into an EPi version.

Move dynamic datastore to another solution

$
0
0

Hi!

How can I move a dynamic datastore to another solution? We are building the site on the same database, so basically, I need to change the namespaces. 


Add support for culture specific properties on MediaData

$
0
0

As far as I know there's no official way of adding culture specific properties to MediaData content.
For example: I would like to add a culture specific description and alt text to an image and I'd like to translate that.

Do you have any suggestions on how to do this, is support for this on the roadmap somewhere?

I know about these options but I was wondering if there's any better alternative (as I don't think media is indexed in different languages, for example): 
https://www.patrickvankleef.com/2014/06/16/use-culture-specific-mediadata-properties/ 
https://gregwiechec.com/2015/07/localizable-media-assets/ 
https://support.episerver.com/hc/en-us/articles/360000495192

Find UI not working with CMS.UI refresh

$
0
0

I've tried to install the latest EPI Commerce / CMS and Find packages. However I run into the issue that the EPI Find Admin screens in the back-end are not working anymore after the UI refresh. It throws several Dojo JavaScript errors. Is this 1. a known issue and if so 2. when is a new version expected with support for the refreshed UI?

Exact versions used of packages (related to UI):

  • Commerce.UI: 13.7.0
  • CMS.UI: 11.21.5
  • Find: 13.2.3
  • Find.CMS: 13.2.3
  • Find.Commerce: 11.1.1

Spend for amount promotion with unit level exclusion

$
0
0

I would like to see a new promotion where you can have a spend for amount condition and exclude it on unit level.

The use case we want to support is this:

We have two promotions that exclude each other:

  1.  20% off on [Pro Episerver Commerce Creating powerful eCommerce solutions]
  2.  Spend for 100$ and get 10% off on [Books]

With unit level exclusion this should result in:

  1. 20% off on [Pro Episerver Commerce / Creating powerful eCommerce solutions]
  2. 10% off on [Episerver Commerce: A problem - solution approach / Solving problems, one at a time]

Provided we buy for 100$ or more.

It would be preferable if the discounted price for [Pro Episerver Commerce / Creating powerful eCommerce solutions] is used to calculate the 100$ and [Episerver Commerce: A problem - solution approach / Solving problems, one at a time] isn't counted at all, but that might not be necessary for all clients/use cases.

Calculating discounted price

$
0
0

Hi

How can you calculate the discounted prices for a diferent customer group/price group?

private IEnumerable<DiscountedEntry> GetDiscountedPrices(ContentReference contentLink, IMarket CurrentMarket, IBaseContext context)
{
var promotionEngine = container
.With<PromotionEngineContentLoader>(container.With(context)
.GetInstance<CustomPromotionEngineContentLoader>())
.GetInstance<IPromotionEngine>();

return promotionEngine.GetDiscountPrices(
new[] { contentLink },
CurrentMarket,
CurrentMarket.DefaultCurrency,
referenceConverter,
lineItemCalculator);
}

Evaluate prices for specific customer or visitor groups

$
0
0

I have a need to provide specific customer or visitor groups to the promotion engine when calling Evaluate or GetDiscountedPrices.

The use case is pretty straight forward: a client wants to display two different price on their variant page:

  1. The actual price the customer has to pay for the variant.
  2. The member price that the customer would get if they were a member (hidden if they already are a member).

It must be supported that the displayed member price is applied through promotions as well as a direct price on the variant.

EPi find Personalization problem

$
0
0

Hi Team,

Episerver.find.personalization ver13.2.3

We already using recommended products on our site. Now we have to implement the personalized find but it's not working for me. Please guide how to work with the find personalization.

             System.Threading.Tasks.Task.Factory.StartNew(currentContext => { HttpContext.Current = (HttpContext)currentContext; client.Personalization().Refresh(); }, HttpContext.Current.ApplicationInstance.Context);
                    var result = client.Search<SearchResultItem>()
                                  .For(subQueryText)
                                  .UsingPersonalization()
                                 .Filter(x => x.CatalogId.Match(Convert.ToInt32(GlobalSettings.SnSCatalogId)))
                                 .Filter(x => x.LanguageCode.Match(currentCulture.Name))
                                 .ApplyUserFilter(model.CurrentUser)
                                 .Skip((model.PageNumber - 1) * model.ItemsPerPage)
                                 .Take(model.ItemsPerPage)
                                        .GetResult();

 Keys added

<add key="episerver:tracking.Enabled" value="true" />
<add key="episerver:personalization.BaseApiUrl" value="https://uat.peerius.com/xxxxxx" />
<add key="episerver:personalization.Site" value="xxxx" />
<add key="episerver:personalization.ClientToken" value="xxx" />
<add key="episerver:personalization.AdminToken" value="xxx" />

I didn't get any value in below one(prefData  is empty)

var prefData = _client.Personalization().Conventions.PreferenceRepository.Load();

if (prefData != null) {

var attributes = prefData.Attributes;

}

Advance Thanks

Edit blob Uri from Guid to filename

$
0
0

Hi,

I wrote some code so when an editor uploads an image different sizes of the uploaded image are created and save to a blob in aws, in the format epi.fx.blob://[provider]/[container]/[blob]] 

While I can change the container portion, I am having problems figuring out how to change the blob portion of uri which is the image, to the image name plus the size it was changed to.

Any ideas on how to do this?


Epi Find Giving "Upgrade account" in dev environment

$
0
0

Hi

One of our off shroe teams based in India are trying to access Epi Find. 

The dev is able to create an index also. However when the person tries to access anything it gves the following error.

We are based in UK and we use the sane host file mapped domain and we have no issue.

When they try to get access the results from the code it gives a 401 access error

Kind Regards

Sandeep

Open site of particular language depending upon location

$
0
0


I have site with languages en-gb, en-za and master language en-us. However, I want en-gb as default language and en-gb should be opened when the site is opened from all countries other than Uk (en-gb) and South Africa (en-za); en-gb and en-za site should be opened only when they are browsed from the respective countries. Also, if the site is opened without entering language it should go to default language.

Forms submission gives error 500

$
0
0

Using Episerver.Forms 4.24.1 and episerver.CMS 11.10.4 (had same problem back in time when started with Forms 4.15.1 and CMS 11.4.3)

Our intranet site is mostly giving "error 500: Internal Server Error" when posting a form.

Error in log shows: 

ERROR EPiServer.Global: Unhandled exception in ASP.NET
EPiServer.Core.EPiServerException: ContentReference: Input string was not in a correct format.
at EPiServer.Core.ContentReference.Parse(String s)
at EPiServer.Core.ContentReference..ctor(String complexReference)
at EPiServer.Forms.Core.Internal.DataSubmissionService.GetValidatableElementsData(NameValueCollection validationData, Submission submissionDataFullForm)
at EPiServer.Forms.Core.Internal.DataSubmissionService.PerformDataSubmit(NameValueCollection rawSubmittedData, HttpContextBase httpContext, ControllerBase controller)
at EPiServer.Forms.Controllers.DataSubmitController.Submit()
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at System.Web.Mvc.Controller.ExecuteCore()
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
at EPiServer.Forms.Controllers.FormsMvcHandler.ProcessController(IController controller)
at EPiServer.Forms.Controllers.FormsMvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Our intranet is using windows authentication, and users is automatically authenticated.

Web.config contains: <authentication mode="Windows">

IIS is set up with Authentication: "Windows Authentication" and "Anonymous Authentication" enabled

Access rights is set up like this

Have a guest group (ip criterion) that can access the site without login, an other site on server whith the IP is getting RSS feed from this site.

The strange is that a way around the error is (only sometimes) refresh the page by puttig cursor in address line and press enter. Refreshing by pressing F5 or refresh icon does not work.

From time to time we also get following error in logg, and the same "error 500: Internal Server Error" on page

ERROR EPiServer.Forms.Internal.Security.DefaultAntiForgeryValidator: Failed to validate the anti-forgery token
System.Web.Mvc.HttpAntiForgeryException (0x80004005): The provided anti-forgery token was meant for user "DOMAINNAME\username", but the current user is "".
at System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken)
at System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext, String cookieToken, String formToken)
at EPiServer.Forms.Internal.Security.DefaultAntiForgeryValidator.Validate(HttpContextBase httpContext)

and at the same time showing the icon for entering editmode on page.

How to remove Commerce ContentTypes from CMS database

$
0
0

Hello

I have a solution where Commerce were installed but never used and now we have removed it.

The problem is that now in the set access rights page in Admin we get this message:

Could not create instance of content type "SalesCampaignFolder" since it has an invalid .NET class associated: EPiServer.Commerce.Marketing.SalesCampaignFolder, EPiServer.Business.Commerce, Version=12.17.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7

And if I try to delete that type in admin I get this message

The content type could not be deleted since it is in use.
SysCampaignRoot

Are there any way to fix this without doing it directly in the database?

Make it possible to refactor PropertyList namespaces

$
0
0

Make it possible to refactor PropertyList namespaces, proposably by adding a possibility to add GUID to PropertyDefinitionTypePlugIn. Or some other annotation/attribute on every class affected in a propertylist hierarchy...

Viewing all 6894 articles
Browse latest View live