Quantcast
Channel: Using Optimizely Platforms
Viewing all 8020 articles
Browse latest View live

Imagemap and HTML buttons missing

$
0
0

Hello,

We have migrated from EPiServer 7.1 to version 7.5 and there are some mismatches, like "Imagemap" and "HTML" buttons from RichTextBox (XHtmlString) in CMS Edit mode are missing.

I've noticed that in the CMS->Admin->Config->Tool Settings -> Plug-in Manager there is no ImageMap plugin.

How can I include those functionalities?

Thanks in advance!


Shopspray Punchout Logs Location

$
0
0

Where can I find the logs for Shopspray Punchout?    Not the web admin, but the logs.   Are they in a database table?

Utilizing Service API for RESTful Services

$
0
0

Hello,

I'm trying to use Postman to run a GET request to retrieve a token in order to be able to retrieve content data for put together REST methods within my Epi environment.

I'm following the documentation at [https://world.episerver.com/documentation/developer-guides/Episerver-Service-API/installation-and-configuration/] and using the information from the Authorization Token example to run a GET request within Postman but it doesn't seem to be working.

Am I missing something? Is there documentation or tutorials anywhere that explains how to do this clearer?

Thanks. 

Only allow a block in one specific content area

$
0
0

I have a situation where I have a block that should only appear in a few specific content areas. Meaning I want to prevent it from being used anywhere else. I know you can use the [AllowedTypes(...)] attribute on specific ContentArea properties to allow or restrict types, but short of setting [AllowedTypes(...)] with my particular block type as restricted on every single ContentArea in the entire solution, is there some way for me to indicate that the default behavior for this block is for it to be restricted?

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...

When tried to edit variant of one language in Commerce Manager, it asks to fill properties for all languages

$
0
0

I have an ecommerce site with multiple languages say A, B and C where A is the master language and is disabled now. When I add a variant in language B and try to enter In Stock quantity in Commerce Manager (Commerce Manager>Catalog Management>Warehouse inventory tab), it asks to fill all the required properties of variant for all languages, I have not added the variant for all languages though.

Using dependency injection for my sheduled jobs?

$
0
0

I stumbled upon some article mentioning it being possible to use dependency injection for scheduled jobs - great! But using the ScheduledPlugin attribute is dependent an Execute method which is static. How am I suppose to reach my instance member from the static method?

    [ScheduledPlugIn(GUID = "7CFBA546-6015-43C7-94AB-FB73DCF8A960")]
    public class CustomJob
    {
        private readonly IContentLoader _contentLoader;
        public CustomJob(IContentLoader contentLoader)
        {
            _contentLoader = contentLoader;
        }
        public static string Execute()
        {
            // How can I reach my _contentLoader?
        }
    }

AddressType in cls_Address? [Commerce 12.16]

$
0
0

Hi!

I would like to run a SQL script (not preferable and not recommended, I know!) that removes all shipping addresses with "Box" in Line2. But I don't understand the AddressType in cls_Address. It is a Guid and different for all addresses? I can't find any relation to another table either.

How can I find out which addresses are shipment addresses?

Thanks!

/Kristoffer


How to allow Catalog to be drag as a link

$
0
0

We are using Catalog node as our product listing page. Created controller and it works perfectly. Now we want to allow the editor to drag and drop the catalog node into a property of the type of Url (or ContentReference). The problem we have is it doesn't allow the user to drag and drop catalog into the field. Any can help us to see why it is not allowed and is there any way we can allow user for doing this.

Regards,

Aria

Visitor Group - Products in Cart or Wish list - not working when user is NOT logged in

$
0
0

I’m trying to make use of Visitor groups (personalization) for my page content based on the contents of the cart.

It is working perfectly fine if I’m signed-in to episerver (eg. as admin), but if I’m not singed-in it isn’t working.

Have anyone experienced a similar issue or know how it can be solved such that visitor groups are working for everyone?

In the specific case I'm using a "Product in Cart or Wish list" criteria with a specified product code.


I use the following versions of Episerver:



CMS v11.12.0.0
Commerce Manager v13.5.0

The use-case is that the user can does not have to have a user account this early in the flow.

Prevent delete of Organization in certain cases?

$
0
0

I want to be able to prevent delete (from Commerce Manager) of an Organization when certain criterias are met, i.e. it has Contacts tied to it.

What is the best approach to do this?

I have looked into doing a Handler/IPlugin that listens to the delete event ( https://world.episerver.com/documentation/developer-guides/commerce/business-foundation/Working-with-entity-objects/). But how do I cancel the delete? Thowing an exception seems to cancel it, but is that the way to do it? And how do I display a custom error message to the user? I don't want to show the generic "Not all selected items were processed. It may depend on system restrictions or security settings." 

EPiServer Form posts as page refresh instead of AJAX

$
0
0

I have an EPiServer form loaded on a page and my goal is to get the form to submit via an AJAX call instead of a full page post.

After searching around, I've noticed that there are a few boxes to check to make sure everything is setup to work properly.

  • Check Forms.config to make sure that "workInNonJSMode" is set to false
  • Make sure you have the required client resources in the layout @Hmtl.RequiredClientResources("Header"); and @Hmtl.RequiredClientResources("Footer");

I've confirmed the first item is correct and moved on to the second item. When trying to add this line in the layout file, I get the following error:

"HtmlHelper does not contain a definition for RequiredClientResources..."

It looks like maybe I'm missing another setup item for this particular piece. Could someone help point me in the correct direction?

Also, if it helps, the form is working properly with the full page post. The only error I'm seeing in the console is:

"Uncaught TypeError: Cannot read property 'Forms' of undefined"

Thanks!

Finding products using properties on Products and Variants.

$
0
0

Hello!

I am wanting to search for products and variants in Episerver Find. I have inherited from ProductContent and VariationContent and created an index. I am able to pull back products using code like this:

var productSearch = SearchClient.Instance.Search<FoodserviceProduct>()
.FilterFacet("BrandFacet", x => x.Brand.Match("Acme"))

This returns results successfully. However, in addition to being able to search by properties on my ProductContent, I also need to be able to search on properties that are apart of the product variants (VariationContent).

Can someone please help me understand how to do that? In other words, if my Product looks like this:

*Product Name
*Brand

and that product has several variants underneath it with properties like this:

*Size
*Color

How do I construct my query so that I can search based on Brand and Color (for instance)?

Make LinkItem a valid property type

$
0
0

LinkItemCollection is great but if you only want one link it would be nice to be able to create a LinkItem property.

CMS with Ecommerce, Calendar, News, and Forum integration for a gaming website

$
0
0

I host a small server for an online game. We've been utilizing a fairly old CMS called Enjin for our website for some time now. The entire concept works well for what we are using, and is used quite often for websites for minecraft servers, but having used vBulletin, IPBoards, Proboards, etc. in the past, we are finding the forum capabilities to be less than ideal and the concept that we are paying for this service on a monthly basis when we already have hosting capabilities seems silly.

After doing some extensive searching, it seems like there aren't many CMS options out there that can successfully integrate News/Blog style threads, a simple e-commerce shop, and a full functioning forum. I've looked at wordpress with bbpress/simplepress and have been underwhelmed at the forum capability without forking over $100/200 which at that point makes me think it would be better to fork over an extra $100 and go IPBoards/vB. We also quite like having a universal calendar integrated so we can plan events and users can see the events in their time zone.


What's a good cloud-based, multi-site CMS for simple 5-page lead generation sites (ex: local attorneys, window tinting shops, and so on)

$
0
0

Requirements:

  • Cloud-based / cloud-hosted CMS

  • Not Wordpress. That's not a cloud-based CMS, and even if it was, it's not what I'm looking for.

  • Pricing structure (or a partner program) that allows room for markup on the monthly hosting cost.

  • Nice selection of themes / templates that can be customized to fit each client's branding

  • Strong SEO capabilities, especially for local SEO. Blog capability a must.

  • Admin tools that make it possible to bang out a large number of 5-page brochure / lead-gen sites in a short amount of time.

  • Content editor that is straightforward enough to be used by clients whenever they want to post a blog entry or something like that

I guess I'm looking for something like Wix or Squarespace, except that I've tried both of those and don't particularly care for the UI.

Click-through rate

$
0
0

I got a question regarding Click-through rate:

Inside Find UI --> Manage --> "Most frequent searches":
If I click on the top search phrase (lets say its "sunscreen") I can see that clicks are tracked (I see top 5 most clicked results with nr of clicks).

If I then navigate to "Searches without relevant hits" I see "sunscreen" having 0% as click-trough rate. How can that be? I am missing something?

I am running the following versions: Episerver.Find 13.0.5 and Episerver.Find.Commerce 11.0.1

Created content folder/assets folder doesn't appear in Asset Pane

$
0
0

When an editor is uploading an image, a new folder is created in a specific directory (a sub-directory in another sub-directory of the root folder) and different sizes of the image are created and stored in the folder.

My problem is that I will not see the folder in the asset pane unless I reload the page. I am wondering what part of the code is messing up or if it is the location that I am trying to create the new folder.

            var contentRepository = ServiceLocator.Current.GetInstance<IContentRepository>();
            //where new Models.Media.ImageFile().MediaFolder is the content reference of folder that the new folder should be created
            var contentAssetFolder = contentRepository.GetDefault<ContentAssetFolder>(new Models.Media.ImageFile().MediaFolder);
            contentAssetFolder.Name = content.Name.Substring(0, Path.GetExtension(content.Name).Length) + "_" + System.DateTime.Now.ToString("M-d-yy");
            return contentRepository.Save(contentAssetFolder, SaveAction.Publish, AccessLevel.NoAccess);

Issue when using 'PropertyDictionaryMultiple' as a backing type for a block in Commerce

$
0
0

Hi,

I have created a Block which I am using on a Commerce Product Node and am running into issues when adding a property and setting the backing type to be 'PropertyDictionaryMultiple'.  The editor is not rendering correctly, I am just seeing a text input, rather than a collection of check boxes.

When I move the same property down to the Product, it is rendered as expected.

Example below

[BackingType(typeof(PropertyDictionaryMultiple))]
[Display(Name = "Connectors2", Order = 7)]
[CultureSpecific]
public virtual PropertyList<string> Connectors2 { get; set; }

I am using Commerce '13.6.0'.

Looking at other posts it seems that this was reported and fixed in commerce 12.

Thanks

@Html.AlternateLinks() is filling up my logfile

$
0
0

Hi!

We started to use @Html.AlternateLinks() on a website.

For the most part it works just perfectly, but it's also filling up the logfiles. Been trying to google the problem but can't find anything I can use. Does anyone here know why and what I can do to avoid it?

Stacktrace

System.ArgumentNullException: Parameter has no value set
Parameter name: contentLink
   at EPiServer.Core.Internal.DefaultContentRepository.GetLanguageBranches[T](ContentReference contentLink)
   at EPiServer.Web.Internal.AlternateLinksRenderer.GetAlternateLanguages(ContentReference contentLink)
   at EPiServer.Web.Internal.AlternateLinksRenderer.Render(ContentReference contentLink, String action)
   at EPiServer.Web.Mvc.Html.AlternateLinksExtensions.AlternateLinks(HtmlHelper html, ContentReference contentLink, String action)
   at ASP.Page_Views_Shared_Layouts_Root_cshtml.Execute() in d:\DLAPI\www.com\Views\Shared\Layouts_Root.cshtml:line 30
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.WebPages.WebPageBase.<>c_DisplayClass3.<RenderPageCore>b_2(TextWriter writer)
   at System.Web.WebPages.WebPageBase.Write(HelperResult result)
   at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
   at System.Web.WebPages.WebPageBase.PopContext()
   at System.Web.WebPages.WebPageBase.<>c_DisplayClass3.<RenderPageCore>b_2(TextWriter writer)
   at System.Web.WebPages.WebPageBase.Write(HelperResult result)
   at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
   at System.Web.WebPages.WebPageBase.PopContext()
   at System.Web.WebPages.WebPageBase.<>c_DisplayClass3.<RenderPageCore>b_2(TextWriter writer)
   at System.Web.WebPages.WebPageBase.Write(HelperResult result)
   at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
   at System.Web.WebPages.WebPageBase.PopContext()
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c_DisplayClass21.<BeginInvokeAction>b_1e(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   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)

/Jocke

Viewing all 8020 articles
Browse latest View live