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

Failed to read the 'rules' property from 'CSSStyleSheet': Cannot access rules

$
0
0

Hi guys,

When I create new doctype, I clicked on icon on left of doctype name to assign icon for doctype, the icon list is not show and I received this error.

DependencyHandler.axd Error: Failed to read the 'rules' property from 'CSSStyleSheet': Cannot access rules

Current Umbraco version: 7.10.4

This error happen only in Chrome (Version 66.0.3359.139). I'm also test on Firefox Quantum and IE11, function is still working fine, no error.

In ClientDependency.config, I also config bundleDomains to match my local domain.

Could you help me how to solve this?

Linh


hitting install screen when using a database backup

$
0
0

I'm migrating a few sites to new servers. I created a backup of the database, restored it as a new one on the new database server, set up my site in IIS, deployed the code, and included the new connection string to the new database. When I go to the site, I'm taken to the Umbraco install page. I can't see any of my content, and I can't access the back office either. I'm running Umbraco 7.4.3. I vaguely remember this happening to me a few years ago but I can't for the life of me remember how to resolve it. Please advise!

Cookie Identification in Umbraco

$
0
0

Has anyone had luck with the Cogworks - Cookie Directive Package on any recent versions? I like the ability to auto list cookies which the site is using.

Is there any other way to identify and present the cookies on an umbraco website?

Articulate Pager and Search Results

$
0
0

Hello,

When using the search form in articulate and getting a list of results that trigger pagination, it will cause a page not found error when clicking the pager buttons.

The easiest way to see this is to create a blog, add three posts, set your page size to 1 in the back office, navigate to the blog, click the pager button for older posts, recieve the following error:

 

Page not found

No umbraco document matches the url '/blogs/search?term=test&p=2'.

This page can be replaced with a custom 404. Check the documentation for "custom 404".

This page is intentionally left ugly ;-)

 

Has anyone else run into this error and found a way to fix it?

Cogworks Meganav - Child templates

$
0
0

Hi All, New to Umbraco, Just about 10 hours in and learning, Bare with me if anything is "noobish".

I have a master page, child template setup and running into issues with some inheritance etc.

Master Template has:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using ContentModels = Umbraco.Web.PublishedContentModels;
@using Umbraco.Core
@{
    Layout = null;
}

I am calling a partial:

@Html.CachedPartial("Header", Model.Content, 3600, true)

This renders. In this partial I have:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using ContentModels = Umbraco.Web.PublishedContentModels;
@using Umbraco.Core

I have a layout and for a navigation I call a Navigation Partial:

@Html.Partial("~/Views/Partials/Navigation/TopNavigation.cshtml")

I am using this megaNav: https://github.com/thecogworks/meganav

And its code they provide the basic loop through and here is where I have my current issue.

At the top of this partial I have:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage 
@using Umbraco.Web; 
@using Umbraco.Web.Models; 
@using Cogworks.Meganav.Models;

And the for loop:

@foreach (var item in Model.Content.GetPropertyValue<IEnumerable<MeganavItem>>("navigation"))

When I am on my homepage document type

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using ContentModels = Umbraco.Web.PublishedContentModels;
@{
    Layout = "Master.cshtml";
}

The navigation renders fine.

But when I am on a page using the page document type the site produces an error.

enter image description here

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 8:  <div class="nav navv2">
Line 9:      <ul>
Line 10:     @foreach (var item in Model.Content.GetPropertyValue<IEnumerable<MeganavItem>>("navigation"))
Line 11:     {
Line 12:         if (item.Children.Any()){

This line:

@foreach (var item in Model.Content.GetPropertyValue<>

Can anyone help me with the issue please?

Tag

$
0
0

Hi,

I have written this code about tag. It is displaying error about missing a closing "}" character . it is not original error. In the code i have selected two places , I think , that code is the problem. Can you please see my code.

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @using System.Globalization;

@{

var newsNodes = Model.Content.Descendants().Where(x => x.DocumentTypeAlias == "nyhed");
var tagCategories = Umbraco.TypedContent(1150).Children.Where(x => x.DocumentTypeAlias == "indholdmappe" || x.DocumentTypeAlias == "InformationMappe");

} @foreach (var news in newsNodes) { string caption = ""; caption = news.GetPropertyValue

   string catName = news.Ancestors("Category").First().Name; 
    var newsTag = catName.Substring(catName.Length - 2) == "er" ? catName.Substring(0,catName.Length - 2) : catName;
    @* newsTag kan bruges til at skrive hvilken kategori nyheden er
       Bliver ikke brugt men kan skrive f.eks. (Reportage/Nyhed eller lign.)
    *@  
    string tags1 = @news.tags;
    List<string> tagsPage = tags1.Split(',').ToList<string>();
    <div class="box">
        <a href="@news.Url">
            <div class="newsContainer row">             

                <div class="newsText col-md-7 col-lg-8">
                    <p id="publishDate2">@caption</p>
                    <h1>@news.GetPropertyValue("title")</h1>
                    <div class="newsTags" style="text-align:center;">
                        <ul class="tagListNews">
                        @foreach (var tag in tagsPage) {
                                foreach (var catTag in tagCategories) {                                         
                                    if (tag == catTag.tagName) {
                                        string tagColor = "#"+@catTag.tagColor;                                             
                                        if (tagColor == "#FFFFFF") {
                                            tagColor = "#000000";
                                        }
                                        <a href="@catTag.Url">
                                            <li style="background-color: @tagColor">@tag</li>
                                        </a>
                                    }           
                                }
                            }
                        </ul>
                        <div style="clear: both"></div>
                    </div>

                </div>
            </div>
        </a>

    </div>
}
<a class="addMore" href="#" title="">
    <div class="botAdd">
        Indlæs flere nyheder
    </div>
</a>

enter image description here

Error: enter image description here

Can't log in with my main account (our.umbraco.org), can't reset password

$
0
0

I can't log in to my main account (our.umbraco.org) I have forgotten the password and I tried the password recovery tool.

I received the mail that contains the new password, then used that same mail address + new password to log in and the website just says it's invalid.

I've tried 3 times already, none of those new passwords work. I've tried typing both the email and the password instead of copying / autocomplete - same problem.

Why is the password recovery tool broken (on our.umbraco.org) ? Also, I find it a bit ironic that the problem I wanted to post about was "unable to log in to umbraco after updating", I came to post about it on forums and I got the same problem on the forums :D

Nested composition Document Types with List View?

$
0
0

I just installed Umbraco 7.10.4.

I have a home page with a picture carousel. My intention was to create Document Type that would hold a dynamic list of pictures to be added. I know I can create an image list that can take multiple images.

But the carousel should also have header and description for each image. My approach was therefore to create a data structure with a compisition Document Type without a template named CarouselImage.

I then tried to add it to Home page as a sublist but quickly realized this was a bad idea as all sub pages related to Home page now was turning up in the same list.

I then created a new composite Document Type named CarouselList. I added CarouselImage as allowed sub item and made CarouselList to be displayed as a List View. The CarouselList was added to Home Document Type as a composition. I hoped this would display a ListView on my Home page. But the composition tab is empty.

Am I on the wrong track? Is it not posssible to create Document Types with custom sub lists?

Is there an alternative solution?


Failed to retrieve data for content id 1073

$
0
0

I

I'm experiencing this issue in Umbraco 7.0.4 backoffice when trying to view some of my nodes in the Content section. 

It's only some of the nodes that throws this error. 
I have tried creating a new node of the same document type, but now get:



What I've tried so far:
- Make changes to the document type and save it
- Rolling back the node to previous versions
- Republishing the node
- Republishing entire site
- Deleting everything in App_Data
- Restarting App Pool
- Node is also in Recycle bin. Tried to move to back to content with no luck 

In dev tools in Chrome I can see that the API throws a 500 internal server error:

http://site.local/umbraco/backoffice/UmbracoApi/Content/GetById?id=1073

)]}',

{"Message":"An error has occurred.","ExceptionMessage":"Sequence contains no matching element","ExceptionType":"System.InvalidOperationException","StackTrace":"   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)\r\n   at Umbraco.Web.Models.Mapping.TabsAndPropertiesResolver.ResolveCore(IContentBase content)\r\n   at AutoMapper.ValueResolver`2.Resolve(ResolutionResult source)\r\n   at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)\r\n   at AutoMapper.Mappers.TypeMapObjectMapperRegistry.PropertyMapMappingStrategy.MapPropertyValue(ResolutionContext context, IMappingEngineRunner mapper, Object mappedObject, PropertyMap propertyMap)"}

 

Anyone have an idea what to do? This error is pretty critical for me :/

Upgrading ReCaptcha to the "I'm not a robot" version

$
0
0

I'm picking up an issue where we are looking to upgrade to the latest version of ReCaptch (the one that gives you just a simulated check box to click on to say "I'm not a robot").

We've modified FieldType.Recaptcha.cshtml as follows (basically removing the default and adding in the code to render the ReCaptcha):

@using Umbraco.Forms.Core;
@model Umbraco.Forms.Mvc.Models.FieldViewModel
@{
    var siteKey = Configuration.GetSetting("RecaptchaPublicKey");
    if (!string.IsNullOrEmpty(siteKey))
    {
        var theme = "clean";
        var fieldSettingViewModel = Model.AdditionalSettings.FirstOrDefault(x => x.Key == "Theme");
        if (fieldSettingViewModel != null)
        {
            theme = fieldSettingViewModel.Value;
        }
        <script src="https://www.google.com/recaptcha/api.js" async defer></script>
        <div class="g-recaptcha" data-sitekey="@siteKey" data-theme="@theme"></div>
    }
}
@*@ReCaptchaHelper.ReCaptcha(theme)*@

Seems that it's not as simple as that though, as if I make the field Mandatory I always get the validation error message (whether or not I've said I'm not a robot); and if I don't make it Mandatory I don't get blocked even if I don't complete the ReCaptcha field.

Initially just wondering if this is even feasible without some change to Contour core and how it handles the valiation of the ReCaptcha field?

Thanks in advance for any advice.

Andy

Umbraco Contour - Menu Tree Empty

$
0
0

Hi,

Running Umbraco 6.2.5 - after installing Contour 3.0.17, I seem to be missing the tree underneath "Umbraco Contour" in the backoffice. Had the same problem with latest 3.0.28. Aren't there supposed to be items underneath here like Data Sources, Data Prevalues, etc?

Contour Tab - Local

Appreciate any experience with this and help if you have it!

Thanks,

Garrett

Edit default texts in Umbraco Forms

$
0
0

Hi,

I've tried editing the DefaultRequiredErrorMessage key in ~/App_Plugins/UmbracoForms/UmbracoForms.config, but no success.

When I create a new form the default text still appears, and not the one I've entered in the UmbracoForms.config.

How do I "translate" all the default texts in Umbraco Forms?

I cannot find any entries to edit the default text for SubmitButtonLabel either.

Our editors do not wish to edit these values every time they create a new form.

Regards, Martin

Creating an Angular Front-end with Umbraco Back-end

$
0
0

Because Umbraco 7 is so easy and friendly to extend, nowadays it sometimes makes more sense to use Umbraco as a content provider for a greenfield project in AngularJS instead of creating an own back-office. I can easily come up with a few ideas how to serve my content to my Angular frond-end, but I'm wondering what is the best technical solution with things that Umbraco serves from the core out.

1) Make a few custom RestAPi's which consume UmbracoContext

https://our.umbraco.org/documentation/Reference/Routing/WebApi/

This looks to me the most flexible approach and seems to make every idea possible. But, are there any considerations to make or ways to approach using the UmbracoContext releated to performance/caching?

2) Use the UmbracoRestApi and access all data using it's API's

https://github.com/umbraco/UmbracoRestApi
------------------------------------------
/umbraco/rest/v1/content
/umbraco/rest/v1/media

Would this be a good idea? I'm actually a little bit concerned as I only see one release in 2015. Or is this part of the core now? I didn't really find a reference to it in a quick glimse at the release notes. Are there any limitations using this approach?

3) Is there a Hijacking approach possible? Imagine something as adding an Attribute to each controller [RenderAsRestObject] or just Hijack everything myself and return a Rest Actionresult?

--

I found some old blogposts from 2014 and beginnen 2015, maybe things have changed since then. Which approach should I use to consume from Umbraco and render data in my Angular views?

Configuration error in web.config

$
0
0

Hello, I just deploy the umbraco project in hosting server, but giving following error. Exception information: Exception type: TargetInvocationException Exception message: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Owin.Loader.DefaultLoader.<>cDisplayClass12.b(IAppBuilder builder) at Owin.Loader.DefaultLoader.<>cDisplayClass1.0(IAppBuilder builder) at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.<>cDisplayClass2.0(IAppBuilder builder) at Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action1 startup) at Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action1 startup) at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Exception has been thrown by the target of an invocation. (h:\root\home\samantapra-001\www\site1\web.config line 242) at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType) at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType) at System.Web.Security.Membership.InitializeSettings(Boolean initializeGeneralSettings, RuntimeConfig appConfig, MembershipSection settings) at System.Web.Security.Membership.Initialize() at System.Web.Security.Membership.get_Providers() at Umbraco.Core.Security.MembershipProviderExtensions.GetUsersMembershipProvider() at Umbraco.Web.UmbracoDefaultOwinStartup.ConfigureServices(IAppBuilder app) at Umbraco.Web.UmbracoDefaultOwinStartup.Configuration(IAppBuilder app)

Exception has been thrown by the target of an invocation. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at System.Web.HttpRuntime.CreatePublicInstance(Type type) at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)

Object reference not set to an instance of an object. at Umbraco.Web.Security.Providers.MembersMembershipProvider..ctor()

Double opt-in

$
0
0

First of all: great solution. I just didn't find any documentation on how to enable a double opt-in signup method. So I would like to have a two step signup workflow: In step 1, a potential subscriber fills out and submits the online signup form or is added manually in the backend. In step 2, they'll immediately receive a confirmation email and click a link to verify their email, which then changes it's state. Is there a standard solution for something like this?

Thanks a lot for your help. Kind regards


Custom Dashboard Tips?

$
0
0

I need to make a custom status page in the Umbraco backoffice that displays the entire site's content tree (with everything always expanded), and displays the publish state of certain types of nodes (those with document type aliases containing certain a certain string) via color coding.

It seems like a custom Dashboard is the way to do this, but so far I haven't found any specific info on how I could output a customized content tree like this.

I feel like if I could get some code set up that recursively outputs all child nodes as text labels, I could probably handle the rest, but I'm not too familiar with AngularJS, so I don't know how to do that.

Is anyone able to point me in the right direction? Any suggestions or tips would be appreciated.

Thanks,
David

Error during PDF Creator evaluation

$
0
0

I am attempting to evaluate PDF Creator in Umbraco 7.10.4.

I am getting a YSOD "No physical template file was found for template PDFRazorExample". Does this mean PDF Creator is not compatible with Umbraco 7.10.4, or am I missing a configuration step?

Beginning of stack trace: [Exception: No physical template file was found for template PDFRazorExample] Umbraco.Web.Mvc.RenderMvcController.CurrentTemplate(T model) +157 Umbraco.Web.Mvc.RenderMvcController.Index(RenderModel model) +10 lambdamethod(Closure , ControllerBase , Object[] ) +79 System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +157 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +27 System.Web.Mvc.Async.AsyncControllerActionInvoker._39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22 System.Web.Mvc.Async.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49

Adding Workflow Gives "cannot read property 'push' of null"

$
0
0

Hi All

I'm currently struggling to configure a form by adding a new workflow. Here's the steps I'm following to get this error:

  1. In the forms section I click the ellipsis and create a contact form
  2. Scroll down to the bottom of the create form page and click "configure workflow"
  3. Select "Add Workflow" then "Send Email"
  4. Fill out this section and hit submit

I receive this error in the js console:

Cannot read property 'push' of null    
    at Object.submit (umbraco.forms.js?cdv=1883484025:2817)
    at umbraco.forms.js?cdv=1883484025:2944
    at i (angular.min.js?cdv=1883484025:79)
    at i (angular.min.js?cdv=1883484025:79)
    at i (angular.min.js?cdv=1883484025:79)
    at i (angular.min.js?cdv=1883484025:79)
    at angular.min.js?cdv=1883484025:80
    at Object.$eval (angular.min.js?cdv=1883484025:92)
    at Object.$digest (angular.min.js?cdv=1883484025:90)
    at Object.$apply (angular.min.js?cdv=1883484025:92)

I've tried this with Umbraco 7.10.4 and Forms 7.0.2, I've also tried it with Umbraco 7.9.0 and Forms 7.0.0 and I receive the same error.

Am I missing something?

Migrating pages from old CMS to Umbraco grid

$
0
0

Hi everyone,

I need to migrate many webpages from an old CMS that stores data in an SQL Server database to Umbraco. The old CMS allows content editors to create pages by setting any kind of layout they wish in a user friendly graphical interface. I need to give content editors the ability to recreate these pages in Umbraco.

In Umbraco, I have already created the required document types and templates to achieve this. The content for these pages is created using grid layouts that I have created and which function fine. The content editor is able to pick any combination of the grid row layouts that have been created (5 of them), and create content like Rich Text Editors and Macros (there's a lot of data to be entered in the macro parameters) in these grid row layouts.

So the content editor can create a page like:

  • Row layout 1
  • Row layout 4
  • Row layout 2
  • Row layout 5
  • Row layout 1
  • and so on...

In addition, there are many components on the old CMS that I have recreated in Umbraco as macros which require content editors to enter a variety of parameters like text, picking content, picking images etc. In Umbraco, the content editors will use these macros in the grid layouts. The grid and macros work fine and allow content editors to recreate the pages exactly how they need to.

Because there are a huge number of pages to create, I am required to migrate the content from the old CMS to Umbraco. I have read the CMSImport documentation at https://our.umbraco.org/projects/developer-tools/cmsimport/ and found out that Umbraco grid and macro migration isn't something that's available out of the box.

I have also read the article at http://skrift.io/articles/archive/hybrid-grid-editors-get-more-mileage-from-your-grid/ which talks about migrating content into an Umbraco grid but I'm not sure if this procedure will be applicable to my situation because the content editor needs to make a decision about which grid layout to use based on how the existing webpages are displayed.

In addition, the data from the existing CMS components has to be migrated into the Umbraco macros that I have created.

How would I go about doing the migration from the old CMS to the Umbraco grid and the macros within the grid?

Lou

You have unsaved changes prompt

$
0
0

Hello,

We have in our Umbraco 7.10.0 CMS a re-occurring prompt telling us -

You have unsaved changes

with the options disregard or stay.

The issue we have is that no changes have been made to the page, yet as we click on different pages in the site tree it keeps asking us preventing us from leaving the page we're on.

Does anyone else get this and what exactly triggers this?

Thanks

Paul

Viewing all 72689 articles
Browse latest View live


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