Quantcast
Channel: ActiveTopics
Viewing all 72689 articles
Browse latest View live

Umbraco 8.0.1 + Safari 13 possible memory leak

$
0
0

Our customers are using Safari 13 and when they log in to the backoffice on a 8.0.1 Umbraco Safari will crash after a short while. I have also had a colleague replicate the same behaviour.

Is this a known issue and is there any solution besides using another browser or upgrading to a newer Umbraco version?


Custom Property Editor that allows the user to select a Property Editor

$
0
0

Hi,

I am building a solution that needs to allow front-end users to select which Landing Page Template they wish to use.

Each Landing Page Template will have a number (differing for each template) of required data Types. For example, a simple landing page may have a title, profile image and a Hero Image. Whilst a more complex landing page could have a profile image, header image, hero image, description, bio etc etc.

I don't want to create real 'Templates' for each of the landing pages as there will be an unlimited number of these.

What i would really like is to have a 'Landing Page' Document Type that holds a list of 'Property Editor' Document Types, each of which would have a 'Property Editor Picker' as a dropdown list of available 'Property editors' in umbraco.

Does anyone know how i would accomplish this? (I'm pretty new to umbraco)

thanks.

Problems with authoirzation

$
0
0

Hello,

I'm facing issues with Authorization, I keep getting the follwoing error:

enter image description here

note that I updated the settings.config with my client id but it looks like it uses the original one.

I believe I'm missing something :(

CSS Deployment to Live triggers only after restarting the live environment

$
0
0

hey guys,

whenever I adapt the css files and deploy it to the live env, i get the changes applied only by restarting the live environment in the cloud portal.

I trtied:

  • clearing browser cache
  • clearing browser cookies
  • clearing browser history
  • loading without cache
  • using incognito mode of the browser
  • using other browsers like IE
  • Adding whitespaces to the web.config

Nothing helped, but the live env restart.

Any ideas?

thanks

dee

JSON error on members

$
0
0

Hi, I have programmatically added members to backOffice and successfully added their role as well but now when i log in i am getting this error.. Any one know what i am missing?

enter image description here

Office365 SMTP In Web.config failing

$
0
0

Hi,

I am using a Umbraco v7.15.2 with a uskinned template but the smtp settings seem to fail. I know the authentication details are correct as i can login correctly with the details but yet they still seem to fail to connect.

I am using a 1and1 shared hosting and the Office365 is provided by Go Daddy.

I have contacted both 1and1 and Go Daddy who have both checked the configurations and admit that it all looks fine.

Can anyone shed any light on this and if anyone has had the same issue before?

The settings:

 <smtp from="ACCOUNTEMAIL">
        <network host="smtp.office365.com" port="587" enableSsl="true" userName="ACCOUNTEMAIL" password="pswrd" />
      </smtp>

I have seen posts indicating to make sure the from address is the same as the one highlighted in the Umbracosettings.config file and i have done that but yet it still fails. I have also tried using SendGrid but this still fails.

Please help :)

Thanks in advance!

GH

RemoteApiException on deployment local -> live

$
0
0

hey guys,

when i deploy my root node including all child nodes to the live system, i get the following error:

The source environment has thrown a Umbraco.Deploy.Exceptions.RemoteApiException with message: The remote API has thrown an exception. It might have been caused by an inner System.ArgumentException with message: An item with the same key has already been added.

The root node has one child node, which has more child nodes. If i deploy root's child node including all child nodes, all ok!

Then i deployed the root node without the child nodes, still ok.

but when i choose the root node including all child nodes, it crashes with the exception above.

in the live system, all nodes are deployed properly.

what is going wrong?

thanks

dee

Boot Failed Exception after migration & NuCache issues Umbraco8

$
0
0

Hello,

We migrated 100,000 nodes by ContentService to our Umbraco8 website, after the migration process we tried to start the project but we got Boot Field Exception:

Boot Field Exception

We restarted the PC and we built the project again and it worked but that caused to out all the nodes out of the cache like the below example:

not in the cache

And when we tried to unpublished the container of the nodes we got that exception:

unpublished exception

Then we tried to reload the memory cache from Published Status section and it took a very long time to finish reloading but unfortunately it didn't solve the problem,

After that, we deleted the AppData folder and rebuilt the project again but but without advantage the nodes are still out of the cache .

Please help how can I solve this problem.


Unit test in ExamineManager

$
0
0

Hi all,

I'm using Umbraco v7 and trying to develop unit tests for search using ExamineManager. But I get following error.

Message: System.Configuration.ConfigurationErrorsException : Exception has been thrown by the target of an invocation. (C:\Users\inoshika.fernando\source\trn-umbraco\NZME.Tests\bin\Debug\config\ExamineSettings.config line 12) ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.NullReferenceException : Object reference not set to an instance of an object.

Stack Trace is Stack Trace: at ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType) at ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType) at ExamineManager.EnsureProviders() in ExamineManager.cs line: 111 at ExamineManager.getSearchProviderCollection() in ExamineManager.cs line: 75 at ExamineSingleBackgroundWingsStrategy.GetSingleBackgroundWingsModel(UmbracoHelper helper, IPublishedContent currentPage, String imageCdn) in ExamineSingleBackgroundWingsStrategy.cs line: 41 at ExamineSingleBackgroundWingsStrategyTest.ExamineShouldreturnSameBackgroundWings_Model(String image) in ExamineSingleBackgroundWingsStrategyTest.cs line: 117 at --TargetInvocationException at RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at Activator.CreateInstance(Type type, Boolean nonPublic) at Activator.CreateInstance(Type type) at HttpRuntime.CreatePublicInstanceByWebObjectActivator(Type type) at ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType) at --NullReferenceException at UmbracoContentIndexer.ctor()

This works fine in project. Only this issue comes in test environment.

Edit Node created with Forms Module

$
0
0

I have made a form, that with workflow creates a node in the Umbraco tree. Simple and easy :)

I was wondering if there is a way to use the same form to edit the content again. ( So thats the User / Member that created it, can update the date later if needed )

Anybody made something like this ?

I use version 7.5.6 and Forms 4.4

Per J

Email Notifications

$
0
0

Hi,

This might just be the instance I'm working on, but can anyone tell me where the notifications options are in Umbraco 8. In v7 your could right click a page on the tree and choose what notifications to receive.

Has this been option been scrapped or does it need to be enabled somewhere?

Thanks

Paul

Products choosed in Teacommerce marketing Awards showing unusual error message

$
0
0

We've two domains for the Umbraco cloud site with tea commerce licensed version.We've added many awards on the marketing section for discounts. But when opening the marketing section on one of the domains.It shows like an error or something like PFA : enter image description here

It works fine with another domain. Can anyone know why this is happening?

Breadcrumb using c# class

$
0
0

Hi

I currently have the following for creating breadcrumbs:

@inherits UmbracoTemplatePage

<div class="breadcrumbs-block">
    @{
        var selection = CurrentPage.Ancestors();
        if (selection.Any())
        {
            <ul class="breadcrumb">

                @foreach (var item in selection.OrderBy("Level"))
                {
                    <li><a href="@item.Url">@item.Name</a> <span class="divider"></span></li>
                }
                <li>@CurrentPage.Name</li>
            </ul>
        }
    }
</div>

What I want is to move the above code and put it into a .cs class so that the partial that contains the above will look something like:

@using Web.Model.Breadcrumbs

<div class="breadcrumbs-block">
    @{
        <ul class="breadcrumb">

                @foreach (var item in breadcrumbs)
                {
                    <li><a href="@item.Url">@item.Name</a> <span class="divider"></span></li>
                }
                <li>Breadcrumbs.Name</li>
            </ul>
        }
    }
</div>

Problem is I just cannot get it to work, my last attempt was:

namespace Web.Model.Breadcrumbs
{
    public class test
    {
        public string tests()
        {
            IPublishedContent content = null;
            var yy = content.Children.DescendantsOrSelf("-1").Select(x => x.Ancestors());
            return null;
        }
    }
    public class WebsiteBreadcrumbs
    {


        public string SiteBreadcrumbs()
        {
            var test = new UmbracoHelper();
        var selection = test.Ancestors().ToList();



            StringBuilder sb = new StringBuilder();
            if (selection.Any())
            {
                sb.Append("<ul>");
                foreach (var links in selection)
                {
                    sb.AppendLine("<li>" + links + "</li>");
                }
                sb.Append(CurrentPage.Name);
                sb.Append("/ul>");
            }


            return "test";
            //}
        }
    }
}

All the above fail, can any help with this Thanks George

Grid with DTGE and Vorto fields not in XLIFF export

$
0
0

We're trying to set up Translation Manager (v2.4.1) on an existing site (Umbraco v7.11.1).

We have multiple hostnames set up on the same site, so the translation set we created is a circular set with the same root node for the different languages.

The pages that need translating have a couple of Vorto fields for things like meta data, and a grid field for the main page content that uses DTGE where each DTGE item uses Vorto fields for the translatable content within that grid element.

When we create a translation job for any of the pages using the XLIFF provider, the exported .xliff2 file does contain the main meta Vorto fields, but none of the grid blocks are included.

Is there something we need to configure for those grid fields to be included?

how to render content from specific page

$
0
0

Hey! A couple of years since i last worked with umbraco, hope that someone can help me with the following:

I have a spesific page that i want to render all the content from and display on several pages (these pages will also have some other content).

Is there something similar to the Umbraco.RenderTemplate that can do this?


Content lost when updating from (Obsolete) Content Picker to Content Picker

$
0
0

We are looking to upgrade Umbraco from v7 to v8 and to prepare for the content migration discussed here: https://our.umbraco.com/documentation/getting-started/setup/upgrading/migrating-to-v8 we are following instructions to update all Obsolete Data Types to their updated counterparts.

We have noticed in development that on updating Obsolete Content Picker to Content Picker, any content we have set up is removed. This is far from ideal as would be a fairly large job for us to go through and re-add the content for all cases in all our environments.

We have not noticed the same behaviour for Media Picker. Content is not affected as we have found for content picker.

Are we missing something or is there no way around this and will we have to go through the content and re-populate it following the data type updates?

Many Thanks, Ben

GetPrevalueAsString alternative in Umbraco v8

$
0
0

Hi, I'm trying to get PreValue string by Id.

With Umbraco v7 I used this code:

var helper = new UmbracoHelper(UmbracoContext.Current);
var docCategory = Request["cat"];
var docCategoryString = helper.GetPreValueAsString(int.Parse(docCategory));

With Umbraco v8 is no longer possible to use this code.

Can you help me to make my code compliant with umbraco v8?

Thank you

How to reuse already published content page content like a compossion in a new content page?

$
0
0

Hi everyone,

I have a document type for header. I have already published content page from that document type. I want to make new document type that will contain the same content already published in header beside new content. I tried with inheritance and composition in Backoffice but when I want to create new content page already published content from the parent or from the composition doesn't appear automatically. How can achieve this only in Backoffice?

I wish you all , have a great day :) Sandra26

Error installing in Umbraco Cloud

$
0
0

Hi there,

Just playing around with some packages in Umbraco Cloud, and tried 301 Tracker, and get the error below. Any ideas?

Well, this is awkward... It seems an error has occurred :-(
Please post a topic at the forum, including the message above, some information about your setup and the stacktrace below:

Stacktrace: 
at InfoCaster.Umbraco.UrlTracker.UI.Installer.UrlTrackerInstallerService.HandleException(Exception ex) in D:\kipusoep\Documents\GitHub\UrlTracker\UI\Installer\UrlTrackerInstallerService.asmx.cs:line 173
at InfoCaster.Umbraco.UrlTracker.UI.Installer.UrlTrackerInstallerService.InstallDashboard() in D:\kipusoep\Documents\GitHub\UrlTracker\UI\Installer\UrlTrackerInstallerService.asmx.cs:line 103
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Script.Services.WebServiceMethodData.CallMethod(Object target, IDictionary`2 parameters)
at System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters)
at System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams)
at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)
at System.Web.Script.Services.RestHandler.ProcessRequest(HttpContext context)
at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

Creating Nested Content Programatically

$
0
0

I'm trying to programmatically set a nested content property but am having a bit of trouble getting it working fully. The following code creates the nested content item on the document however none of the properties (title & bodyText) are set.

Content doc = (Content)sender;

IContentService contentService = ApplicationContext.Current.Services.ContentService;

List<IContent> items = new List<IContent>();

IContent newDesc = contentService.CreateContent("Description", doc.Id, "nestTextContent");
newDesc.SetValue("title", "test");
newDesc.SetValue("bodyText", cleanedDescription);

items.Add(newDesc);

doc.SetValue("pageContent", JsonConvert.SerializeObject(items));
contentService.Save(doc);

Looking at some older threads the answers say the value should be a "JSON serialized Dictionary<string, object> string" but I don't see what the contents of the dictionary should be.

Am I barking up the wrong tree trying to serialise a list of IContents? If not how do I get the actual nested content item's properties set.

These are the threads I've been referencing. https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/72977-can-i-write-collection-of-ipublishedcontent-back-to-model-property https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/76444-create-nestedcontent-items-in-surfacecontroller

Viewing all 72689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>