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

UmbracoApiController: beginner help

$
0
0

My controller never gets reached. I am new at MVC so i need a little help.

I have created a Controller under : App_Code > Controllers. Its called ''LoginApiController''

I have a angular script, thas calls the Controller

I have a Partial View for the html.

But i never reach the controller.

Controller

using System.Linq; using System.Net.Mail; using System.Web; using System.Web.Mvc; using Umbraco.Web.WebApi;

namespace MyNameSpace {

public class LoginApiController : UmbracoApiController { [HttpPost] public bool Send(LoginFormModel model) { var CustomerID = model.CustomerID; var Password = model.Password; return true; } }

public class LoginFormModel
{
    public string CustomerID { get; set; }

    public string Password { get; set; }

}

}

Angular

app.controller("LoginCtrl", function ($scope, $http) {


$scope.CustomerID = '';
$scope.Password = '';


$scope.send = function () {
    if ($scope.loginForm.$valid) {
        var data = { CustomerID: $scope.CustomerID, Password: $scope.Password };

        $http({ method: 'POST', url: '/umbraco/api/LoginApi/Send/', data: data }).success(function (data) {});



    }
}

});

View

<form novalidate ng-submit="send()" name="loginForm" ng-controller="LoginCtrl">
            <fieldset>
                <div class="row">
                    <div class="col-s-6">
                        <label for="txtName">@Umbraco.Field("#Customer_name", altFieldAlias: "Customer ID"):</label>
                        <input ng-model="txtCustomerID" type="text" id="txtCustomerID" value="" required placeholder="@Umbraco.Field(" #Customer_name", altFieldAlias "Customer ID" )">
                        <label for="txtName">@Umbraco.Field("#Password", altFieldAlias: "Password"):</label>
                        <input ng-model="Password" type="password" id="txtPassword" value="" required placeholder="@Umbraco.Field(" #Password", altFieldAlias "Password" )">
                    </div>
                </div>
            </fieldset>
            <div class="form-actions">
                <input type="submit" class="btn" value="@Umbraco.Field(" #Login", altFieldAlias "Login" )" />

            </div>
        </form>

Unable to login in to the CMS post v7.7.1 upgrade

$
0
0

I have recently (yesterday) upgraded an Umbraco v7.6.3 site to v7.7.1.

After upgrading, I handled file updates and differences using my favourite merge tools.

Everything was good in the world, I made numerous content edits, and implemented some new front-end features.

Then! This afternoon, everything stopped working ;-)

When I access the backoffice, I now get the following error:

angular.min.js?cdv=447108436:29 Uncaught Error: Unknown provider: queryStringsProvider <- queryStrings <- umbracoRequestInterceptor <- $http <- umbRequestHelper <- mediaHelper

at angular.min.js?cdv=447108436:29
at Object.c [as get] (angular.min.js?cdv=447108436:27)
at angular.min.js?cdv=447108436:30
at c (angular.min.js?cdv=447108436:27)
at Object.d [as invoke] (angular.min.js?cdv=447108436:27)
at angular.min.js?cdv=447108436:30
at Object.c [as get] (angular.min.js?cdv=447108436:27)
at angular.min.js?cdv=447108436:102
at Array.forEach (<anonymous>)
at n (angular.min.js?cdv=447108436:6)

If I update the debugger to break on all errors, I see the following error before the above:

No module: ngLocale

I've tried:

  • Rebuilding
  • Killing IIS
  • Updating Client Dependancy

Has anyone else seen this? Or perhaps knows what this smells like?

I deployed a release yesturday which was tested and working, and this is now also not working. So, it's all rather strange!

My most many thanks! Laurie

Page URL issues

$
0
0

I have an issue where I have created sub pages for a particular section within my web site. I have basically 2 sites in one. Below is how I have things setup currently under content. This is a representation of the tree menu.

Site1 (this is will be the root of the site "domain.com/" )
  - Child 1
     - Child 1.1
   - Child 1.2
  - Child 2
     - Child 2.1
     - Child 2.2

Site2 (this is will be the secondary site "domain.com/Site2" )
  - Child 1
     - Child 1.1
   - Child 1.2
  - Child 2
     - Child 2.1
     - Child 2.2

What I am trying to do is have the links for site2 to look like this:
domain.com/Site2/Child1/child1.1 domain.com/Site2/Child1/child1.2

domain.com/Site2/Child2/child2 domain.com/Site2/Child1/child2.1

How to add reply-to & bcc functionality to umbraco forms

$
0
0

Hi,

I'm needed to add a reply-to field & a bcc field to umbraco forms. I've created a custom workflow which is an extension of the "Send Email".

https://pastebin.com/SnfmDrSf

Simply create a new file in your app_code folder (can call it anything) say SendEmailExtended.cshtml

Go into umbraco forms and create a workflow! easy as that..

using System;
using System.Net.Mail;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Mvc;
using System.Xml;
using System.Xml.XPath;
using Umbraco.Forms.Core;
using Umbraco.Forms.Core.Attributes;
using Umbraco.Forms.Core.Enums;
using Umbraco.Forms.Data.Storage;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contour.SharedSource.Providers.WorkflowTypes
{
public class SendEmailExtended : WorkflowType
{
    [Umbraco.Forms.Core.Attributes.Setting("Email", description = "Enter the receiver email", view = "TextField")]
    public string Email { get; set; }

    [Umbraco.Forms.Core.Attributes.Setting("SenderEmail", description = "Enter the sender email (if blank it will use the settings from /config/umbracosettings.config)", view = "TextField")]
    public string SenderEmail { get; set; }

    [Umbraco.Forms.Core.Attributes.Setting("BCC", description = "Enter a BCC email address", view = "TextField")]
    public string BCC { get; set; }

    [Umbraco.Forms.Core.Attributes.Setting("Reply To", description = "Enter a Reply-To email address", view = "TextField")]
    public string replyTo { get; set; }

    [Umbraco.Forms.Core.Attributes.Setting("Subject", description = "Enter the subject", view = "TextField")]
    public string Subject { get; set; }

    [Umbraco.Forms.Core.Attributes.Setting("Message", description = "Enter the intro message",  view = "TextArea" )]
    public string Message { get; set; }


    public SendEmailExtended()
    {
        this.Id = new Guid("FC92552F-4063-4CC2-ACC9-B1DF7EEA151A");
        this.Name = "Send Email Extended";
        this.Description = "An extenstion of send email with functionality to BCC & Reply-To";
        this.Icon = "icon-message";
    }

    public override List<Exception> ValidateSettings()
    {
        List<Exception> l = new List<Exception>();
        if (string.IsNullOrEmpty(Email))
            l.Add(new Exception("'Email' setting not filled out'"));

        if (string.IsNullOrEmpty(Message))
            l.Add(new Exception("'Message' setting not filled out'"));


        return l;
    }

    public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
    {
        System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage();
        m.From = new System.Net.Mail.MailAddress(umbraco.UmbracoSettings.NotificationEmailSender);
        m.Subject = Subject;
        m.IsBodyHtml = true;

        // ATTACH EMAIL ADDRESS'
        if (Email.Contains(';'))
        {
            string[] emails = Email.Split(';');
            foreach (string email in emails)
            {
                m.To.Add(email.Trim());
            }
        }else{
            m.To.Add(Email);
        }

        // ATTACH BCC ADDRESS'
        if (!string.IsNullOrEmpty(BCC)) { m.Bcc.Add(BCC); }

        // ATTACH REPLY TO ADDRESS'
        if (!string.IsNullOrEmpty(replyTo)) { m.ReplyToList.Add(replyTo); }

        /*RecordsViewer viewer = new RecordsViewer();
        XmlNode xml = viewer.GetSingleXmlRecord(record, new System.Xml.XmlDocument());*/

        var xml = record.ToXml(new System.Xml.XmlDocument());
        XPathNavigator navigator = xml.CreateNavigator();

        XPathExpression selectExpression = navigator.Compile("//fields/child::*");
        selectExpression.AddSort("@pageindex", XmlSortOrder.Ascending, XmlCaseOrder.None, "", XmlDataType.Number);
        selectExpression.AddSort("@fieldsetindex", XmlSortOrder.Ascending, XmlCaseOrder.None, "", XmlDataType.Number);
        selectExpression.AddSort("@sortorder", XmlSortOrder.Ascending, XmlCaseOrder.None, "", XmlDataType.Number);

        XPathNodeIterator nodeIterator = navigator.Select(selectExpression);

        string list = "<dl>";

        while( nodeIterator.MoveNext() ){

            list += "<dt><strong>" + nodeIterator.Current.SelectSingleNode("caption").Value + ": </strong><dt><dd>";

            XPathNodeIterator values = nodeIterator.Current.Select(".//value");

            while(values.MoveNext())
                list += values.Current.Value.Trim() + "<br/>";

            list += "</dd>";

        }

        list += "</dl>";

        m.Body = "<p>" + Message + "</p>" + list;

        System.Net.Mail.SmtpClient s = new System.Net.Mail.SmtpClient();

        s.Send(m);

        return WorkflowExecutionStatus.Completed;
    }
}
}

Cheers, Hayden

Modifying content options

$
0
0

I've been trying to work out how to do this myself from scratch for a while now, but I just can't work it out. Hopefully someone can point out what I'm missing - please!

In the new default starter kit/template for 7.71, which is how we should be doing things it seems, the way to add all page content seems to be under the one grid option/document type. There are three grid layouts by default in the template - single row, half and half, and 'equal three' (testimonials). Within each area of these options, you can add content into that area.

My question is - how/where do you set the content options? I use this example as each of the row configurations gives different available options, as in the options differ depending on which row option you choose, as displayed here: Three different content options for available configurations

I actually quite like this setup, as long as I can set the options to include partial views for different layouts/setups.

I have used a template from uSkinned, which does things another way that I really like, but I also haven't been able to work out exactly where I can set the options to appear in the backoffice like this:

Different way of giving content options in back office.  How??

Can anyone point out what I'm missing please? I know that each of these options is a partial view, and I know some elements of how things are handled, but actually getting this pane to open and choosing which elements show up like they do here, I can't work it out.

I'd like to setup my own template/'starter kit' for my own use, but this last hurdle is killing me! Thanks for any help guys.

Cheers.

Merchello 2.1 Collection: new collection not listed into catalog

$
0
0

Hi,

I installed the new Fasttrack "template".

I create a new collection "Stampanti" etc, but it's not listed into catalog. I see only t-shirt collections. Why?

enter image description here

Setting/modifying content options in backoffice from default 7.7 template

$
0
0

I've been trying to work out how to do this myself from scratch for a while now, but I just can't work it out. Hopefully someone can point out what I'm missing - please!

In the new default starter kit/template for 7.71, which is how we should be doing things it seems, the way to add all page content seems to be under the one grid option/document type. There are three grid layouts by default in the template - single row, half and half, and 'equal three' (testimonials). Within each area of these options, you can add content into that area.

My question is - how/where do you set the content options? I use this example as each of the row configurations gives different available options, as in the options differ depending on which row option you choose, as displayed here: Three different content options for available configurations

I actually quite like this setup, as long as I can set the options to include partial views for different layouts/setups.

I have used a template from uSkinned, which does things another way that I really like, but I also haven't been able to work out exactly where I can set the options to appear in the backoffice like this:

Different way of giving content options in back office.  How??

Can anyone point out what I'm missing please? I know that each of these options is a partial view, and I know some elements of how things are handled, but actually getting this pane to open and choosing which elements show up like they do here, I can't work it out.

I'd like to setup my own template/'starter kit' for my own use, but this last hurdle is killing me! Thanks for any help guys.

Cheers.

Trigger "On approve" workflows from "On submit" workflow

$
0
0

I have the following code in a custom WorkflowType for changing record state from Submitted to Approved.

FormStorage fs = new FormStorage();
Form f = fs.GetForm(record.Form);
RecordStorage rs = new RecordStorage();

record.State = FormState.Approved;

rs.UpdateRecord(record, f);

fs.Dispose();
rs.Dispose();

This works as expected - however it does not trigger the defined workflows for the "On approve"-event. How do I solve this problem in Umbraco Forms v4.3.3? I am able to trigger the workflows manually from the Umbraco back-end, but not from my WorkflowType-code.


Nesting Archetype with partial views

$
0
0

Hi all,

I'm new with Archetype and I can't figure out how to nest them. I want to build a "widget" based website where the client can add these "widgets" so he can build his own pages.

This is what I did:

  1. I created a new data type called Slider, I chose Archetype as my property editor (obviously). I added one fieldset and in the properties section I added a text string

  2. I created a new data type called Page builder. In this data type I added multiple fieldsets (Header, Text and Slider).

  3. I created a new document type named Generic page where I added the Page builder

In my GenericPage.cshtml I have the following code:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using Archetype.Extensions
@using Archetype.Models

@{
    Layout = "_Layout.cshtml";

    var fieldsets = Model.Content.GetPropertyValue<ArchetypeModel>("modules");
}


@Html.RenderArchetypePartials(fieldsets, "~/Views/Partials/Archetype/")

The header and text renders perfectly but my slider isn't. How can I render the nested archetype data type?

In my slider.cshtml I added the following code:

<section class="slider">
    @foreach (var fieldset in Model.Content.GetPropertyValue<ArchetypeModel>("sliderItem"))
    {
        <h1>@fieldset.slideTitle</h1>
    }
</section>

I hope this make sence and you guys can help me out.

Ucommerce is not working in a fresh Umbraco install

$
0
0

Hi

Ucommerce is not working in a fresh Umbraco install. I have now tried all possible install scenarios using Nuget, zip file for both Umbraco and Ucommerce but no luck, using the newest versions.

I have tried using two different laptops but get the same error.

This is the error i get when clicking on Ucommerce section in Umbraco when installing ucommerce in a fresh umbraco install: enter image description here

The underlying connection was closed: An unexpected error occurred on a send.

$
0
0

Firstly, let me apologise for my lack of knowledge. I am reasonably new to .Net and the wonders of Umbraco.

I have two Umbraco websites setup, one production one staging, before go live these sites were syncing with courier as expected and all was well.

Once the production site was moved live and beyond the business firewall the syncing function has stopped working, I think it might be something to do with the SSL, but as I said .. a noob.

Here is the error I now get:

Application Error The underlying connection was closed: An unexpected error occurred on a send. Error details

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.CloseSession(String sessionKey) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.Dispose(Boolean disposing) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.Dispose() at Umbraco.Courier.Core.Repository.Dispose(Boolean disposing) at Umbraco.Courier.Core.Repository.Dispose() at Umbraco.Courier.UI.Dialogs.CommitItem.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) An existing connection was forcibly closed by the remote host

System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

It is with Umbraco 7.2.1 & Courier 2.51.4

Any thoughts or testing ideas greatly appreciated.

Thanks

J


2016/04/13 Update - It looks like it might be a problem with the SSL certificate on the server that recently upgraded to TLS/SSL1.2 and therefore courier is not able to communicate with itself. Any thoughts along that process would be helpful, but I will update with any solutions.

Clearing cache correctly, updating changes

$
0
0

To be honest, I've no idea how Umbraco handles clearing its cache. I'm currently developing a property editor, and I'd like to see the result of my changes in the content section. However whenever i save my changes, build the project and refresh the page, nothing has changed.

I've tried deleting the cache folder, changing the web.config file, installing a special chrome extension to do a hard reset, clearing the entire cache, closing and opening Visual Studio and nothing seems to make any difference.

How can I make Umbraco update its cache to reflect the changes I've made to a property editor in the content section?

From 6.1.6 jump to 7.x: How to with UBlogsy installed?

$
0
0

I've to jump from 6.1.6 to 7.x. I've installed the Ublogsy module. My idea is not to use UBlogsy into 7.x but Articulate. How to migrate data ( content and media )?

Using Courier with custom FileSystemProvider

$
0
0

I'm using Courier in my project where I also have a custom FileSystemProvider (that uses Azure Blob Storage).

The "default" FileSystemProvider will store all files with a url that is relative to the current website, by default in /media/... So when media files are beeing transfered with Courier they will have the same url in the target environment (If I've understood it right).

When using the custom FileSystemProvider the URLs returned are absolute and pointing to the storage account specified in config. In my case I have one storage account for each environment I have Courier for. I was expecting Couirier to "recalculate" the urls for the media items as part of the deployment, but it does not seem to do so. The result is that the urls will point to the storage account of the source website.

Is there any way to force Courier to regenerate/recalculate all URL:s for the media items as part of a deployment? It would also need to do this for images in rich text editors and in the grid.

Logging into the Backoffice 7.3 loses UMB_UCONTEXT cookie.

$
0
0

Hi,

So I upgraded my solution from Umbraco 7.2.8 to 7.3.0 and ran into an issue. I could sign into the back office fine, but it would log me out randomly after a minute or two.

Digging into the source code, it was because the UMB_UCONTEXT cookie's domain was null. This was occurring because I had the umbracoSetting keepUserLoggedIn set to true and that would cause the cookie to be refreshed here: https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web/Security/Identity/GetUserSecondsMiddleWare.cs#L86 with a null domain.

After digging further into the source code, I noticed it was trying to pull that AuthCookieDomain from the umbracoSettings.config here: https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Core/Configuration/UmbracoSettings/SecurityElement.cs#L44.

To remedy this issue, I had to add a key to the security section of the umbracoSettings.config called authCookieDomain.

My question is if this is a bug or expected behavior? If this is expected behavior it should probably be documented as a breaking change as I have spent days trying to track this issue down. It very well could just be a problem with my install as well.

Thanks!


Redirect is not working

$
0
0

Hi Richard!

Im having trouble with version 1.9.1. The redirects are not working and the log says:

"2015-12-15 17:55:44,350 [P1204/D3/T37] ERROR SEOChecker.HttpModules.UrlModule - SEOChecker: Error in PageNotFound Module System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Web.Routing.DefaultUrlProvider.GetUrl(UmbracoContext umbracoContext, Int32 id, Uri current, UrlProviderMode mode) at Umbraco.Web.Routing.UrlProvider.<>cDisplayClass3.b0(IUrlProvider provider) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func`2 predicate) at Umbraco.Web.Routing.UrlProvider.GetUrl(Int32 id, Uri current, UrlProviderMode mode) at Umbraco.Web.Routing.UrlProvider.GetUrl(Int32 id) at SEOChecker.Core.Repository.PageNotFound.PageNotFoundResult.RenderNiceUrl() at SEOChecker.Core.Repository.PageNotFound.PageNotFoundResult.get_ValidForRedirect() at SEOChecker.HttpModules.UrlModule.(Object , EventArgs )"

Im using Umbraco 7.3.1. Onbound broken links are registered so I know the module is running.

Any ideas what the problem can be?

Errors when publishing Examine Indexes

$
0
0

Hey all,

Im getting some errors when trying to rebuild indexes. I have a master, slave set up using Azure app services. WhenI rebuild indexes on the master server Im getting less columns in the index than when I rebuild on the slave server!

I think that some of the uBlogsy columns are being ignored by the master server!!

Slave server: enter image description here

Master server: enter image description here

I am getting some errors - Biz

On more slightly strange this is im getting more errors when rebuilding indexes on the slave server, see below:

2016-03-03 16:44:58,776 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableAuthor, propertyAlias:uBlogsyPostAuthor. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.GetValueFromFieldOrProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,776 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableAuthor, propertyAlias:uBlogsyPostAuthor, aliasInNode:uBlogsyAuthorName. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.AddIndexByPropertyInSelectedNodes(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias, String aliasInNode) 2016-03-03 16:44:58,776 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableAuthorIds, propertyAlias:uBlogsyPostAuthor. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.GetValueFromFieldOrProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,776 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableAuthorIds, propertyAlias:uBlogsyPostAuthor. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.AddIdsFromCsvProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableLabels, propertyAlias:uBlogsyPostLabels. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.GetValueFromFieldOrProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableLabels, propertyAlias:uBlogsyPostLabels, aliasInNode:uBlogsyLabelName. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.AddIndexByPropertyInSelectedNodes(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias, String aliasInNode) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableLabelIds, propertyAlias:uBlogsyPostLabels. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.GetValueFromFieldOrProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableLabelIds, propertyAlias:uBlogsyPostLabels. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.AddIdsFromCsvProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableAuthor, propertyAlias:uBlogsyPostAuthor. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.GetValueFromFieldOrProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableAuthor, propertyAlias:uBlogsyPostAuthor, aliasInNode:uBlogsyAuthorName. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.AddIndexByPropertyInSelectedNodes(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias, String aliasInNode) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableAuthorIds, propertyAlias:uBlogsyPostAuthor. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.GetValueFromFieldOrProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableAuthorIds, propertyAlias:uBlogsyPostAuthor. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.AddIdsFromCsvProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableTags, propertyAlias:uBlogsyPostTags. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.GetValueFromFieldOrProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableTags, propertyAlias:uBlogsyPostTags, aliasInNode:uTagsyTagName. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.AddIndexByPropertyInSelectedNodes(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias, String aliasInNode) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableTagIds, propertyAlias:uBlogsyPostTags. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.GetValueFromFieldOrProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,789 [P8660/D2/T32] ERROR System.Exception - During indexing luceneFieldName:uBlogsySearchableTagIds, propertyAlias:uBlogsyPostTags. System.NullReferenceException: Object reference not set to an instance of an object. at uHelpsy.Helpers.ExamineIndexHelper.AddIdsFromCsvProperty(IndexingNodeDataEventArgs e, String luceneFieldName, String propertyAlias) 2016-03-03 16:44:58,898 [P8660/D2/T32] ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=ExternalIndexer, NodeId=-1 System.Exception: Error indexing queue items,System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.IO.Path.GetFileName(String path) at Our.Umbraco.ezSearch.ezSearchBoostrapper.OnGatheringNodeData(Object sender, IndexingNodeDataEventArgs e) at System.EventHandler1.Invoke(Object sender, TEventArgs e) at Examine.Providers.BaseIndexProvider.OnGatheringNodeData(IndexingNodeDataEventArgs e) at UmbracoExamine.UmbracoContentIndexer.OnGatheringNodeData(IndexingNodeDataEventArgs e) at Examine.LuceneEngine.Providers.LuceneIndexer.GetDataToIndex(XElement node, String type) at Examine.LuceneEngine.Providers.LuceneIndexer.ProcessIndexQueueItem(IndexOperation op, IndexWriter writer) at Examine.LuceneEngine.Providers.LuceneIndexer.ProcessQueueItem(IndexOperation item, ICollection1 indexedNodes, IndexWriter writer) at Examine.LuceneEngine.Providers.LuceneIndexer.ForceProcessQueueItems(Boolean block), IndexSet: ExternalIndexSet 2016-03-03 17:04:28,122 [P8660/D2/T33] WARN Umbraco.Web.UmbracoModule - Status code is 404 yet TrySkipIisCustomErrors is false - IIS will take over. 2016-03-03 17:06:49,301 [P8660/D2/T19] INFO Umbraco.Core.Security.BackOfficeSignInManager - Event Id: 0, state: Login attempt succeeded for username charles.bikhazi@helpforheroes.org.uk from IP address 86.28.73.170 2016-03-03 17:06:49,301 [P8660/D2/T19] INFO Umbraco.Core.Security.BackOfficeSignInManager - Event Id: 0, state: User: charles.bikhazi@helpforheroes.org.uk logged in from IP address 86.28.73.170

Help!!

Thanks

Charles

ModelBuilder - non-unique Document Type and Media Type aliases.

$
0
0

Historically we have document type Folder. After upgrading to Umbraco 7.4, the Model Builder is not working, giving a message:

Failed to build PureLive models. Alias "folder" is used by types Content:"Folder", Media:"Folder". Aliases have to be unique. One of the aliases must be modified in order to use the ModelsBuilder.

We have thousands documents of this type. As there is no good way to rename the alias, is there any workaround?

Failed to enter the lock within timeout. getting this error sometimes after upgrading umbraco version 7.4.3

$
0
0

Server Error in '/' Application.

Failed to enter the lock within timeout.

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.TimeoutException: Failed to enter the lock within timeout.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[TimeoutException: Failed to enter the lock within timeout.] Umbraco.Core.AsyncLock.Lock(Int32 millisecondsTimeout) +145 Umbraco.Core.MainDom.Acquire() +276 Umbraco.Core.ApplicationContext.Init() +70 Umbraco.Core.CoreBootManager.CreateApplicationContext(DatabaseContext dbContext, ServiceContext serviceContext) +67 Umbraco.Core.CoreBootManager.Initialize() +804 Umbraco.Web.WebBootManager.Initialize() +122 Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +246

[HttpException (0x80004005): Failed to enter the lock within timeout.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +544 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +186 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343

[HttpException (0x80004005): Failed to enter the lock within timeout.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1

And also not able to see anything in umbraco log file? Is anything I'm missing while upgrading? The performance of site is also very slow as compare to previous version after upgrading to version 7.4.3? Please help, thanks

Get form name in email template

$
0
0

How do I get the form name in a custom, Umbraco Forms email template?

My first thought was to use the GetField method of the FormsHtmlModel passed to the view, but I don't know what the key for form name would be. I've tried "formName" and "form_name" to no avail.

Viewing all 72689 articles
Browse latest View live


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