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

Object reference errors on Episerver.Find.Content Indexing Job

$
0
0

Hi

When I run The Content Indexing Job, i get below error for every single page and block type in my site :

ERROR EPiServer.Find.Cms.ContentIndexer: An exception occurred while indexing content [Link 11] [GUID 96ee8a65-5bc8-444e-a650-129d601828e4] [Type WholesaleCreateAccountPage] [Name B2B Registration Page]: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Find.ClientConventions.CompositeLanguageRoutingConvention.GetLanguageRouting(Object instance)
at EPiServer.Find.Client.Index(IEnumerable objectsToIndex, Boolean deleteLanguageRoutingDuplicatesOnIndex)
at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries, Boolean deleteLanguageRoutingDuplicatesOnIndex)
at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 contents, IndexOptions options)
at EPiServer.Find.Cms.ContentIndexer.IndexBatch(IEnumerable`1 contents, Action`1 statusAction, Int32& numberOfContentErrors, Int32& indexingCount, Boolean deleteLanguageRoutingDuplicatesOnIndex)
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Find.ClientConventions.CompositeLanguageRoutingConvention.GetLanguageRouting(Object instance)
at EPiServer.Find.Client.Index(IEnumerable objectsToIndex, Boolean deleteLanguageRoutingDuplicatesOnIndex)
at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries, Boolean deleteLanguageRoutingDuplicatesOnIndex)
at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 contents, IndexOptions options)
at EPiServer.Find.Cms.ContentIndexer.IndexBatch(IEnumerable`1 contents, Action`1 statusAction, Int32& numberOfContentErrors, Int32& indexingCount, Boolean deleteLanguageRoutingDuplicatesOnIndex)

We are using Episerver.Find v 13.2.1.

I can't quite debug any of the Epi methods mentioned in stack trace, so not sure how to troubleshoot this and find the root cause. Please advise.

Regards

Ritu


Form Steps, gives 500 (Internal Server Error) when clicking on Next step button

$
0
0

Using Episerver.Forms 4.11.0.0 and Episerver 11.9.1.0.

I have created a form with steps. When clicking on Next step i throws a 500 (Internal Server Error) in Chrome/Console.

Any idéas? 
With grateful regards,
Johan

Object reference errors on Episerver.Find.Content Indexing Job

$
0
0

Hi

When I run The Content Indexing Job, i get below error for every single page and block type in my site :

ERROR EPiServer.Find.Cms.ContentIndexer: An exception occurred while indexing content [Link 11] [GUID 96ee8a65-5bc8-444e-a650-129d601828e4] [Type WholesaleCreateAccountPage] [Name B2B Registration Page]: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Find.ClientConventions.CompositeLanguageRoutingConvention.GetLanguageRouting(Object instance)
at EPiServer.Find.Client.Index(IEnumerable objectsToIndex, Boolean deleteLanguageRoutingDuplicatesOnIndex)
at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries, Boolean deleteLanguageRoutingDuplicatesOnIndex)
at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 contents, IndexOptions options)
at EPiServer.Find.Cms.ContentIndexer.IndexBatch(IEnumerable`1 contents, Action`1 statusAction, Int32& numberOfContentErrors, Int32& indexingCount, Boolean deleteLanguageRoutingDuplicatesOnIndex)
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Find.ClientConventions.CompositeLanguageRoutingConvention.GetLanguageRouting(Object instance)
at EPiServer.Find.Client.Index(IEnumerable objectsToIndex, Boolean deleteLanguageRoutingDuplicatesOnIndex)
at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries, Boolean deleteLanguageRoutingDuplicatesOnIndex)
at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 contents, IndexOptions options)
at EPiServer.Find.Cms.ContentIndexer.IndexBatch(IEnumerable`1 contents, Action`1 statusAction, Int32& numberOfContentErrors, Int32& indexingCount, Boolean deleteLanguageRoutingDuplicatesOnIndex)

We are using Episerver.Find v 13.2.1.

I can't quite debug any of the Epi methods mentioned in stack trace, so not sure how to troubleshoot this and find the root cause. Please advise.

Regards

Ritu

Page tree selection could default to current page

$
0
0

Hi,

We have this scenario,

Our customer has a big website with over 50 000+ pages.
Because of this it can sometimes be difficult to find the correct pages when for instance selecting an page to “archive to” or creating page links in xhtml-editors.

“Handle expiration date and archiving” => “archive to”

Searching for pages doesn’t help as a lot of pages has the same name.

To make it easier our customer has requested that the current page should always be selected by default, because the page they are looking for is often close by.
Is this something that would be possible to change?

Thanks
/Lucas

No parameterless constructor defined for this object. Stuck

$
0
0

Hello everyone,

so, here is my problem:

I have a controller. There are 2 action methods. One for Get and the second for Post:

Get method works just fine. Instantiates the ViewModel, passes to the view.

But I do have a problem with the Post method. Here is the signature: 

public ActionResult Index(AirRegistrationViewModel model)

The view that is supposed to send the call and ViewModel alone is simplified to bare minimum:

@model AirRegistrationViewModel

@using (Html.BeginForm("Index""AirRegistrationPage"FormMethod.Post, new { enctype = "multipart/form-data" }))              {                  @Html.AntiForgeryToken()                  <input type="submit" value="Login" />              }

On Submit click I am getting 'No parameterless constructor defined for this object'.

As far as I understand the call to the post method does not send over the ViewModel, but supposed to. And MVC tries to instantiate it.
While instantiating it looks at the constructor for the ViewModel:

public AirRegistrationViewModel(AirRegistrationPage airRegistrationPage) : base(airRegistrationPage)      {          ShowRegistrationForm = true;      }

can't get resolve AirRegistrationPage, and looks for parameterless constructor, can't find it, hence the error displayed... :(

If my logic is correct, then the question I have.. why? why the call from the view form does not send alone the ViewModel that has been intantiated on the previos call
to display that view?

thank you for any help.

Alex


 

PropertyFor ignores custom image template/view

$
0
0

I have a wierd issue where my custom template for images is not being used when using PropertyFor. I followed the example in developer training to create the ImageFile class with a controller and view, but it seems to be ignored when using PropertyFor with a ContentReference. It does work right when images are inside in a ContentArea property though. I have the view for the ImageFile in the ~/View/ImageFile/ folder as index.cshtml. Here is my implementation, can anyone give me an idea why this would happen?

    public class ImageFileController : PartialContentController<ImageFile>
    {
        private readonly UrlResolver _urlResolver;
        public ImageFileController(UrlResolver urlResolver)
        {
            _urlResolver = urlResolver;
        }
        public override ActionResult Index(ImageFile currentContent)
        {
            var model = new ImageViewModel(currentContent, _urlResolver);
            return PartialView(model);
        }
    }

Hackers trying to upload malicious files in EPiServer forms

$
0
0

How can we make sure that someone could not upload malicious files via publically available EPiServer Forms?

/K

EpiServer Image Selection Dialog - Specify root folder

$
0
0

Hello EpiServer Devs and Support.

After we upgraded to EpiServer 11.12.0 and starts using new cool image selection property (media component) developed by Grzegorz Wiecheć . It looks really great but just noticed one possible issue with this .  Previously we were specifying root folder for image selection.

However, roots folder now totally seems to be ignored . Using the normal way of specifying 

 public override IEnumerable<ContentReference> Roots => new List<ContentReference>
        {
            //root content reference
        };

Could  someone please confirm is this is a bug or no longer supported feature.

Many thanks,

Kashif


Block to Commerce Catalog or Product Relationship Defect

$
0
0

Hello Guys,

We believe there is a known issue with commerce catalog and content block. But I cant find the defect being raised anywhere. If you create a content block and use it in Commerce page Content Area. The block does not show the relationship between the block and commerce catalog. 

Here are the steps to reproduce.

1. Create block 
2. Drop the block on a commerce page (product or node) 
3. Publish the product or node 
4. Go to edit the block

Actual Result: It says "This item is not used anywhere."

Expected Result: It should say "This item is used in 1 place" with a link to the catalog.

Does anyone know link to the defect or you guys thinking, this is not a defect and I am doing something wrong?

Regards, 
Sujit

Getting RemovedDueToInvalidPrice error

$
0
0

While adding cart to cart service, I have validation from OrderValidationService.ValidateOrder and I am getting RemovedDueToInvalidPrice  error (Item has been removed due to invalid price.). I have set AUD100 to variant price.

ImageFile export

$
0
0

I currently want to compress the images we have on our website(jpg and png). There are about 1k of them so I've used the export function and selected the ImageFile.

The things I would like to have implemented are:

  1. To be able to specify what type of image files you want to be exported.
  2. To be able to either decode the file names after export or just have the maintain the original names they have in the backend.
  3. To be able to choose whether you want thumbnails or not.

The fact that all files have a random name after the export is quite annoying since I don't know what they are called thus making it hard for me to reupload/replace the old files with the compressed ones.

Thanks.

Finding Variant information

$
0
0

How to find Variant path which displayed in commerece catalog /product/variant.

EPiServer.ApplicationModules.Security.SiteSecret - Dynamic Data Store

$
0
0

We are receiving the following error:

The Type 'EPiServer.ApplicationModules.Security.SiteSecret' needs to be remapped in the Dynamic Data Store, see the Errors collection for more information.
Remapping can be done by applying the EPiServer.Data.Dynamic.EPiServerDataStoreAttribute attribute to the type, setting its AutomaticallyRemapStore property to true and ensuring the <episerver.dataStore><dataStore> autoRemapStores attribute in web.config is set to true (or is not defined).

We have tried the suggested actions but there is no change. Frustratingly, it occasionally works after multiple application pool recycles only to fail again about 15 minutes later.

Has anyone experienced similar issues who can offer a resolution?

Thanks

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.

UserName, Membership, and ServiceAPI issue

$
0
0

Working on a requirement to allow our customers to edit/change their account, which in this case is their email address.  I can simply accomplish this via Membership.UpdateUser no problem.

Their is another project that requires our users to authenticate via the ServiceApi (episerver/token) which seems to leverage the UserName from the Users table instead of the Memebership table.

So once a user changes their email address, they are no longer able to authenticate via The Service API.

Anyone else having this issue? When a customer requests to change their email address, should the code also update the UserName to be the email address?


EPiServer and ImageResizer in Azure

$
0
0

Hello

We are looking into adding ImageResizer to one of our sites running in Azure(not DXC).
Simply just adding ImageResizer is no problem. Our questions are about caching.

  • Do the DiskCache plugin work in azure, even when the site runs in multiple instances?
  • Is the DiskCache plugin enough to have acceptable performance?
  • Or is a CDN required to have ok performance? If so, is it possible to only have EPiServer assets routed to the CDN?

/Peter

EPiServer.ApplicationModules.Security.SiteSecret - Dynamic Data Store

$
0
0

We are receiving the following error:

The Type 'EPiServer.ApplicationModules.Security.SiteSecret' needs to be remapped in the Dynamic Data Store, see the Errors collection for more information.
Remapping can be done by applying the EPiServer.Data.Dynamic.EPiServerDataStoreAttribute attribute to the type, setting its AutomaticallyRemapStore property to true and ensuring the <episerver.dataStore><dataStore> autoRemapStores attribute in web.config is set to true (or is not defined).

We have tried the suggested actions but there is no change. Frustratingly, it occasionally works after multiple application pool recycles only to fail again about 15 minutes later.

Has anyone experienced similar issues who can offer a resolution?

Thanks

Integration with Magento (or other ecommerce app)

$
0
0

Hi,

I am looking at integrating an EPiServer 5 install with Magento, but I think this is probably relevant whatever the platform.

I want to create a link between an EPi User and a Magento Customer. My initial thoughts are to store the newly created Magento CustomerID as an additional property in the EpiServer Profile but I wondered whether anyone had any other thoughts/alternative approaches?

Furthermore, to integrate these 2 I need to create single sign on. So far I have taken the rather rudimentary approach of adding code to the login control, would it be more sensible to extend or create a new membership provider?

Any advice/thoughts welcomed

Episerver Find React Faceting

$
0
0

Hi 

I have been doing some research into using episerver find with some front-end javascript frameworks.

One solution I came across was this example from SearchKit.

In the documentation it is possible to to connect searchkit to an elastic search instance.

I was wondering if anyone has attempted to integrate searchkit into an episerver find solution?

Thanks

Paul

Had to reinstall operating system and Visual Studio 2017 - now EPiServer using directives show up as being un-used

$
0
0

After reinstalling the operating system and then installing Visual Studio, I added the required NuGet packages and also the EPiServer CMS Extension.

I restarted the computer.

I then opened our EPiServer project and opened a .cs file to look at my code.

All the EPiServer related using directives, such as:

  • using EPiServer;
  • using EPiServer.Core;
  • using EPiServer.ServiceLocation;

Are showing up in grey, with a red underline. If I hover with the mouse over them, Visual Studio informs me that they are unncessary and not being used. Which is not correct.

Any code that requires them is also showing up with red underlines.

Any help would be appreciated.

Viewing all 6894 articles
Browse latest View live