ActiveTopics https://our.umbraco.org Fri, 23 Feb 2018 04:50:29 +00:00 umbraco Latests topics from the forum on our.umbraco.org en Refresh UmbracoContext https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90740-refresh-umbracocontext https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90740-refresh-umbracocontext I have updated the db into cmsPropertyData table,

but when i get api on postman the result is still not updated,

Is it because I do not refresh the UmbracoContext?

]]>
Nguyen Thi Thu Trang Fri, 23 Feb 2018 03:22:01 +00:00
Can you add a link to external page in the Sections area of Umbraco? https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90738-can-you-add-a-link-to-external-page-in-the-sections-area-of-umbraco https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90738-can-you-add-a-link-to-external-page-in-the-sections-area-of-umbraco Hey all,

I have an existing application that allows users to create catalogs. It is not written with Angular, and I don't want to add it to Umbraco. I have added an icon to the Sections area

enter image description here

I don't want this to open the tree view though, I just want to make it a link to www.myDomain.com/myAdmin/ I have been looking through examples mostly this one http://skrift.io/articles/archive/sections-and-trees-in-umbraco-7/ but I don't want to expand a tree when I click it, I want it to go to a new domain. The only thing I have been able to do is call a a GetTreeNodes method:

[Tree("catalog", "Catalogs", "Catalogs")]
[PluginController("Catalogs")]
public class CatalogTreeController : TreeController
{
    protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
    {
        TreeNodeCollection nodes = new TreeNodeCollection();

        return nodes;

    }

    protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
    {
        return new MenuItemCollection();
    }

    private string Localize(string key)
    {
        return ApplicationContext.Services.TextService.Localize(key, CultureInfo.CurrentCulture);
    }
}

but again I don't want it to open an umbraco page, I want it to go to a completely different one.

Thanks, Charlie

]]>
Charlie Fri, 23 Feb 2018 00:31:13 +00:00
Foreign key error on import https://our.umbraco.org/projects/developer-tools/usync/usync/90736-foreign-key-error-on-import https://our.umbraco.org/projects/developer-tools/usync/usync/90736-foreign-key-error-on-import I did a full export from my dev environment, and then tried to import that to my staging environment, but received the following error:

The UPDATE statement conflicted with the FOREIGN KEY constraint "FKcmsPropertyTypecmsPropertyTypeGroup_id".

I'd guess there's a sequencing problem where entries aren't getting created in cmsPropertyType before entries are added to cmsPropertyTypGroup, but I'm not sure how to work around this, given that uSync is doing all the magic.

The logs show:

 2018-02-22 11:06:57,017 [P4216/D2/T16] INFO  Jumoo.uSync.BackOffice.uSyncApplicationEventHandler - Running uSync Import: Group = default Folder = ~/uSync/data/ Force = False
 2018-02-22 11:06:57,017 [P4216/D2/T16] INFO  Jumoo.uSync.BackOffice.Logging - Running Import: DataType
 2018-02-22 11:06:57,064 [P4216/D2/T16] INFO  Jumoo.uSync.BackOffice.Logging - Handler Import Complete: 32 Items 1 changes 0 failures
 2018-02-22 11:06:57,064 [P4216/D2/T16] INFO  Jumoo.uSync.BackOffice.Logging - Running Import: Template
 2018-02-22 11:06:57,064 [P4216/D2/T16] INFO  Jumoo.uSync.BackOffice.Logging - Handler Import Complete: 5 Items 0 changes 0 failures
 2018-02-22 11:06:57,064 [P4216/D2/T16] INFO  Jumoo.uSync.BackOffice.Logging - Running Import: DocumentType
 2018-02-22 11:06:57,111 [P4216/D2/T16] INFO  umbraco.content - Loading content from database...
 2018-02-22 11:06:57,205 [P4216/D2/T16] INFO  umbraco.content - Loading content from database...
 2018-02-22 11:06:57,283 [P4216/D2/T16] INFO  umbraco.content - Loading content from database...
 2018-02-22 11:06:57,439 [P4216/D2/T16] ERROR Umbraco.Core.Persistence.UmbracoDatabase - Exception (1778c34c).
System.Data.SqlClient.SqlException (0x80131904): The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_cmsPropertyType_cmsPropertyTypeGroup_id". The conflict occurred in database "GWPublic", table "dbo.cmsPropertyTypeGroup", column 'id'.
The statement has been terminated.
]]>
Jared Jensen Thu, 22 Feb 2018 18:56:11 +00:00
Implement the "ultimate" site structure https://our.umbraco.org/forum/using-umbraco-and-getting-started/90735-implement-the-ultimate-site-structure https://our.umbraco.org/forum/using-umbraco-and-getting-started/90735-implement-the-ultimate-site-structure I would like to implement the "ultimate" site structure found at:

https://24days.in/umbraco-cms/2014/urlprovider-and-contentfinder/

https://cultiv.nl/blog/tip-of-the-week-the-ultimate-site-structure-setup/

However, it doesn't seem to be possible with the current collision checks:

https://github.com/umbraco/Umbraco-CMS/blob/cf86409e3fec4198744189a48255543fc2f32614/src/Umbraco.Web/Routing/UrlProviderExtensions.cs#L70

Anyone have suggestions on how to implement? Or is there a new/better practice?

]]>
Dan White Thu, 22 Feb 2018 18:48:05 +00:00
How Can I give a path to mediapicker using content service https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90733-how-can-i-give-a-path-to-mediapicker-using-content-service https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90733-how-can-i-give-a-path-to-mediapicker-using-content-service I am new in umbraco I have a DocType (CreateMediaDT). This doctype has one textstring property (title) and one mediapicker property (media). I want to create a DocType programmaticallay (using content service)

I added a content with only textsring property. It was simple

var basicContent= Services.ContentService.CreateContent("Basic", pageId,"Basic");

        basicContent.SetValue("title",model.Title);

I understand that textstring property can take string value. Because model.Title is string.

But I want to add a path for media picker with content service. I want to do this

var mediaContent= Services.ContentService.CreateContent("Media01", pageId,"MediaC");

        mediaContent.SetValue("mediaPath" , media);

But It doesnt run. I have a lot of document in a database. I need to create all document in umbraco. I did all but without image. I plan to add a mediapicker in document and give a path for mediapicker. How can I give a path mediapicker or other media property in a document with programmatically. Advice me please.

]]>
Mehmet Akif TektaƟ Thu, 22 Feb 2018 17:28:58 +00:00
Unpublished pages still show in isVisible https://our.umbraco.org/forum/using-umbraco-and-getting-started/90732-unpublished-pages-still-show-in-isvisible https://our.umbraco.org/forum/using-umbraco-and-getting-started/90732-unpublished-pages-still-show-in-isvisible Hi, I have set Unpublish dates in the CMS yet pages still show even when I use isVisible. If I manually Unpublish a page it disappears.

Any ideas?

Jon

]]>
Jonathan Roberts Thu, 22 Feb 2018 17:27:39 +00:00
Umbraco 7.8.1 restarts and recompiles on each document change https://our.umbraco.org/forum/using-umbraco-and-getting-started/90731-umbraco-781-restarts-and-recompiles-on-each-document-change https://our.umbraco.org/forum/using-umbraco-and-getting-started/90731-umbraco-781-restarts-and-recompiles-on-each-document-change Each time we add a new document-type we reach compilation limit, regardless of how many propertys we add.

Following up it also happens when data types are updated och saved.

This appears in The Umbracolog, nothing else about any error: INFO Umbraco.Core.UmbracoApplicationBase - Application shutdown. Details: MaxRecompilationsReached

_shutDownMessage=Recompilation limit of 50 reached HostingEnvironment initiated shutdown HostingEnvironment caused shutdown

In App_Data/Models the generated and all models.cs both receive a new timestamp. That is something i only see in the development environment on codechange. There is also a all.dll.path-file and a models.hash that gets updated, the .path-file is not always generated at all in the development environment and i dont understand it, is it a normal part of the models builder?

The restarts also seems to trigger a complete recompilation of all views (codechange?), which would explain the updated timestamps above. Reaching compilation limit on our previous install (7.4.3) only recycled the app pool with a much quicker restart.

We're running modelsbuilder in pure-live mode, no errors reporting. We have duplicated everything in the dev-environment except the same DB and not experiencing this.

Any ideas on what is causing this and possible solutions?

Addition: Switching Modelsbuilder to Dll-mode stopped the restarts and recompilations from occuring, however purelive models are useful to me so if anyone has any ideas on what the cause could be i would very much appreciate it.

]]>
Martin Thu, 22 Feb 2018 17:01:36 +00:00
Issues with 0.5.0 https://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor/doc-type-grid-editor-feedback/90730-issues-with-050 https://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor/doc-type-grid-editor-feedback/90730-issues-with-050 Before I submit a bug report on Github, I thought I'd gain opinion here on whether upgrading to DTGE v0.5.0 breaks things for anyone's else?

Having just upgraded from v 0.4.0 to 0.5.0 by installing the latest zip (https://github.com/umco/umbraco-doc-type-grid-editor/releases/tag/0.5.0) as a package via the Umbraco back-office, installed 'over the top' of the existing version, the slide-out right-hand panel no longer appears when I double select any grid module. Clicking a module once allows it to be sorted and deleted, which works, but clicking again just doesn't do anything.

There are no errors in the browser console at all. I've tried deleting all App_Data/Temp files, restarting the application pool, bumping the client dependency number, re-saving the grid property editor and clearing cookies but to no avail. Reverting the upgrade results in it working again.

I'll try to investigate further but just thought I'd raise this in case anyone has encountered the same thing, or if v0.5.0 worked okay for other folks.

Thanks

]]>
Dan Thu, 22 Feb 2018 16:30:19 +00:00
Color Picker - Return Label Value https://our.umbraco.org/forum/using-umbraco-and-getting-started/90729-color-picker-return-label-value https://our.umbraco.org/forum/using-umbraco-and-getting-started/90729-color-picker-return-label-value Hi All,

Is it possible to return the Color Picker label value?

Thanks

Martin

]]>
Martin Thu, 22 Feb 2018 14:55:40 +00:00
Integration with GLS https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/90728-integration-with-gls https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/90728-integration-with-gls Hi,

Are there any addons or modules for integrating Teacommerce with GLS, to create shipments automatically?

--

Best regards

Kurt Moskjaer Andersen

]]>
Kurt Moskjaer Andersen Thu, 22 Feb 2018 14:33:21 +00:00
Integration with Teacommerce https://our.umbraco.org/projects/backoffice-extensions/newsletter-studio/comments/90727-integration-with-teacommerce https://our.umbraco.org/projects/backoffice-extensions/newsletter-studio/comments/90727-integration-with-teacommerce Hi,

Is it possible to integrate NewsletterStudio with Teacommerce, in order for it to send a discount code to new subscribers?

--

Best regards

Kurt Moskjaer Andersen

]]>
Kurt Moskjaer Andersen Thu, 22 Feb 2018 14:27:39 +00:00
Creating content with SignalR https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90725-creating-content-with-signalr https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90725-creating-content-with-signalr Hello,

Im trying to create content with signalR using the content service. When I run contentService.CreateContent, everything is fine.

When I want to save and publish the content using contentService.SaveAndPublish(content, 0, false) I get an error.

I guess it's because Umbraco is trying to raise the Publish event?

The content gets created and published but I still hit an exception.

Is there any way to fix this?

Message

Value cannot be null.
Parameter name: http

StackTrace

   at Umbraco.Core.Security.AuthenticationExtensions.GetCurrentIdentity(HttpContextBase http, Boolean authenticateRequestIfNotFound)
   at Umbraco.Web.Security.WebSecurity.GetUserId()
   at Umbraco.Web.Security.WebSecurity.get_CurrentUser()
   at Umbraco.Web.NotificationServiceExtensions.SendNotification(INotificationService service, IEnumerable`1 entities, IAction action, UmbracoContext umbracoContext, ApplicationContext applicationContext)
   at Umbraco.Web.NotificationServiceExtensions.SendNotification(INotificationService service, IEnumerable`1 entities, IAction action, UmbracoContext umbracoContext)
   at Umbraco.Web.NotificationServiceExtensions.SendNotification(INotificationService service, IEnumerable`1 entities, IAction action, ApplicationContext applicationContext)
   at Umbraco.Web.Strategies.NotificationsHandler.<>c__DisplayClass0_0.<ApplicationStarted>b__2(IContentService sender, SaveEventArgs`1 args)
   at Umbraco.Core.Events.TypedEventHandler`2.Invoke(TSender sender, TEventArgs e)
   at Umbraco.Core.Events.EventDefinition`2.RaiseEvent()
   at Umbraco.Core.Events.ScopeEventDispatcher.ScopeExitCompleted()
   at Umbraco.Core.Events.ScopeEventDispatcherBase.ScopeExit(Boolean completed)
   at Umbraco.Core.Scoping.Scope.<>c__DisplayClass70_0.<RobustExit>b__1()
   at Umbraco.Core.Scoping.Scope.TryFinally(Int32 index, Action[] actions)
   at Umbraco.Core.Scoping.Scope.TryFinally(Int32 index, Action[] actions)
   at Umbraco.Core.Scoping.Scope.RobustExit(Boolean completed, Boolean onException)
   at Umbraco.Core.Scoping.Scope.DisposeLastScope()
   at Umbraco.Core.Scoping.Scope.Dispose()
   at Umbraco.Core.Persistence.UnitOfWork.ScopeUnitOfWork.DisposeResources()
   at Umbraco.Core.DisposableObjectSlim.Dispose(Boolean disposing)
   at Umbraco.Core.DisposableObjectSlim.Dispose()
   at Umbraco.Core.Services.ContentService.SaveAndPublishDo(IContent content, Int32 userId, Boolean raiseEvents)
   at Umbraco.Core.Services.ContentService.Publish(IContent content, Int32 userId)
   at The_Crackers_MVC.Controllers.SupportHub.NewReply(SupportReply model) in C:\crackers\The-Crackers-              
   MVC\Controllers\SupportHub.cs:line 46
]]>
Christian Bruun Thu, 22 Feb 2018 13:42:40 +00:00
Cogworks Meganav v1.1.1 Help https://our.umbraco.org/forum/developing-packages/90724-cogworks-meganav-v111-help https://our.umbraco.org/forum/developing-packages/90724-cogworks-meganav-v111-help Hello, when I wrote for in the children items .Where(x => x.Content.IsVisible()) I get an error message.

Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 23: { Line 24:

Line 25: @foreach (var subMenu in item.Children.Where(x => x.Content.IsVisible())) Line 26: { Line 27: Source File: e:\Projects\Microsoft\devISKUR v7.8.1\umbISKUR-dev(v7.8.1)\Views\Partials\USNNavigation\USNMainNavigation.cshtml Line: 25

Where am I doing wrong? Can you help me? please.

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @using Umbraco.Web; @using Umbraco.Web.Models; @using Cogworks.Meganav.Models; @{ var navigationNodeID = Umbraco.TypedContent(1075); var test = navigationNodeID.GetPropertyValue("USNMainNavigation");

<ul class="nav navbar-nav pull-right">
    @foreach (var item in navigationNodeID.GetPropertyValue<IEnumerable<MeganavItem>>("USNMainNavigation"))
    {
        <li class="dropdown">
            <a href="@item.Url" target="@item.Target" id="@item.Id" class="nav-link"  data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">@item.Title <span class="caret"></span></a>

            @*@if (item.Children.Where(x => x.Content.GetProperty("isVisible")).Any())*@

            @if (item.Children.Any())
            {
                <ul class="dropdown-menu">
                    @foreach (var subMenu in item.Children.Where(x => x.Content.IsVisible()))
                    {                                
                        <li>
                            <a href="@subMenu.Url" class="nav-link">@subMenu.Title</a>
                        </li>
                    }
                </ul>
            }

        </li>

    }
</ul>

}

]]>
ibrahim TUNC Thu, 22 Feb 2018 13:01:09 +00:00
Indexing and searching multiple values under a single field https://our.umbraco.org/forum/using-umbraco-and-getting-started/90723-indexing-and-searching-multiple-values-under-a-single-field https://our.umbraco.org/forum/using-umbraco-and-getting-started/90723-indexing-and-searching-multiple-values-under-a-single-field I'm new to Umbraco and I'm trying to work out how to best build and query my index so that I can search for exact phrases. I have a Stack Overflow question active which gives more detail of what I'm trying to achieve:

https://stackoverflow.com/questions/48926859/umbraco-lucene-index-for-multiple-values-under-one-field

I think building a custom index from a Document (rather than an indexer implementing ISimpleDataService) might be the way I want to go, but I can't find any resources on how to do that within the context of Umbraco/Examine.

Any assistance would be very much appreciated!

]]>
Chris Townsend Thu, 22 Feb 2018 12:27:15 +00:00
Querying on a IEnumberable custom property https://our.umbraco.org/forum/templates-partial-views-and-macros/90722-querying-on-a-ienumberable-custom-property https://our.umbraco.org/forum/templates-partial-views-and-macros/90722-querying-on-a-ienumberable-custom-property Hello,

I am trying to create a simple query/filter based on categories. I need to work out how to query multinode tree picker properties or if I should be using Examine instead, its a small site - I expect no more than 50 nodes to query against.

I have category doc types stored at root

Categories
- Cat 1
- Cat 2

Article doctype has a multinode tree picker (alias = "newsCategory") to select categories.

I know the code below won't work, so any pointers on how to query a multinode treepicker proeprty?

var categoryId = 1142;
var items = Model.Children<NewsArticle>()
            Where(x => x.NewsCategory.Equals(categoryId));

Thanks Simon

]]>
Simon Thu, 22 Feb 2018 12:21:06 +00:00
Umbraco Website Migration for a Newbie https://our.umbraco.org/forum/umbraco-forms/90721-umbraco-website-migration-for-a-newbie https://our.umbraco.org/forum/umbraco-forms/90721-umbraco-website-migration-for-a-newbie Hi Umbraco Community

Wondering if anyone can help an Umbraco newbie here.

I'm a junior web designer and am familiar with servers, FTP etc, however never migrated an Umbraco site before.

I have all the files backed up in .ZIP file (including .bak file) and ready to transfer to the new server. Could you advise on the process to ensure a successful migration without breaking the live site?

Thanks in advance

Jay

]]>
Jay Mehar Thu, 22 Feb 2018 11:57:24 +00:00
reCaptcha on Umbraco https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90720-recaptcha-on-umbraco https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90720-recaptcha-on-umbraco Can anyone pitch in some simple guidance on adding reCaptcha to Umbraco. I am currently using basic Umbraco and don't have Umbraco Forms installed. Is it possible and if so can anyone provide clear simple steps on how to to achieve this?

]]>
Robert wood Thu, 22 Feb 2018 10:18:13 +00:00
MediaDialogue Opening Multiples Times https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90719-mediadialogue-opening-multiples-times https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90719-mediadialogue-opening-multiples-times Hi All

I'm using Umbraco 7.5.13 and I've come across an issue when creating a media picker in a custom section.

I've got multiple media picker links on a single page, and when I click each of these links it looks as though the media pickers are stacking on top of one another, rather than just opening a single one at a time. It's difficult to explain so I'll show some screenshots below and paste my code.

Select the first media picker link and it opens fine:

As you can see, it's fine.

Then I select the second link:

As you can see on the left side of the panel it looks as if it's overlayed

As you can see on the left side of the panel it looks as if it's overlayed

Finally here's the code:

        scope.mediaDialogue = function (subCategory) {
            scope.overlay = {
                currentTarget: null,
                onlyImages: false,
                showDetails: false,
                multiPicker: true,
                startNodeId: -1,
                disableFolderSelect: true,
                view: "mediapicker",
                show: true,
                submit: function (model) {
                    _.each(model.selectedImages, function (file) {
                          //fancy logic
                    });

                    scope.overlay.show = false;
                    scope.overlay = null;
                }
            };
        };

Any help would be appreciated!

]]>
Alex Brown Thu, 22 Feb 2018 09:47:16 +00:00
Umbracon ConnectionString in AWS Beanstalk https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90718-umbracon-connectionstring-in-aws-beanstalk https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90718-umbracon-connectionstring-in-aws-beanstalk Hi!

I'm currently working on a project where we plan to host Umbraco as a CMS in Amazon Beanstalk. We're planing on scripting the environment to be able to scale it, and it would be both comfortable and secure to not have the connectionstring to the Umbraco database in the web.config, but instead within the environment variables.

I had a look at this yesterday and I've found ways to programmatically change the web.config file, but this isn't something I'd really like to do., and in OnApplicationStart seems to be to late.

So, my question is if anyone of you know how I can manipulate how Umbraco reads the connectionstring?

]]>
Michaela Thu, 22 Feb 2018 07:30:10 +00:00
Inconsistent amount with custom order line calculator and Payment provider in finalized order when using Umbraco Member https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/90710-inconsistent-ammonout-with-custom-order-line-calculator-and-payment-provider-in-finalized-order https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/90710-inconsistent-ammonout-with-custom-order-line-calculator-and-payment-provider-in-finalized-order I've set up a custom order line calculator. It works perfectly fine and everything looks fine in the purchase flow. When using e.g. invoice it works aswell and the finalized order is updated correctly.

But when going trough a payment provider, in this case Bambora (epay), the finalized orders total amount is incorrect compared to the calculator. Bombora does collect the correct calculated price, just seems like something happens when it is calculated for the finalized order. So in backoffice I get this:

enter image description here

And the front end user sees the wrong price as well at the end of the purchase flow.

I'm guessing it is in the finalized order process something goes wrong, but a bit uncertain how to handle it. Am I missing a step for a custom calculator to work with a payment provider?

Just in case it helps, here is the code for the custom calculator, but as mentioned this part works as expected:

    [SuppressDependency("TeaCommerce.Api.PriceCalculators.IOrderLineCalculator", "TeaCommerce.Api")]
public class MemberOrderLineCalculator : OrderLineCalculator
{

    public MemberOrderLineCalculator(IVatGroupService vatGroupService, IProductInformationExtractor productInformationExtractor)
      : base(vatGroupService, productInformationExtractor)
    {
    }

    public override Price CalculatePrice(OrderLine orderLine, Currency currency, Order order)
    {
        decimal price;
        var originalPrice = orderLine.OriginalUnitPrices.Get(currency.Id).Value;

        var helper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current);
        var product = helper.TypedContent(orderLine.ProductIdentifier);
        var allowMemberPrice = product.GetPropertyValue<string>("memberPriceAuthorized", true).Split(',');
        var isMemberAuthorized = helper.MembershipHelper.IsMemberAuthorized(allowGroups: allowMemberPrice);

        if (product == null || !isMemberAuthorized)
            return new Price(originalPrice, orderLine.VatRate, currency);

        price = product.GetPropertyValue<decimal>("memberPriceDKR");

        if (price == 0)
            return new Price(originalPrice, orderLine.VatRate, currency);

        return new Price(price, orderLine.VatRate, currency);
    }
}

Best regards, Johnny.

]]>
Johnny Kristensen Wed, 21 Feb 2018 14:36:39 +00:00
Nuget: How to create Umbraco Document Types or Templates or nodes during installation? https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90706-nuget-how-to-create-umbraco-document-types-or-templates-or-nodes-during-installation https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90706-nuget-how-to-create-umbraco-document-types-or-templates-or-nodes-during-installation Hi, I already have a .nuspec file that install the package by copying files in Umbraco project dir.

But now I added a new feature that needs to create one document type, one template and two nodes during install.

How can I do that? I can change only the .nuspec file (how?) or I need to do something else (what?).

Thank you for the support

]]>
Adriano Fabri Wed, 21 Feb 2018 13:49:50 +00:00
Umbraco Backoffice Sign in Call https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90700-umbraco-backoffice-sign-in-call https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90700-umbraco-backoffice-sign-in-call Hi,

I would like to make a call to the same function that is called on clicking the backoffice sign in button. I am unsure what that would be, if anyone could let me know what I need to call or point me in the right direction please.

Thank you in advance.

]]>
James C Wed, 21 Feb 2018 11:33:25 +00:00
Cannot delete property from DocType https://our.umbraco.org/forum/using-umbraco-and-getting-started/90696-cannot-delete-property-from-doctype https://our.umbraco.org/forum/using-umbraco-and-getting-started/90696-cannot-delete-property-from-doctype Hi all,

I have a Document Type that is used by ~3000 nodes. I need to remove a textstring property from the Document Type but I keep getting an Execution Timeout Exception.

Execution Timeout Exception

The database was recently upgraded from 7.2 > 7.3 > 7.4 > 7.7 > 7.81 within one day, but everything else works fine - so I don't think that has anything to do with it.

Is there anyway I can remove the property via the database? Or increase the timeout to see if that fixes it?

Any help appreciated.

]]>
milkman matty Wed, 21 Feb 2018 06:40:07 +00:00
How to make umbraco multi language site? https://our.umbraco.org/forum/using-umbraco-and-getting-started/90693-how-to-make-umbraco-multi-language-site https://our.umbraco.org/forum/using-umbraco-and-getting-started/90693-how-to-make-umbraco-multi-language-site Hii.

Am new to umbraco , can anyone provide a nice and best way to make multi language site in umbraco???

You can suggest tutorials (working), suggestions, etc will be appreciated

Thanks.

]]>
Geofrey Wed, 21 Feb 2018 00:09:24 +00:00
Breadcrumbs https://our.umbraco.org/forum/templates-partial-views-and-macros/90687-breadcrumbs https://our.umbraco.org/forum/templates-partial-views-and-macros/90687-breadcrumbs Current breadcrumbs setup. This works great to pull in my breadcrums, but I need to show a primary domain on certain sites. So basically would be something like

If the site url is Primary.com show it in the breadcrumbs else do the below code. Is this possible and does it make sense. lol

@{
    foreach(var page in Model.Ancestors().Where("Visible").Where("level > 1"))
    { 
       <li><a href="@page.Url">@page.Name</a></li>
    }

}
]]>
Michael Findley Tue, 20 Feb 2018 19:35:03 +00:00
Can't get it to work - what am I missing https://our.umbraco.org/projects/backoffice-extensions/novaware-multilingual-tools/support-bugs/90683-cant-get-it-to-work-what-am-i-missing https://our.umbraco.org/projects/backoffice-extensions/novaware-multilingual-tools/support-bugs/90683-cant-get-it-to-work-what-am-i-missing Hi,

First of all, I want to say I am very excited about this package and decided to test it. I am trying to get it to work, but seem to have missed something.

Here's what I did: I added a second language in /settings/languages. I created a root note called sites I created 2 homepage nodes under the sites node I set specifically set the culture of 2 separate homepage nodes I installed the novaware multilingual tools package I added the actionbar property editor to the homepage document type

  1. if I go to either of the homepages in the backend I get : System.Data.SqlServerCe.SqlCeException: There was an error parsing the query. [ Token line number = 1,Token line offset = 11,Token in error = . ]
  2. if I go to the root not above them, the Action Bar renders, and shows english, but no add language button is available.

I am obviously missing something.

Tested on 7.7.12 as well as umbraco cloud (latest)

]]>
Davy Lowyck Tue, 20 Feb 2018 15:33:32 +00:00
Child pages image not display terrible ! https://our.umbraco.org/forum/templates-partial-views-and-macros/90680-child-pages-image-not-display-terrible https://our.umbraco.org/forum/templates-partial-views-and-macros/90680-child-pages-image-not-display-terrible i have 2 doctype articles main and articles item

and i have one partial view listarticlesinhomepage

now foreach loop work good but only display item url and name

when i write item.articlePhotos get errors

please help me :((

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage

@foreach (var child in Model.Content.AncestorOrSelf().Children.Where(c => c.DocumentTypeAlias.Equals("articlesMain"))) {

                        <div class="container marketing">

                        @if(child.Children.Any(x => x.DocumentTypeAlias.Equals("articlesItem")))
                        {

                            <div class="row">
                                @foreach(var page in child.Children.Where(p => p.DocumentTypeAlias.Equals("articlesItem")))
                                { 




                                    <div class="col-lg-4">


                                       <img src="@item.articlePhotos" /> <!--this line get error please help-->
                                        <h2>@page.Name</h2>
                                        <p><a class="btn btn-secondary" href="@page.Url" role="button">View details &raquo;</a></p>

                                    </div>
                                }
                                </div>

                        }
                        </div>

                }   
]]>
demo Tue, 20 Feb 2018 14:39:51 +00:00
New ApplicationUrl detected frequently with Umbraco 7.8.1 Multiple Domains https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90659-new-applicationurl-detected-frequently-with-umbraco-781-multiple-domains https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90659-new-applicationurl-detected-frequently-with-umbraco-781-multiple-domains We've got a single Umbraco instance running 7 Umbraco websites right now. I've recently upgraded to Umbraco 7.8.1 and in UmbracoTraceLog, I'm getting these log entries every time a URL is requested across all of our different websites.

 2018-02-19 12:08:26,168 [P10500/D13/T45] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.rocketfailover.com:443/umbraco
 2018-02-19 12:08:26,173 [P10500/D13/T45] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.thinix.com/umbraco (using web.routing/@umbracoApplicationUrl)
 2018-02-19 12:08:29,268 [P10500/D13/T16] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.rdiworks.com:443/umbraco
 2018-02-19 12:08:29,268 [P10500/D13/T16] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.thinix.com/umbraco (using web.routing/@umbracoApplicationUrl)
 2018-02-19 12:08:58,069 [P10500/D13/T58] INFO  umbraco.BusinessLogic.Log - Log scrubbed.  Removed all items older than 2018-02-18 12:08:58
 2018-02-19 12:09:01,624 [P10500/D13/T59] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.audioengineering.com:443/umbraco
 2018-02-19 12:09:01,631 [P10500/D13/T59] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.thinix.com/umbraco (using web.routing/@umbracoApplicationUrl)
 2018-02-19 12:09:02,146 [P10500/D13/T59] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred

My umbracoSettings.config with an explicit URL:

  <web.routing
    trySkipIisCustomErrors="true"
    internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false"
    umbracoApplicationUrl="https://www.thinix.com/umbraco" disableRedirectUrlTracking="true">
  </web.routing>

As you can see above, I've tried explicitly setting the umbracoApplicationUrl in umbracoSettings.config but that doesn't seem to help.

My umbracoSettings.config without an explicit URL:

  <web.routing
    trySkipIisCustomErrors="true"
    internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false"
    umbracoApplicationUrl="" disableRedirectUrlTracking="true">
  </web.routing>

Here's the UmbracoTraceLog without an explicit URL set:

 2018-02-19 11:00:02,761 [P10500/D2/T13] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.thinix.com:443/umbraco
 2018-02-19 11:00:02,761 [P10500/D2/T8] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.rdiworks.com:443/umbraco
 2018-02-19 11:00:02,763 [P10500/D2/T13] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.thinix.com:443/umbraco (UmbracoModule request)
 2018-02-19 11:00:02,763 [P10500/D2/T8] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.rdiworks.com:443/umbraco (UmbracoModule request)
 2018-02-19 11:00:03,027 [P10500/D2/T12] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.istatus.com:443/umbraco
 2018-02-19 11:00:03,028 [P10500/D2/T12] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.istatus.com:443/umbraco (UmbracoModule request)

Questions I have:

  • Does this constant flip-flopping of the ApplicationUrl have any performance impact?
  • Is this an issue I should care about?
  • If it does have a negative impact, is there a way to apply configuration file transformations to umbracoSettings.config for my staging and production environments (same way I do for web.config) so that I can specify explicit URLs for both environments?

Best, Chris

]]>
Chris Van Oort Mon, 19 Feb 2018 18:20:14 +00:00
System.ArgumentOutOfRangeException: Index must be within the bounds of the List. Parameter name: index https://our.umbraco.org/forum/umbraco-forms/90634-systemargumentoutofrangeexception-index-must-be-within-the-bounds-of-the-list-parameter-name-index https://our.umbraco.org/forum/umbraco-forms/90634-systemargumentoutofrangeexception-index-must-be-within-the-bounds-of-the-list-parameter-name-index When I am trying to create new content node by clicking 3 ellipses next to it, I am getting following exception . I do have ucondtion package installed

Stacktrace details

System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.Insert(Int32 index, T item)
   at uCondition.ConditionalPublicAccess.StartUp.ContentTreeController_MenuRendering(TreeControllerBase sender, MenuRenderingEventArgs e)
   at Umbraco.Web.Trees.TreeControllerBase.OnMenuRendering(TreeControllerBase instance, MenuRenderingEventArgs e)
   at Umbraco.Web.Trees.TreeControllerBase.GetMenu(String id, FormDataCollection queryStrings)
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
]]>
vijaya shivgand Sun, 18 Feb 2018 12:58:54 +00:00
Server Error on Contact page https://our.umbraco.org/forum/umbraco-forms/90629-server-error-on-contact-page https://our.umbraco.org/forum/umbraco-forms/90629-server-error-on-contact-page Hi, We are getting a Server Error in '/' Application. Runtime Error on our contact Us page when people try to submit their details.

Info:

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.

]]>
Victoria Parkinson Sat, 17 Feb 2018 12:48:08 +00:00
Empty editor dialog https://our.umbraco.org/projects/backoffice-extensions/stacked-content/stacked-content-feedback/90617-empty-editor-dialog https://our.umbraco.org/projects/backoffice-extensions/stacked-content/stacked-content-feedback/90617-empty-editor-dialog Hello

Serious issue with Stacked content and Umbraco 7.8.1,

enter image description here

]]>
Alex Skrypnyk Fri, 16 Feb 2018 14:24:10 +00:00
RecordImportingEventHandler has null as 'sender' https://our.umbraco.org/projects/developer-tools/cmsimport/bugs/90605-recordimportingeventhandler-has-null-as-sender https://our.umbraco.org/projects/developer-tools/cmsimport/bugs/90605-recordimportingeventhandler-has-null-as-sender Hello,

We have updated CMSImport package from v3.5.3 to v3.7.4 and we got the issue during "RecordImporting" Event. The sender comes as "null" enter image description here

We are using it quite active there. Was it removed deliberately, because I haven't found anything of the sort in the Release Notes?

Thank you

]]>
Gambit Fri, 16 Feb 2018 08:15:47 +00:00
MemberService.GetByUsername does not appear in IMemberService https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90594-memberservicegetbyusername-does-not-appear-in-imemberservice https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90594-memberservicegetbyusername-does-not-appear-in-imemberservice When I try and use the following:

ApplicationContext.Current.Services.MemberService.GetByUsername("username").

I'm receiving the following error?

Umbraco.Core.Services.IMemberService' does not contain a definition for 'GetByUsername'

Does anyone have any ideas what could be causing this.

Thanks J

]]>
Josh G Thu, 15 Feb 2018 16:32:34 +00:00
Upgrade from 7.7.11 to 7.8.X database missing keys FK_cmsMedia_cmsContent_nodeId https://our.umbraco.org/forum/using-umbraco-and-getting-started/90585-upgrade-from-7711-to-78x-database-missing-keys-fk_cmsmedia_cmscontent_nodeid https://our.umbraco.org/forum/using-umbraco-and-getting-started/90585-upgrade-from-7711-to-78x-database-missing-keys-fk_cmsmedia_cmscontent_nodeid When I upgrade (Nuget) from version 7.7.11 to 7.8.# I get an Error during installation. The database is in an earlier stage moved via script but I haven't had any problems with that before.

The database failed to upgrade. ERROR: The database configuration failed with the following message: There are no primary or candidate keys in the referenced table 'cmsContent' that match the referencing column list in the foreign key 'FK_cmsMedia_cmsContent_nodeId'. Could not create constraint or index.

]]>
Robbie van den Hoven Thu, 15 Feb 2018 14:25:19 +00:00
Umbraco upgrade : Site just showing up "The website is restarting" message https://our.umbraco.org/forum/using-umbraco-and-getting-started/90478-umbraco-upgrade-site-just-showing-up-the-website-is-restarting-message https://our.umbraco.org/forum/using-umbraco-and-getting-started/90478-umbraco-upgrade-site-just-showing-up-the-website-is-restarting-message I upgraded Umbraco from v.6.1.6 to v.6.2.0. Republished all content. Deleted files/folder from TEMP folder.

Now, Umbraco is working fine, but wen I go tot the actual website, its just showing up "The website is restarting" message. I waited long time but no luck.

I checked the log and see a warning saying "Umbraco is not ready".

Any help on this issue is appreciated.


2018-02-08 14:37:56,299 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 10] Umbraco is not ready
2018-02-08 14:37:56,366 [34] INFO  umbraco.content - [Thread 18] Loading content from disk cache...
2018-02-08 14:38:18,206 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 11] Umbraco is not ready
2018-02-08 14:38:18,694 [34] INFO  Umbraco.Core.PluginManager - [Thread 15] Starting resolution types of Umbraco.Core.Persistence.Mappers.BaseMapper
2018-02-08 14:38:18,725 [34] INFO  Umbraco.Core.PluginManager - [Thread 15] Completed resolution of types of Umbraco.Core.Persistence.Mappers.BaseMapper, found 20 (took 31ms)
2018-02-08 14:38:39,201 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 19] Umbraco is not ready
2018-02-08 14:39:00,204 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 11] Umbraco is not ready
2018-02-08 14:39:21,205 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 11] Umbraco is not ready
2018-02-08 14:39:42,319 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 18] Umbraco is not ready
2018-02-08 14:40:03,202 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 18] Umbraco is not ready
2018-02-08 14:40:26,231 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 11] Umbraco is not ready
2018-02-08 14:40:47,240 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 11] Umbraco is not ready
2018-02-08 14:41:08,296 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 35] Umbraco is not ready
2018-02-08 14:41:29,198 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 33] Umbraco is not ready
2018-02-08 14:41:50,220 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 29] Umbraco is not ready
2018-02-08 14:42:11,216 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 33] Umbraco is not ready
2018-02-08 14:42:32,213 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 29] Umbraco is not ready
2018-02-08 14:42:53,213 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 18] Umbraco is not ready
2018-02-08 14:43:14,207 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 37] Umbraco is not ready
2018-02-08 14:43:35,203 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 32] Umbraco is not ready
2018-02-08 14:43:57,302 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 18] Umbraco is not ready
2018-02-08 14:44:18,206 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 35] Umbraco is not ready
2018-02-08 14:44:39,208 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 37] Umbraco is not ready
2018-02-08 14:45:00,204 [34] WARN  Umbraco.Web.UmbracoModule - [Thread 35] Umbraco is not ready
]]>
Tom Thu, 08 Feb 2018 03:46:18 +00:00
Umbraco OAuth Members Authentication via API https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90440-umbraco-oauth-members-authentication-via-api https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/90440-umbraco-oauth-members-authentication-via-api Hi I am trying to use a web api solution that hooks into Umbraco that is a separate solution to the Umbraco web application portal.

I am also trying to use OAuth Refresh Tokens for Member authentication for my mobile apps.

I have the refresh token system working using the web portal, but I am unable to get it working using the API solution.

I am using the solution supplied by Shannon in the following forum post https://our.umbraco.org/forum/developers/api-questions/74807-securing-a-custom-api-controller-with-oauth-plus-members

The issue I get with the API is that the member user manager being resolved is always null.

Do I need to have Umbraco installed in the API solution or will UmbracoCMS.core be sufficient?

Any help is greatly appreciated. David

]]>
David McDonnell Tue, 06 Feb 2018 16:10:07 +00:00
Event detail page 404s https://our.umbraco.org/projects/backoffice-extensions/eventcalendar/support-v3plus/90396-event-detail-page-404s https://our.umbraco.org/projects/backoffice-extensions/eventcalendar/support-v3plus/90396-event-detail-page-404s I've set up a test event on my site and a calendar page which shows the event. Under the event calendar page I've added an event detail page of type ECEventDetails.

When I click on the event in the calendar I'm just taken to a 404 page. I've tried using the page name as event so that the url is then /event. I've also tried using a different name and updating event_details_url in the ECCalendar view. Neither of these has worked.

I'm using Umbraco 7.7.9.

]]>
Richard Thompson Fri, 02 Feb 2018 16:23:15 +00:00
Testing with Umbraco and TypedContent https://our.umbraco.org/forum/using-umbraco-and-getting-started/90330-testing-with-umbraco-and-typedcontent https://our.umbraco.org/forum/using-umbraco-and-getting-started/90330-testing-with-umbraco-and-typedcontent Hi everyone,

I'm hoping that someone here can give me a helping hand. We have started to expand the number of tests in our products which is based off Umbraco, and for this reason we of cause want to test as much as possible with automated unit tests.

For starters we have take some inspiration from this blog post: http://blog.aabech.no/archive/the-basics-of-unit-testing-umbraco/

However while this solves some of the problems that we had encountered with testing, we still have one glaring problem.

How can we fake the results from the UmbracoHelper.TypedContent & TypedMedia?

]]>
Daniel B Christensen Tue, 30 Jan 2018 17:20:35 +00:00
Consistently getting "Error could not load url" https://our.umbraco.org/projects/website-utilities/seo-checker/bugs/90075-consistently-getting-error-could-not-load-url https://our.umbraco.org/projects/website-utilities/seo-checker/bugs/90075-consistently-getting-error-could-not-load-url We are consistently getting this error for a few nodes ({ID}.aspx). When we checked those nodes the SEOChecker properties does not show any errors and the pages for those nodes can be viewed on the front-end without errors. as well. The log does not show any other hint what's causing that error for those nodes - there are no other errors except what we reported here. We are using 1.10.2 on Umbraco 7.7.6.

ERROR SEOChecker.Core.Helpers.Request - SEOChecker: Error could not load url https://{domain}/{ID}.aspx 
System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at SEOChecker.Core.Helpers.Request.GetStream(String url, HttpCookieCollection cookies, String userAgent)
]]>
von Tue, 16 Jan 2018 03:36:46 +00:00
Blank editor pane https://our.umbraco.org/projects/backoffice-extensions/stacked-content/stacked-content-feedback/89975-blank-editor-pane https://our.umbraco.org/projects/backoffice-extensions/stacked-content/stacked-content-feedback/89975-blank-editor-pane Bit of an odd, and annoying one.

Had setup Stacked Content on a site (running on 7.8beta), and all was working fine. I had configured the previews, added a bunch of content and all was well in Umbraco land.

Have come back to the site today and for some reason the editor pane (right hand panel) isn't displaying the editor fields at all, it just comes up blank.

Image showing empty pane

With the previews turned on, the content previews fine in the back office, just no way to edit what is there.

I have checked the console and not getting any error messages there, the network panel doesn't show any failed requests, neither do the Umbraco logs.

So far I have

  1. Deleted the Cache and Temp files.
  2. Copied over the App_Plugins files and the dll's from a working site
  3. Created a new Data Type using stacked content
  4. Cried into my tea

Out of ideas with what to look for next, any suggestions?

]]>
Anthony Chudley Tue, 09 Jan 2018 15:45:36 +00:00
Umbraco Migration process: Error with MigrationBase class https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/89916-umbraco-migration-process-error-with-migrationbase-class https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/89916-umbraco-migration-process-error-with-migrationbase-class Hi, I am using the 7.7.7 version and I wanted to add columns for one of my custom tables in my Umbraco project. As I did that before in 7.6.8, I copy the code I have:

 public class TestFeatureMigration : MigrationBase
{
    public TestFeatureMigration (ISqlSyntaxProvider sqlSyntax, ILogger logger) : base(sqlSyntax, logger)
    {

    }

    public override void Down()
    {
        Delete.FromTable("table1").Row("row1");
    }

    public override void Up()
    {
        Alter.Table("table1").AddColumn("row1").AsInt32().Nullable();
    }
}

And when I call this class using an ApplicationEventHandler, I get this weird exception:

Logger: Umbraco.Core.PluginManager

Error creating type TestFeatureMigration System.MissingMethodException: No parameterless constructor defined for this object.

So it's a reflection issue and umbraco is expecting an empty constructor for TestFeatureMigration. The problem is that MigrationBase is requesting a constructor with those parameters.

Is it a breaking change between 7.6 and 7.7 ? Am I using MigrationBase wrong ?

]]>
Giu Thu, 04 Jan 2018 13:24:41 +00:00
Stuck on Forms validation error https://our.umbraco.org/forum/umbraco-forms/89551-stuck-on-forms-validation-error https://our.umbraco.org/forum/umbraco-forms/89551-stuck-on-forms-validation-error I am getting the following exception on in my form UI:

umbracoforms-conditions.js:64 Uncaught TypeError: Cannot read property 'split' of undefined
    at Is (umbracoforms-conditions.js:64)
    at evaluateRuleInstance (umbracoforms-conditions.js:127)
    at evaluateRule (umbracoforms-conditions.js:139)
    at evaluateCondition (umbracoforms-conditions.js:188)
    at evaluateConditionVisibility (umbracoforms-conditions.js:207)
    at isVisible (umbracoforms-conditions.js:215)
    at handleCondition (umbracoforms-conditions.js:221)
    at Object._this.run (umbracoforms-conditions.js:230)
    at Object._this.watch (umbracoforms-conditions.js:110)
    at registration?recordId=dfb01b13-fada-492e-b600-3cf09bd14f41:1040

It looks like value.split(','); is failing in umbracoforms-conditions.js:64 because the value is null.

Any idea what's causing this?

The URL is fee-dev.org/events/young-scholars-colloquium/registration?recordId=dfb01b13-fada-492e-b600-3cf09bd14f41

enter image description here

]]>
David Veksler Mon, 04 Dec 2017 17:52:51 +00:00
How to render a 2nd level for MegaNav with Models Builder https://our.umbraco.org/forum/templates-partial-views-and-macros/89522-how-to-render-a-2nd-level-for-meganav-with-models-builder https://our.umbraco.org/forum/templates-partial-views-and-macros/89522-how-to-render-a-2nd-level-for-meganav-with-models-builder The following code works for me in rendering a single level mega menu with Models Builder...

    @{
        if (Model.HasValue("MytopNav"))
        {
            <ul>
                @foreach (var item in Model.MytopNav)
                {
                    <li class="dropdown">
                    @item.Title
                      @*check for child links here*@
                    </li>
                }
            </ul>
        }
    } 

But if any of my parent level li's have child links, how do I check for that and add it to this logic?

]]>
blackhawk Fri, 01 Dec 2017 23:54:29 +00:00
GetSections error after upgrade to 7.7.3 https://our.umbraco.org/forum/using-umbraco-and-getting-started/88771-getsections-error-after-upgrade-to-773 https://our.umbraco.org/forum/using-umbraco-and-getting-started/88771-getsections-error-after-upgrade-to-773 I upgraded my Umbraco 7.6.10 installation to Umbraco 7.7.3, but when I try to login to the CMS, I get this error on the console:

"/umbraco/backoffice/UmbracoApi/Section/GetSections 500 (Internal Server Error)' and the menu inside the backoffice does not load:

enter image description here

There's also an error on the Log:

---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at Umbraco.Web.Trees.LegacyTreeDataConverter.ConvertFromLegacy(String parentId, XmlTreeNode xmlTreeNode, UrlHelper urlHelper, String currentSection, FormDataCollection currentQueryStrings, Boolean isRoot)
   at Umbraco.Web.Trees.LegacyTreeDataConverter.ConvertFromLegacy(String parentId, XmlTree xmlTree, UrlHelper urlHelper, String currentSection, FormDataCollection currentQueryStrings)
   at Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromLegacyTree(ApplicationTree appTree, String id, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection)
   at Umbraco.Web.Trees.ApplicationTreeController.<GetRootForSingleAppTree>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Umbraco.Web.Trees.ApplicationTreeController.<GetApplicationTrees>d__0.MoveNext()<---
]]>
Francielle Wed, 18 Oct 2017 19:09:09 +00:00
Mobile Application: OAuth2 autentication for umbraco members. How to? https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/82423-mobile-application-oauth2-autentication-for-umbraco-members https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/82423-mobile-application-oauth2-autentication-for-umbraco-members Hi,

I've do a mobile application ( xamarin ) and Umbraco as content container and member manager. Each member can use its social login to login or register from the mobile app.

How to use OAuth2 with Umbraco 7.5.x?

I've already configure Umbraco with Identity ( https://github.com/Shazwazza/UmbracoIdentity ) and works.

]]>
Biagio Paruolo Thu, 19 Jan 2017 23:01:16 +00:00
Are there any demo of FastTrack? https://our.umbraco.org/projects/collaboration/merchello/merchello/78850-are-there-any-demo-of-fasttrack https://our.umbraco.org/projects/collaboration/merchello/merchello/78850-are-there-any-demo-of-fasttrack Hi Guys,

Are there any demo out there online of the FastTrack?

]]>
Simon Fri, 22 Jul 2016 15:10:30 +00:00
Disable Umbraco Upgrade Notification in V7 https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/59853-Disable-Umbraco-Upgrade-Notification-in-V7 https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/59853-Disable-Umbraco-Upgrade-Notification-in-V7 Hi,

Where has this setting moved to in V7? The old setting that was in webconfig is no longer there.

Thanks in advance.

Cheers

]]>
David Whiteford Wed, 17 Dec 2014 12:01:05 +00:00
Can I change created date? https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/56716-Can-I-change-created-date https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/56716-Can-I-change-created-date We are moving a non-Umbraco site to a new Umbraco site and we'de like to update the created date to match the created date from the original cms. Is this possible? Otherwise our entire news archive will be more or less wrong.

]]>
Peter S Thu, 18 Sep 2014 13:37:02 +00:00
Shipping method issue https://our.umbraco.org/projects/collaboration/merchello/merchello/54596-Shipping-method-issue https://our.umbraco.org/projects/collaboration/merchello/merchello/54596-Shipping-method-issue I am using the (kitten) example site from version 1.1 for building my site, but using the version 1.2 code.  I'm trying to reproduce the single page checkout so this was just easier.  Even though I have a shipping provider set up in the backoffice, I can not get it to show on the site (in the checkout process).  I've come across some errors in the log file:

ERROR Merchello.Core.Strategies.Packaging.ShippableProductVisitor - [Thread 347] ProductVariant marked as shippable was not assoicated with a WarehouseCatalog.  Product was: 7c4c4b0a-6d8a-47ad-9ef0-d90b120a88d3 -  WRJ Rhinestone Hoodie - S   System.IO.InvalidDataException: Found invalid data while decoding.

ERROR Merchello.Core.Gateways.Shipping.ShippingGatewayProviderBase - [Thread 347] ShipMethods could not be determined for Shipment passed to GetAvailableShipMethodsForDestination method. Validator returned: ErrorNoCatalogFound   System.ArgumentException: merchWarehouseCatalogKey

ERROR Merchello.Core.Gateways.Shipping.ShippingGatewayProviderBase - [Thread 347] ShipMethods could not be determined for Shipment passed to GetAvailableShipMethodsForDestination method. Attempt message: No CatalogKeys found in Shipment Items   System.ArgumentException: merchWarehouseCatalogKey

I tried to debug the issue and the only thing that I could seem to find that wasn't working correctly was in the file - \src\Merchello.Core\Strategies\Packaging\DefaultWarehousePackagingStrategy.cs.  In line 66 it is requesting "variant.CatalogInventories" but it is always coming out as null.  I also noticed a comparison that wasn't working 3 lines before it:

var variant = variants.FirstOrDefault(x => x.Key.Equals(lineItem.ExtendedData.GetProductVariantKey()));.

In the debugger, I could see that the 2 guids being compared were different. x.Key was getting set to the ProductAttribute (DB table) primary key, and the lineItem.ExtendedData.GetProductVariantKey() was getting the ProductVariant (DB table) primary key.

Has anyone come across any of those 3 errors, or have any idea how to get this shipping provider options working?

Thanks!

]]>
Ryan.Rueckl Wed, 16 Jul 2014 23:59:37 +00:00
Keeps adding extra p and br tags https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/50458-Keeps-adding-extra-p-and-br-tags https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/50458-Keeps-adding-extra-p-and-br-tags If I go into a content item and just click around on things and save and publish several times, Umbraco adds a <p><br /><br /></p> in the bodyText property, below existing content. It forces the bottom of the containing div to enlarge and looks bad. I've gone in and deleted them a number of time but they keep coming back. It usually takes more than one attempt at deleting to get rid of them, I assume because it's trying to add more while saving/publishing.

Any ideas why this would happen and how to stop it?

]]>
Matthew Wed, 30 Apr 2014 21:55:37 +00:00