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

Loader exception in EPiServer.Find.UnifiedSearch.UnifiedSearchRegistryExtensions.ForInstanceOf(IUnifiedSearchRegistry registry)

$
0
0

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

SearchClient.Instance.Conventions.UnifiedSearchRegistry.ForInstanceOf()

When I inspect the LoaderExceptions property I in the current case see that it can't find Microsoft.IdentityModel.Clients.ActiveDirectory 2.21.

In another project I had the same issue with a version of Microsoft.AspNet.WebApi.Cors and I have a couple of reports from workmates also running into the same error with different references.

Are we doing something run with nuget or is there something in Epis libraries that needs to be more forgiving?


DefaultSynchronizedUsersRepository not set correctly for IQueryableNotificationUsers

Episerver Forms - Case Mapping (Salesforce)

$
0
0

Hello Everyone

I've connected my episerver forms to salesforce and I see account,lead,contact etc but I don't see case as a mappable entity.  Hopefully someone out there can assist?  Thank you in advance.

Validation of property with EmailAddressAttribute fails on empty value

$
0
0

When a string property is decorated with an EmailAddressAttribute validation fails when removing the address. This occurs on a fresh Alloy site with all the latest updates.

How to reproduce:

  • Create a new Alloy site
  • Add a string property with EmailAddressAttribute to a content type, I used ContactBlock and added:
    • [Display(Order = 30), EmailAddress]
    • public virtual string Email { get; set; }
  • Create a block in the CMS, set an email address, and publish
  • Edit the block and erase the email address

Here validation fails with: The Email field is not a valid e-mail address.

Sent via Dojo to the server in the post body is: {"id":"113_116","properties":{"email":"\"\""},"action":513}

As an editor this can be worked around by leaving the property blank, switching to another property and changing that after which validation succeeds and nothing is sent for the property.

Is this a known bug? Is there a fix available?

Forms submit - 6 second or more delay

$
0
0

We have a client using Episerver Forms (4.23). When submitting the form there is a good six second minimum delay before the Thank You page loads. 

They are using the Marketing Connector for Salesforce. Is this just how long it takes? Is there any way to improve the experience outside of a loading gif?

Validation of property with EmailAddressAttribute fails on empty value

$
0
0

When a string property is decorated with an EmailAddressAttribute validation fails when removing the address. This occurs on a fresh Alloy site with all the latest updates.

How to reproduce:

  • Create a new Alloy site
  • Add a string property with EmailAddressAttribute to a content type, I used ContactBlock and added:
    • [Display(Order = 30), EmailAddress]
    • public virtual string Email { get; set; }
  • Create a block in the CMS, set an email address, and publish
  • Edit the block and erase the email address

Here validation fails with: The Email field is not a valid e-mail address.

Sent via Dojo to the server in the post body is: {"id":"113_116","properties":{"email":"\"\""},"action":513}

As an editor this can be worked around by leaving the property blank, switching to another property and changing that after which validation succeeds and nothing is sent for the property.

Is this a known bug? Is there a fix available?

Episerver.CMS.UI >= 11.20.1 no more focus on existing image on 'select image' popup

$
0
0

Episerver.CMS.UI < 11.20.1

When I have a block/page with an image:

[UIHint(UIHint.Image)]
public virtual ContentReference MobileMenuBackgroundImage { get; set; }

and you click in CMS on an existing image, 
then the 'select image' popup appears.
the existing image is focused, with a yellow background.

Episerver.CMS.UI >= 11.20.1

The existing image is no longer focused. causing complaints by our content managers.
(we have 1500 images, so it will take a while to find it now in the list in the popup.)

I reverted to 11.19.0 and it's ok again

Copy content from 1 cart to another?

$
0
0

I am trying to figure out what is the best way to copy content from cart A to a new cart B.
I have a requirement from the customer, that everytime a Dealer clicks Save.

The cart should be saved and a new cart, with new cart ID should be created but it should contain everything that the old cart contains.

So what is the best way to "clone" a cart in EPiCom 11?

 


Upgrade Episerver 7.5 up to the latest version of 11

$
0
0

Hi,

We have a 7.5 version of Episerver together with Commerce and we would like to upgrade it to the latest version of 11.

How easy is this and is it possible? We have custermized commerce quite a bit to fit our client requirements.

We have tried a number of times to do it ourselves and even asked an Episerver support person to do it but there is so much depricated code neither of us were able to do it.

What we would like to know is it worth attempting again?

Thanks

Jon

Creating CustomObject instances with Salesforce Marketing Automation Integration

$
0
0

When creating a form with the Salesforce Marketing Connector (EPiServer.MarketingAutomationIntegration.Salesforce v4.2.0) I only see the standard Salesforce Objects (Accounts, Contacts, Leads, Cases, and Campaign). Is there any way to submit forms data to a CustomObject that was created through the salesforce web UI using the connector? Or, do I need to create my own rest client to do that?

Salesforce Object Options

TinyMCE editor (v2) and roles

$
0
0

Is it possible to configure TinyMCE editor to display options based on user roles?

TinyMCE editor (v2) and roles

$
0
0

Is it possible to configure TinyMCE editor to display options based on user roles?

Changing order on SKU page

$
0
0

I can not change the order of photos in media group on SKU page, well, to be fair i can change it, but it doesn't save new order, if i close SKU page after autosave and open it again, i will see the same order as before my changes. But if i change the group of photo from default to any custom one, it'll be okay, order saves correctly. Had anyone faced the same issue? Thanks in advance

Need Assistance on Promotion

$
0
0

Hi,

If a customer buys a set of items, we would give one item(which is not in that set) free. There is no default Epi promotion to achieve this. Is there any way to customize?

We tried,

"Buy Products for Discount from Other Selection
Buy at least X items from catalog entries and get related catalog entries at a discount. " promotion with 100%.

Thanks in Advance.

SSL/TLS-problem for https://dl.episerver.net/version.json

$
0
0

I get some SSL/TLS errors logged for an EpiServer site that occurs pretty frequently in our production environment.

Anybody else who have the same problem? It seems like episerver.net sometimes have problem with SSL/TLS. See log below.

EPiServer.Find.UI.Helpers.ExternalResourceHelper: Could not fetch https://dl.episerver.net/version.json, the following occured: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at EPiServer.Find.UI.Helpers.ExternalResourceHelper.FetchVersionFromExternalResource[T](String urlToJsonFile)
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---<---


Retrieving assocations by target

$
0
0

If I have an association between product A -> product B, it seems I can only retrieve this association by source. If I ask B for associations (through IAssociationsRepository), it doesn't appear to have any. The UI also reflects this: B has no "Related entries".

The scenario is that I want to show cross links on both product pages... "B is accessory to A" and not only "A has accessory B".

Currently I have to resort to some fugly SQL to make it happen, but I'd much rather have support for this in the API.

Account access right does not match while the account used programmatically

$
0
0

I have created an account and assigned full access to it for the whole tree. When I try to use that account programmatically in a scheduled job by calling 

PrincipalInfo.CurrentPrincipal = PrincipalInfo.CreatePrincipal(ConfigurationManager.AppSettings["ScheduledJob.AdminUser"]);

I get an exception 

Access was denied to content X. The current user does not have sufficient rights to delete the page with id X.

while I try to call _contentRepository.MoveToWastebasket(content.ContentLink). But when I manually log in the edit mode with the same account, I have no problems with moving content to waste basket.

How should I use the account in order to be able to move content to the waste basket programmatically?

Dynamically created metafield doesn't show on the Commerce UI

$
0
0

We have an import that creates metafields from the code. The relations and the values reach the DB. But the fields don't show on the Commerce UI or on the code retrieving the data for PDPs.

When the site is restarted the metafields are present on the UI too.

Do you know how to make the fields displayed without a site restart? (for production)

I already looked at the MetaField.ClearCache and MetaClass.ClearCache, but no luck. Is there a call that we can do when the fields are created to force them to be dislayed?

Thanks

Url property disappear when adding and publishing

$
0
0

Am quite new to EpiSever so bare with me. 

I have two classes like this: 

namespace Whatever
{
  public class Link
    {
        [UIHint(UIHint.Image)]
        [Display(Name = "Image", Description = "", GroupName = SystemTabNames.Content, Order = 1)]
        public virtual ContentReference Image { get; set; }
        [Display(Name = "Link", Description = "", GroupName = SystemTabNames.Content, Order = 2)]
        public virtual Url LinkTo { get; set; }
    }
    [PropertyDefinitionTypePlugIn]
    public class LinksProperty : PropertyList<Link>
    {
    }
}

I've then created a block:

namespace Whatever.Models.Blocks
{
    [ContentType(DisplayName = "LogoBlock", GUID = ".......", Description = "")]
    public class LogoBlock : SiteBlockData
    {
        [CultureSpecific]
        [Display(
            Name = "LinksList",
            Description = "LinksList",
            GroupName = SystemTabNames.Content,
            Order = 1)]
        [EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor<Link>))]
        public virtual IList<Link> LinksList { get; set; }
    }
}

The above code creates a way to add a Link-Item but in EpiServer Editor when I add LinkTo and Image in Editor Mode and do publish the LinkTo-property disappears and I can't figure out why? 
Need help?

Cannot modify TinyMCEConfiguration by implement ExtendedXhtmlStringEditorDescriptor

$
0
0

Hi,

I want to extend XhtmlStringEditorDescriptor follow below code with purpose to get theme value from startpage and it throw error. How can I solve this?

[EditorDescriptorRegistration(TargetType = typeof(XhtmlString))]
    public class ExtendedXhtmlStringEditorDescriptor : XhtmlStringEditorDescriptor
    {
        private readonly ServiceAccessor<TinyMceConfiguration> _tinyMceConfiguration;
        private readonly IContentRepository _contentRepository;
        public ExtendedXhtmlStringEditorDescriptor(ServiceAccessor<TinyMceConfiguration> tinyMceConfiguration, IContentRepository contentRepository) : base(tinyMceConfiguration)
        {
            _tinyMceConfiguration = tinyMceConfiguration;
            _contentRepository = contentRepository;
        }
        public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
        {
            base.ModifyMetadata(metadata, attributes);
            var settings = metadata.EditorConfiguration["settings"] as TinyMceSettings;
            if (settings != null)
            {
                var startPage = _contentRepository.Get<StartPage>(SiteDefinition.Current.StartPage);
                settings.BodyClass(startPage.Theme.ToString());
            }
            metadata.EditorConfiguration["settings"] = settings;
        }
    }

Viewing all 6894 articles
Browse latest View live