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

Modify Commerce backoffice catalogue search? [12.6]

$
0
0

Hi!

I Episerver you can search the catalogue. It gives you maximum 4 hits.
Is there anyway to modify this internal search? Both to give you more than 4 hits and to show more data?

Thanks!

/Kristoffer


File upload fails after upgrading from EPiServer CMS 8 to EPiServer CMS 9

$
0
0

After upgrading a website from EPiServer CMS 8 to EPiServer CMS 9 we cannot upload files to the CMS in production. When trying to upload an image the status is set to Failed and when hovering over the status an error message “Object reference not set to an instance of an object.” appears. We cannot reproduce the error in test or development environment. When we restart the site in IIS in production, uploading files works fine for a couple of minutes and then starts failing again. I cannot find any useful information in the log file. I have checked the access rights to the folder on disk and it looks fine. I have also tried to debug the application against the production database but I cannot reproduce the error this way. Does anyone have an idea about what can cause this problem?

There is already an object named 'netConvertCategoryPropertyForPageType' in the database

$
0
0

After upgrading the following packages:

EPiServer.CMS.Core  11.7.1 -> 11.11.3

EPiServer.CMS.UI.Core  11.4.5 -> 11.19.2              

EPiServer.CMS  11.7.1 -> 11.11.3

EPiServer.CMS.TinyMce 2.2.0 -> 2.8.0

EPiServer.CMS.UI.Sources  11.4.5 -> 11.19.2

EPiServer.Forms  4.11.0 -> 4.24.3                   

EPiServer.GoogleAnalytics   2.1.1 -> 2.2.1

EPiServer.Labs.LanguageManager  3.1.2 -> 3.3.1

EPiServer.Social  2.3.0 -> 3.0.2

BVN.404Handler  11.1.11 -> 11.2.3

Episerver.Framework 11.7.1 -> 11.11.3

And maybe some more as dependencies.

I'm getting: System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'netConvertCategoryPropertyForPageType' in the database.
vid System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapClo

@ dev\packages\EPiServer.Framework.11.10.6\tools\upgrade.psm1:310 char:3     (tested different versions, therefore 11.10.6 here)
when I try to debug the project or update db. 
Anyone stumbled upon this?

Only sporadic indexing of content - ContentIndexer.Invisible?

$
0
0

We've been having big problems in our multi-server environment with the Find indexer not always indexing one or all properties of a document, or not at all. It seems to be isolated to the event based indexer, the scheduled job always indexes everything correctly. Trying to re-save the page multiple times some times helps, but most often not.

It's been working OK on the production and staging servers but the testing servers and the local development servers have been more or less impossible to work with, find-wise.

Find has given us no errors in the logs, and even a custom serialization trace writer more or less says everything is OK when it's not.

I finally tried to set ContentIndexer.Invisible to falseas per this answer on an old thread, and it seems to be working (still might be too early to tell but looks good so far). The docs say this setting forces the indexer to run in the shared event thread and not its own (it's true by default).

Does anybody know something about this and why it's happening and if it could be related to something else and not the thread setting? Can't seem to file a support ticket right now. Anyway it might help anyone else having weird indexing issues.

Localization service : multiple fallback languages

$
0
0

Hi Everyone, 

I'm currently looking into providing multiple fallback languages (based on the fallback languages configured per page in EPiServer CMS) when retrieving translate labels from the localization service. 

The idea was to get the fallbacks for the current page, and effectively "test" to see if a label was available in a given fallback language - if it isn't, try the next one, and so on. 

The problem I have is that when making a call such as this one:

var labelInLanguage = LocalizationProvider.Current.GetStringByCulture(label, language);

Inside GetStringByCulture in the localization service I see:

CultureInfo actualFallbackCulture = this.GetActualFallbackCulture(fallbackBehavior, culture);
string localizedString;
if (this.TryGetStringByCulture(resourceKey, normalizedKey, culture, actualFallbackCulture, out localizedString))
return localizedString;
return this.GetMissingFallbackResourceValue(fallbackBehavior, fallback, resourceKey, culture);


GetActualFallbackCulture will give me the invariant culture for my culture I've provided - in trying to get a string for en-US it will provide me with an EN culture and use this in the TrygetStringByCulture call just below it.
So it seems like I will always get a value back from the localization service regardless of if I specify no fallbacks in the provider.

The above logic looks inevitable no matter what localization configuration I use, which means I'd have no way to know if the fallback language I've provided has an actual localized label, or if its the result of the invariant culture being used.

Any help or insight is much appreciated!

Thanks,

Paul

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

Role x Has Permissions for Functions

$
0
0

Was wondering if there is a gadget, or existing view in the admin console that shows Role x has the following permissions.

I know I can navigate to the "Permissions for Fucntions" view, but this shows a giant containing all of the permissions available. 

I am looking for something that can show: The role Customer_Support_Analyst has the following permissions

started looking into implementing a gadget and discovered the table tblUserPermission which contains most of the information I am looking for, but does not contain the friednly description of the role.

For Instance, in the Permissions for functions screen you can see "Allows access to create catalog meta classes - (catalog:admin:meta:cls:mng:create)" but the tblUserPermission table only contains catalog:admin:meta:cls:mng:create.

How to import product to episerver commerce and leave it as draft(not publish)

$
0
0

Hi,

I am trying to write a custom import tool use CatalogImportExport  to import product to eppiserver and leave it as draft version, but i did not see any option to do it

Can anyone please give me the solution to this problem?

Here is my code

// Start import
using (var catalogXmlStream = new MemoryStream())
{
catalogXDoc.Save(catalogXmlStream);
// set stream pointer to beginning
catalogXmlStream.Seek(0, SeekOrigin.Begin);

// import back by episerver import export
CatalogImportExport cie = new CatalogImportExport();
cie.ImportExportProgressMessage += progressHandler.Invoke;
cie.Import(catalogXmlStream, true);
}

Thanks,

Thao Pham


Real-time update error after upgrading to Episerver 11.11.3.0

$
0
0

Hello,

After upgrading to Episerver 11.11.3.0 I get the "real-time update" error when switching from the admin panel to the edit panel.

Websockets is enabled on the server. A similar Episerver site which was recently upgraded to 11.11.2.0 does not show this error.

Any ideas, anyone?

John Ligtenberg 

Languages diff between Catalog view and Commerce Manager

$
0
0

Hi guys, 

I found out that there are diff between Catalog view and Commerce Manager on fiels "Lanauges" (This issue is happended on just some products).

Catalog view shows the correct one. Commerce Manager shows only english version and seems not synchronized .

Anyone has experienced smiliar issue before?

Thanks, 

ChiChing

Loading edit mode very slowly every once in a while

$
0
0

Hi!

Sometimes when trying to enter edit mode, it takes several minutes to load it even though no restart of the application has happened or anything. From what I have been able to find out so far, the longest time is spent in the database. Where some GET requests to Home/Index that is /episerver/cms takes as long as 2,5 minutes (where nearly 100% of it is spent in the database). Where it makes 1600 sql queries.

SELECT Id, ItemType FROM [dbo].[VW_EPiServer.Shell.Profile.ProfileData] WHERE [UserName] = @UserName

SELECT Id, ItemType,[UserName] FROM [dbo].[VW_EPiServer.Shell.Profile.ProfileData] WHERE [StoreId] = @StoreId

SELECT tblBigTableReference.ElementType, tblBigTableReference.ElementStoreName, tblBigTableReference.PropertyName, tblBigTableReference.RefIdValue, tblBigTableIdentity.Guid, tblBigTableReference.LongValue, tblBigTableReference.Type, tblBigTableReference.StringValue, tblBigTableReference.ExternalIdValue, tblBigTableReference.DecimalValue FROM [dbo].[tblBigTableReference] LEFT OUTER JOIN [dbo].[tblBigTableIdentity] ON tblBigTableReference.RefIdValue = tblBigTableIdentity.pkId WHERE tblBigTableReference.pkId= @Id AND (tblBigTableReference.Type = @Reference OR tblBigTableReference.Type = @Provider)

SELECT c.name AS column_name,t.name AS type_name,c.max_length,c.precision,c.scale, CAST(CASE WHEN EXISTS(SELECT * FROM sys.index_columns AS i WHERE i.object_id=c.object_id AND i.column_id=c.column_id) THEN 1 ELSE 0 END AS BIT) AS column_indexed FROM sys.columns AS c JOIN sys.types AS t ON c.user_type_id=t.user_type_id WHERE c.object_id = OBJECT_ID('tblBigTableReference') ORDER BY c.column_id;

SELECT CollectionType, ElementType, ElementStoreName, IsKey, [Index] Indexvalue, [BooleanValue], [IntegerValue], [LongValue], [DateTimeValue], [GuidValue], [FloatValue], [StringValue], [BinaryValue], [RefIdValue], [ExternalIdValue], [DecimalValue], tblBigTableIdentity.Guid FROM [dbo].[tblBigTableReference] LEFT OUTER JOIN [dbo].[tblBigTableIdentity] ON tblBigTableReference.RefIdValue = tblBigTableIdentity.pkId WHERE tblBigTableReference.pkId = @pkId AND PropertyName=@PropertyName ORDER BY [Index] ASC, IsKey DESC

SELECT TOP(1) "EPiServer.Shell.Storage.PersonalizedViewSettingsStorage".Id, "EPiServer.Shell.Storage.PersonalizedViewSettingsStorage".ItemType, "EPiServer.Shell.Storage.PersonalizedViewSettingsStorage"."UserName", "EPiServer.Shell.Storage.PersonalizedViewSettingsStorage"."ViewName" FROM [dbo].[VW_EPiServer.Shell.Storage.PersonalizedViewSettingsStorage] as "EPiServer.Shell.Storage.PersonalizedViewSettingsStorage" WHERE ("EPiServer.Shell.Storage.PersonalizedViewSettingsStorage".[UserName] = @Param0 AND "EPiServer.Shell.Storage.PersonalizedViewSettingsStorage".[ViewName] = @Param1)

netNotificationSubscriptionListByKey

SELECT [Limit1].[UserId] AS [UserId], [Limit1].[PropertyNames] AS [PropertyNames], [Limit1].[PropertyValueStrings] AS [PropertyValueStrings], [Limit1].[PropertyValueBinary] AS [PropertyValueBinary], [Limit1].[LastUpdatedDate] AS [LastUpdatedDate] FROM ( SELECT TOP (1) [Extent1].[UserId] AS [UserId], [Extent1].[PropertyNames] AS [PropertyNames], [Extent1].[PropertyValueStrings] AS [PropertyValueStrings], [Extent1].[PropertyValueBinary] AS [PropertyValueBinary], [Extent1].[LastUpdatedDate] AS [LastUpdatedDate] FROM [dbo].[Profiles] AS [Extent1] INNER JOIN [dbo].[Users] AS [Extent2] ON [Extent1].[UserId] = [Extent2].[UserId] INNER JOIN [dbo].[Applications] AS [Extent3] ON [Extent2].[ApplicationId] = [Extent3].[ApplicationId] WHERE (((LOWER([Extent3].[ApplicationName])) = (LOWER(@p__linq__0))) OR ((LOWER([Extent3].[ApplicationName]) IS NULL) AND (LOWER(@p__linq__0) IS NULL))) AND (((LOWER([Extent2].[UserName])) = (LOWER(@p__linq__1))) OR ((LOWER([Extent2].[UserName]) IS NULL) AND (LOWER(@p__linq__1) IS NULL))) ) AS [Limit1]

netSynchedUserList

Where it keeps re-iterating between the last two for the remaining 1580 queries, i'm assuming by iterating through all users or something. Does anyone recognize this problem? It is currently not a very good way for the editors to work if the site takes 2+ minutes to load sometimes.

Br,

Erik

Include langue in the Link Status report

$
0
0

The Link Status report shows if there is a boken link on a specifik page/block, but it doesn't say on which language. It's really cumbersome to chase down that broken link if you have 20+ languages... 
I guess this is a 15 min fix since the language id is available in tblContentSoftlink.

Thanks!

Get RolePermission data

$
0
0

[Working on Episerver version 10]

I am working on a Gadget for our system administrators that will show given role x, which permissions that role has.  The string to be translated to fetch the access permission is located in the dbo.RolePermission table in Epi Commerce database.

What is the best way to retireve the data from this table in code?

Error occurred when removing the user in EpiServer - ArgumentNullException: The type cannot be null

$
0
0
I have used,
CommunitySystem.CurrentContext.DefaultSecurity.RemoveUser(IUser user);

To remove user (Just as the answer posted in this issue).

However, this works fine. But for one user it gives an error. The exception throws from the RemoveUser(IUser user).

The exception details are here as below,

System.ArgumentNullException: The type cannot be null. Parameter name: type 
at EPiServer.Data.Entity.Internal.EntityTypeResolver.GetTypeName(Type type, Boolean ignoreOverrideAttribute) 
at EPiServer.Common.ImplementationModule.HandleCommentAddUpdateRemove(IComment comment, SupportedOperations operation) 
at EPiServer.Common.Comments.CommentHandler.OnCommentUpdated(IComment comment) 
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass32_0.b__0() 
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass33_0`1.b__0() 
at EPiServer.Common.Comments.CommentHandler.UpdateComment(IComment comment) 
at EPiServer.Common.Data.FrameworkFactoryBase.CascadeUpdateStatus(IEntityStatus entity, ICollection`1 children) 
at EPiServer.Common.Data.CommentFactory.CascadeAuthorStatus(IAuthor author) 
at EPiServer.Common.AuthorEventHandler.Invoke(EntityEventArgs args) 
at EPiServer.Common.AuthorHandler.OnAuthorUpdated(IAuthor author) 
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass32_0.b__0() 
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass33_0`1.b__0() 
at EPiServer.Common.AuthorHandler.UpdateAuthor(IAuthor author) 
at EPiServer.Common.Data.FrameworkFactoryBase.CascadeUpdateStatus(IEntityStatus entity, ICollection`1 children) 
at EPiServer.Common.Security.Data.SecurityFactory.<>c__DisplayClass57_0.b__0() 
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass32_0.b__0() 
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass33_0`1.b__0() 
at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method) 
at EPiServer.Common.Security.SecurityHandler.RemoveUser(IUser user)

I have decompiled the 'EPiServer.Common.ImplementationModule' and this is what the 'HandleCommentAddUpdateRemove(..)' has.

private static void HandleCommentAddUpdateRemove(IComment comment, SupportedOperations operation) {
    EntityReference commentedEntity = comment.CommentedEntity;
    IComment comment2 = null;
    CommentEventData commentEventData;
    if ((int) operation == 4) {
        comment2 = (IComment) comment.get_Master();
        if (comment2 == null || comment2.Status == comment.Status) {
            return;
        }
        commentedEntity = comment2.CommentedEntity;
        commentEventData = new CommentEventData(IEntityTypeResolverExtensions.GetTypeName(ServiceLocator.get_Current().GetInstance < IEntityTypeResolver > (), commentedEntity.get_Type()), commentedEntity.get_ID(), comment2.Status, -1);
        m_commentEvent.Raise(m_commentId, (object) commentEventData);
    }
    commentEventData = new CommentEventData(IEntityTypeResolverExtensions.GetTypeName(ServiceLocator.get_Current().GetInstance < IEntityTypeResolver > (), commentedEntity.get_Type()), commentedEntity.get_ID(), comment.Status, ((int) operation != 8) ? 1 : (-1));
    m_commentEvent.Raise(m_commentId, (object) commentEventData);
}

What causes this to happen ?

It seems like the below code returns 'Null'

commentedEntity.get_Type();

Any way to delete this user?

Additional info:

EPiServer.CommonFramework version=9.0.1
EPiServer.CMS.Core version=11.11.0
EPiServer.Community version=9.0.0

Way to add Open Graph meta tags to each page?

$
0
0

Just need to know is there a feature in the Episerver to add the Open Graph meta tags in Episerver pages?

Because, we need to improve website sharebility on social media like Facebook and LinkedIn.


Cannot call action method 'Void GetFormExternalResources exception during MapMvcAttributeRoutes() after update to 4.24.3

$
0
0

After updating forms to 4.23.3, my website throws the following exception during routeCollection.MapMvcAttributeRoutes():

System.ArgumentException: 'Cannot call action method 'Void GetFormExternalResources(System.Collections.Generic.List`1[System.String] ByRef, System.Collections.Generic.List`1[System.String] ByRef)' on controller 'EPiServer.Forms.Controllers.FormContainerBlockController' because the parameter 'System.Collections.Generic.List`1[System.String]& scripts' is passed by reference.
Parameter name: methodInfo'

Has anyone else encountered this, how to resolve the issue?

Category localized description only indexed in master language

$
0
0

Hi,

We're currently working on making a site multilingual to support the Welsh language and as part of this we need to provide translations for the admin categories in use across the site.

I've added a language XML file to include the Welsh variant for these categories into the /lang folder, e.g.

<?xml version="1.0" encoding="utf-8" ?><languages><language name="English" id="en"><categories><category name="News"><description>News</description></category></categories></language><language name="Cymraeg" id="cy-GB"><categories><category name="News"><description>Newyddion</description></category></categories></language></languages>

This has worked in edit mode as when I render the page in Welsh I am able to programmatically change the current UI culture to cy-GB and so I see "Newyddion" as expected.

However when I make any changes to the page and publish, or run the content indexing job, the master value of "News" is added to the index despite other fields on the page having their Welsh variant indexed.

Is it possible to force the Welsh variant to be indexed instead, and if so is there something I'm missing to get this working?

If I manually change the current culture to cy-GB when the content indexing job is running this seems to work as expected and the Welsh variant is indexed, but then obviously the Welsh variant is also indexed for the English master version. This also doesn't solve the problem that when content is published, this reverts back to the master language being indexed for these categories.

Any help is much appreciated, thanks!

Bradley

Sort Catalogs

$
0
0

Hi,

Is it possible to sort Catalogs in Episerver Commerce? (Manager or UI?)

Modify Publish Flow

$
0
0

Is there any way we can gain more control over our publish flow for variants? Example: Every time we edit and publish a variant the page view opens, and we have to return to the properties view and go back to the variants tab - we'd prefer this flow to not automatically move away from the variants view so publishing would be easier. Is there a way we can hook into the variant publishing process to prevent the automatic move to the page view?

Thanks

Episerver find - Developer Demo Services (Unauthorized)

$
0
0

Hello,

Im trying to creating a developer service, but something seems to be wrong.

The newly created service returns

{"status":401,"error":"Unauthorized"}

Is it just me or is something elso going on?

Felicia

Viewing all 6894 articles
Browse latest View live