ActiveTopics https://our.umbraco.org Fri, 29 Jul 2016 13:51:12 +00:00 umbraco Latests topics from the forum on our.umbraco.org en Error: An error has occurred. - Length cannot be less than zero. Parameter name: length https://our.umbraco.org/projects/developer-tools/usync/usync/78985-error-an-error-has-occurred-length-cannot-be-less-than-zero-parameter-name-length https://our.umbraco.org/projects/developer-tools/usync/usync/78985-error-an-error-has-occurred-length-cannot-be-less-than-zero-parameter-name-length Umbraco v7.4.3 uSync v3.1.4.740 uSync.Core v5.3.5.740

When attempting a import I am getting the following error message:

Error: An error has occurred. - Length cannot be less than zero.  Parameter name: length

I think it maybe because the dictionary uSync config files are not containing any child nodes as they have been created for many languages but have no content yet.

For example:

<?xml version="1.0" encoding="utf-8"?>
<DictionaryItem Key="Accessibility_Change_Gallery_Based_On_Option" />

But it should be more like:

<?xml version="1.0" encoding="utf-8"?>
<DictionaryItem Key="Article_QR_NoProducts">
  <Value LanguageId="1" LanguageCultureAlias="en-US"><![CDATA[No product picked]]></Value>
  <Value LanguageId="2" LanguageCultureAlias="en-GB"><![CDATA[No product picked]]></Value>
  <Value LanguageId="3" LanguageCultureAlias="de-DE"><![CDATA[Kein Produkt ausgewählt]]></Value>
  <Value LanguageId="4" LanguageCultureAlias="fr-FR"><![CDATA[Aucun résultat]]></Value>
  <Value LanguageId="5" LanguageCultureAlias="nl-NL"><![CDATA[Geen product geselecteerd]]></Value>
  <Value LanguageId="6" LanguageCultureAlias="nb-NO"><![CDATA[Velg Produkt]]></Value>
  <Value LanguageId="7" LanguageCultureAlias="sv-SE"><![CDATA[Ingen produkt vald]]></Value>
  <Value LanguageId="8" LanguageCultureAlias="da-DK"><![CDATA[Der er ikke valgt et produkt]]></Value>
  <Value LanguageId="9" LanguageCultureAlias="fi-FI"><![CDATA[Yhtään tuotetta ei valittu]]></Value>
  <Value LanguageId="10" LanguageCultureAlias="cs-CZ"><![CDATA[Nebyl vybrán ádný produkt]]></Value>
  <Value LanguageId="11" LanguageCultureAlias="pl-PL"><![CDATA[Nie wybrano produktu]]></Value>
  <Value LanguageId="12" LanguageCultureAlias="en-IE"><![CDATA[No product picked]]></Value>
  <Value LanguageId="13" LanguageCultureAlias="ru-RU"><![CDATA[  ]]></Value>
  <Value LanguageId="14" LanguageCultureAlias="es-ES"><![CDATA[No se ha seleccionado ningún producto]]></Value>
  <Value LanguageId="15" LanguageCultureAlias="it-IT"><![CDATA[Nessun prodotto scelto]]></Value>
  <Value LanguageId="16" LanguageCultureAlias="tr-TR"><![CDATA[Hiçbir ürün seçilmedi]]></Value>
</DictionaryItem>

Still investigating, anyone else seen this happen?

Jeavon

]]>
Jeavon Leopold Fri, 29 Jul 2016 12:18:48 +00:00
Retrieve values from specific archetype field by guid https://our.umbraco.org/projects/backoffice-extensions/archetype/sound-off/78984-retrieve-values-from-specific-archetype-field-by-guid https://our.umbraco.org/projects/backoffice-extensions/archetype/sound-off/78984-retrieve-values-from-specific-archetype-field-by-guid Hi all,

Just a quick question really - is it possible to fetch an Archetype field property or fieldset - with it's values - from it's Guid?

I have a list of Archetype items on a webpage but (for security reasons) I'd like then pass each Guid to a controller, is this possible?

Kind regards

]]>
pronto Fri, 29 Jul 2016 10:42:09 +00:00
How does Umbraco backoffice connect to the database? https://our.umbraco.org/forum/using-umbraco-and-getting-started/78982-how-does-umbraco-backoffice-connect-to-the-database https://our.umbraco.org/forum/using-umbraco-and-getting-started/78982-how-does-umbraco-backoffice-connect-to-the-database A rather silly question, but how does Umbraco backoffice connect to the database? How does the frontend connect to the data?

]]>
Krum Fri, 29 Jul 2016 06:26:18 +00:00
How do I direct/link to an Umbraco CMS "blog" page from an index.html (my custom homepage)? https://our.umbraco.org/forum/templates-partial-views-and-macros/78981-how-do-i-directlink-to-an-umbraco-cms-blog-page-from-an-indexhtml-my-custom-homepage https://our.umbraco.org/forum/templates-partial-views-and-macros/78981-how-do-i-directlink-to-an-umbraco-cms-blog-page-from-an-indexhtml-my-custom-homepage I am not sure how to do the routing - to link to this Umbraco web page from my Index.html page which I want to use as my home page. I only want to use Umbraco for this single page which will be to maintain my blog page - add posts , in an easier way.

I have installed Umbraco in Visual Studio and have one instance of it. I am using ASP.NET MVC 5.

Homepage is just an index.html file that I have. On the top on my home page, I have "About Me", "Services", "Contact" and "Blog". I would like the "Blog" Link to direct me to an Umbraco Web Page that I created. Also, would this possibly be not a best practice? Thank you!!!

]]>
maciej bukowski Fri, 29 Jul 2016 04:00:27 +00:00
How to upgrade from 1.10.0 to 2.1.0? https://our.umbraco.org/projects/collaboration/merchello/merchello/78980-how-to-upgrade-from-1100-to-210 https://our.umbraco.org/projects/collaboration/merchello/merchello/78980-how-to-upgrade-from-1100-to-210 I try to do it with this step:

  • upgrade Umbraco from 7.2 to last Umbraco 7.4.3
  • ran Nuget "Install-Package Merchello.Core"

But the site now gives the following error:

Invalid object name 'merchNote'.

The web.config is still showing merchelloConfigurationStatus of 1.10.0 so I'm guessing Nuget install did not actually update anything other than the dlls.

I tried downloading the Merchello_2.1.0.zip file but that just contains GUID-named files.

]]>
Lesley Thu, 28 Jul 2016 23:12:06 +00:00
TFS Build trigger umbraco copy targets https://our.umbraco.org/forum/using-umbraco-and-getting-started/78979-tfs-build-trigger-umbraco-copy-targets https://our.umbraco.org/forum/using-umbraco-and-getting-started/78979-tfs-build-trigger-umbraco-copy-targets Is there a way to trigger the custom deployment targets through a TFS build? We are using TFS 2015 (with VS 2015, git repository) and I started with a Visual Studio build definition template, but the custom targets (UmbracoCms.targets) do not get triggered so the umbraco, umbraco_client, and other folders do not get collected in the deployment to the artifacts folder.

I have gotten the publish profiles from within Visual Studio to work correctly multiple times before.

Specifically, here is my configuration:

  • Solution: $(SolutionPath)
  • MSBuild Arguments: /p:OutDir=$(build.stagingDirectory) /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true
  • Platform: $(BuildPlatform)
  • Configuration: $(BuildConfiguration)
  • Clean: No
  • Restore NuGet: No
  • VS Version: 2015
]]>
Matthew Thu, 28 Jul 2016 20:52:27 +00:00
Get All Articles in Umbraco https://our.umbraco.org/forum/templates-partial-views-and-macros/78978-get-all-articles-in-umbraco https://our.umbraco.org/forum/templates-partial-views-and-macros/78978-get-all-articles-in-umbraco Hello everyone,

I'm trying to write a MacroPartial that will allow me to pull out content from every item on my website that has a specific doctype.

I'm building a blog for a friend and it will have different sections, but every article will have the same doctype. For the homepage I want to be able to select every article from every section, but I'm struggling to figure it out.

Any ideas? Thanks guys!

  • Jedd
]]>
Jedd France Thu, 28 Jul 2016 16:11:54 +00:00
PayPal Pay Now raises PaymentMethod was null error https://our.umbraco.org/projects/collaboration/merchello/merchello/78977-paypal-pay-now-raises-paymentmethod-was-null-error https://our.umbraco.org/projects/collaboration/merchello/merchello/78977-paypal-pay-now-raises-paymentmethod-was-null-error Hi,

I've got FastTrack working now with my existing Umbraco site (U 7.4.3, M 2.1.0, FT 2.1.0), but I have a new problem and a question or two.

I have been running the site from within VS2015 in debug mode. This has been working just fine, and I've been able to process transactions on a PayPal Sandbox account successfully.

I've just copied my site from my desktop to our development server so that the client can see how the project is coming along. Everything seems to work until the point where you click the Pay Now PayPal button. When you click the button the current page just gets reloaded. This was working on my desktop.

There's nothing in the Umbraco log, but in the server log I have the following:

Application information: 
    Application domain: /LM/W3SVC/4/ROOT-4-131141928384472225 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\inetpub\vhosts\xxxx\ 
    Machine name: WIN-31OTGVUD76F 

Process information: 
    Process ID: 1972 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 

Exception information: 
    Exception type: NullReferenceException 
    Exception message: PaymentMethod was null
   at Merchello.Web.Controllers.CheckoutPaymentControllerBase`1.HandlePaymentException(TPaymentModel model, Exception ex)
   at Merchello.Web.Store.Controllers.Payment.PayPalExpressPaymentController.Process(StorePaymentModel model)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



Request information: 
    Request URL: http://xxxx/umbraco/RenderMvc 
    Request path: /umbraco/RenderMvc 
    User host address: 79.78.36.171 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 

Thread information: 
    Thread ID: 142 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at Merchello.Web.Controllers.CheckoutPaymentControllerBase`1.HandlePaymentException(TPaymentModel model, Exception ex)
   at Merchello.Web.Store.Controllers.Payment.PayPalExpressPaymentController.Process(StorePaymentModel model)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

The relevant bit would seem to be:

Exception type: NullReferenceException 
Exception message: PaymentMethod was null

I haven't been able to find any hard coded paths or anything like that, I'm using the same database as I was from my desktop, I have just modified the connection string - but the rest of the site works so I don't think it can be that. I've set the permissions on the entire site folder to be wide open just in case it's that, but no joy.

Any suggestions would be appreciated.

My other questions are:

Merchello seems to mark the transaction as successful before it completes the PayPal payment process. Is that right or have I missed something? Seems like the wrong way to do it ...

Also I need to find an event that gets fired once a payment has been made successfully as I need to add details of the transaction to a separate CRM system (SalesForce). I've written the library I need to communicate with the SalesForce system, just need to find the right trigger in Merchello when the transaction is complete and all the transaction and customer information is available so I can inject it into SalesForce. Any ideas?

Cheers,

Crac

]]>
Caractacus Downes Thu, 28 Jul 2016 16:04:11 +00:00
Cant get Umbraco to build in visual studio https://our.umbraco.org/forum/contributing-to-umbraco-cms/78976-cant-get-umbraco-to-build-in-visual-studio https://our.umbraco.org/forum/contributing-to-umbraco-cms/78976-cant-get-umbraco-to-build-in-visual-studio Hi

Im getting nuget errors when trying to build umbraco in visual studio. Can anyone help?

]]>
Harpaul Thu, 28 Jul 2016 15:46:15 +00:00
Next Button not getting clicked https://our.umbraco.org/forum/umbraco-forms/78975-next-button-not-getting-clicked https://our.umbraco.org/forum/umbraco-forms/78975-next-button-not-getting-clicked Hi,

I am using Umbraco 7.3.1 and forms 4.3.0,I created 2 pages in 1 form,But when I preview the form on my website next button is not getting clicked.Can you please help.

Thanks in advance.

]]>
Manisha Singla Thu, 28 Jul 2016 13:29:28 +00:00
How to remove fulltext package https://our.umbraco.org/projects/website-utilities/full-text-search/suggestions/78974-how-to-remove-fulltext-package https://our.umbraco.org/projects/website-utilities/full-text-search/suggestions/78974-how-to-remove-fulltext-package I am needing to remove the fulltext package from a 4.7.2 Umbraco platform before I upgrade (upgrade failing and consensus is it's the fulltext package). I do not see it in the list of installed packages so how do I remove the package?

Thanks

]]>
Deron Johnson Thu, 28 Jul 2016 13:27:10 +00:00
Content Editor - Handling Images https://our.umbraco.org/forum/templates-partial-views-and-macros/78973-content-editor-handling-images https://our.umbraco.org/forum/templates-partial-views-and-macros/78973-content-editor-handling-images Hello :-)

Something I've always pondered over is handling images within Umbraco in the sense of giving editors the ability to add images to content / pages.

How do you guys handle this? I know there are various ways available from allowing editors to insert images into the RTE or setting up a Media picker property on the page so editors can choose images from the Media section and outputting in a specific area in the template.

But with responsive sites becoming so prominent I find it tricky to give editors flexibility when it comes to adding images to content whilst maintaining control of the image for a responsive site.

Just wondered if anyone has any tips / advice on what's the "best" way to give flexibility for the editor - without them messing the responsive elements of a site up?

Cheers :-)

]]>
Hefin Jones Thu, 28 Jul 2016 12:51:06 +00:00
Image Cropper not cropping https://our.umbraco.org/forum/using-umbraco-and-getting-started/78972-image-cropper-not-cropping https://our.umbraco.org/forum/using-umbraco-and-getting-started/78972-image-cropper-not-cropping Image Cropper in the site I'm building is not cropping images. I'm developing on 7.4.3 using IIS Express (just the standard Ctrl-F5 in VS). I've installed using NuGet.

This is the view code:

<img src="@Url.GetCropUrl(habitat, "cardImage", "crop")" width="280" height="144" alt="@habitat.GetPropertyValue("cardImageAltText")" />

This is the image URL I get back:

http://localhost:5393/media/1008/river.jpg?crop=0,0.065142774524687336,0,0.24958907787795226&cropmode=percentage&width=560&height=288&rnd=131141796410000000

The image, however, is being sent at its original size: http://i.imgur.com/0nvbaf8.png

If I do something simple like this:

http://localhost:5393/media/1008/river.jpg?mode=crop&width=100

The image again is returned at its original size.

I've noted that there is no ~/App_Data/cache folder being created.

I've updated ImageProcessor to 2.4.3.0 and ImageProcessor.Web to 4.6.3.0.

I am using UmbracoFileSystemProviders.Azure for media (which works fine), but I haven't installed AzureBlobCache plugin for ImageCropper. Could that be the problem? I've also noticed that images uploaded using the cropper don't appear in the Media section - is that supposed to be the case?

I'm completely stumped!

]]>
Charles Roper Thu, 28 Jul 2016 12:35:18 +00:00
Multinode Treepicker For Members https://our.umbraco.org/forum/using-umbraco-and-getting-started/78971-multinode-treepicker-for-members https://our.umbraco.org/forum/using-umbraco-and-getting-started/78971-multinode-treepicker-for-members Hello, I am using a Multinode Treepicker in order to select members. I have checked the "Show open button" and "Show edit button" options but these buttons are not showing after selecting a member.

When the "Node Type" is set to "Content" rather than "Members", the buttons are displayed.

See screenshots. Any help will be appreciated. Thanks.

enter image description here

enter image description here

]]>
Ronish Potiah Thu, 28 Jul 2016 12:29:01 +00:00
Umbraco 7.4 first page visit slow https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/78970-umbraco-74-first-page-visit-slow https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/78970-umbraco-74-first-page-visit-slow Hello,

I've upgraded a large project from Umbraco 7.3.8 to 7.4.3. When I visit a page for the first time it seems to take a lot longer in 7.4.3. After that the pages seem to load both just as fast. Anyone seen this before?

Could it be related to this? http://issues.umbraco.org/issue/U4-8682

Jeroen

]]>
Jeroen Breuer Thu, 28 Jul 2016 11:37:54 +00:00
301 redirect to remove www in url. https://our.umbraco.org/forum/using-umbraco-and-getting-started/78966-301-redirect-to-remove-www-in-url https://our.umbraco.org/forum/using-umbraco-and-getting-started/78966-301-redirect-to-remove-www-in-url Hi umbraco forum.

I used to work mainly with php, but transitioned to umbraco. Some of the things i used to control in the .htaccess file, im having trouble doing in the umbraco cms.

Genereally im having trouble understanding the whole setup with the web.config file, and the config folder.

Also i cant seem to make the 301 redirect work, to remove www from my url. I have tried various solutions from 4 different sources, but it just wont work.

I hope you can help me out :)

Best regards.

]]>
Asger Thu, 28 Jul 2016 10:42:54 +00:00
Merchello product picker include variants https://our.umbraco.org/projects/collaboration/merchello/merchello/78965-merchello-product-picker-include-variants https://our.umbraco.org/projects/collaboration/merchello/merchello/78965-merchello-product-picker-include-variants Hi there,

I'm looking for the possibility of being able to select products variants through the Merchello product picker data type. It seems that at the moment it is limited to "regular" products...

The use case is this: say that I create a collection for a special offer that only applies to certain products, which the admin chooses through the product picker. However, currently there is no way to choose a specific variant of a product - this is problematic since we don't necessarily want to include other variants of the same product.

What would be the easiest way to accomplish this?

]]>
William Zhang Thu, 28 Jul 2016 10:19:26 +00:00
dialogService.mediaPicker() does not seem to respect onlyImages option https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/78961-dialogservicemediapicker-does-not-seem-to-respect-onlyimages-option https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/78961-dialogservicemediapicker-does-not-seem-to-respect-onlyimages-option In a custom section, I'm using the following code:

dialogService.mediaPicker({ callback: populatePicture, onlyImages: true});

However, it still lets me select a folder in the dialog.

If I step into the code, it seems to be using an obsolete umb-photo-folder directive.

Is there a different (newer) way I should be using the media picker in my custom section? Or is this a bug?

]]>
Morten Bock Thu, 28 Jul 2016 08:20:06 +00:00
Umbraco Packages with GIT and Nuget https://our.umbraco.org/forum/using-umbraco-and-getting-started/78959-umbraco-packages-with-git-and-nuget https://our.umbraco.org/forum/using-umbraco-and-getting-started/78959-umbraco-packages-with-git-and-nuget Hi,

I have recently been adding our Umbraco Websites to GIT and switched to Umbraco on Nuget. I've based my .gitignore on the one available at

https://github.com/github/gitignore/blob/master/Umbraco.gitignore

How do others source control Umbraco 3rd party packages which dlls to the bin directory. I know I could reverse the ignore for these but was wondering if there was another preferred solution.

Many Thanks Andy

]]>
Andy Felton Thu, 28 Jul 2016 07:58:06 +00:00
How do I use an Archetype on a collection of nodes with a different model? https://our.umbraco.org/projects/backoffice-extensions/archetype/sound-off/78954-how-do-i-use-an-archetype-on-a-collection-of-nodes-with-a-different-model https://our.umbraco.org/projects/backoffice-extensions/archetype/sound-off/78954-how-do-i-use-an-archetype-on-a-collection-of-nodes-with-a-different-model I'm not sure of the right terminology here, so please forgive me.

I have a document type of "Manufacturer", and in the template I have an Archetype set up for catalogs. On the Manufacturer pages I can get those catalogs no problem.

I also have a document type of "Library", where I want to list all manufacturers that have catalogs, and their catalogs. I can't figure out how to write this Archetype query.

This is my code on the Manufacturer pages:

var catalogs = Model.Content.GetPropertyValue<ArchetypeModel>("Catalogs");

if (catalogs.Fieldsets.Any())
    {
        display the catalogs
    }

If I use that code on the Library page, I get this error: "Object reference not set to an instance of an object."

@foreach (var child in CurrentPage.Site().FirstChild("manufacturers").Children.Where("Visible"))
        {
            var catalogs = Model.Content.GetPropertyValue<ArchetypeModel>("Catalogs");

            if (catalogs.Fieldsets.Any())
            {
                display the catalogs
            }
        }

If I change "Model.Content.GetPropertyValue("Catalogs")" to "child.GetPropertyValue("Catalogs")", I get the error message "'System.Collections.Generic.List' does not contain a definition for 'Any'."

If I get rid of the catalogs.Fieldsets.Any() block and just show the "display the catalogs" code, everything works fine, but I don't want to show manufacturers that don't have catalogs. How do I write this query?

]]>
Joshua Brown Wed, 27 Jul 2016 21:25:58 +00:00
Creating a frontpage testimonialslider with repository https://our.umbraco.org/forum/templates-partial-views-and-macros/78950-creating-a-frontpage-testimonialslider-with-repository https://our.umbraco.org/forum/templates-partial-views-and-macros/78950-creating-a-frontpage-testimonialslider-with-repository Hi guys

Not sure whether the title is descriptive enough but here goes.

I'm working on a company site and on the front page, I'm creating a modal that reveals a slider with customer testimonials.

What I want to do, is make a repository in the root in which it is possible to create new testimonials with: client logo clientname testimonial link to client case

I did this years ago in umbraco 4, but haven't worked with it since. I lost my old book from my lvl 1 class, but I'm guessing that's rather obsolete anyways.

I tried Googling for hours, but not sure if I'm even searching for the right thing.

Hope you guys can send me in the right direction, cus I feel rather lost here.

Hope you can helkp me out Kind regards Henrik

]]>
Henrik Vincent Nielsen Wed, 27 Jul 2016 15:01:17 +00:00
Media Content Editing https://our.umbraco.org/forum/using-umbraco-and-getting-started/78935-media-content-editing https://our.umbraco.org/forum/using-umbraco-and-getting-started/78935-media-content-editing Hi there,

I am trying to update our employee section of the company website.

I have uploaded new images but my text now won't align alongside, the indicator for when i should start typing or insert my text is as high as the picture and therefore my text won't align alongside the image.

I suspect I'm missing something simple but I'm not sure what it is!

Apologies if this is a silly question but I'm not very experienced with website updating.

Any help appreciated!

Thank you

]]>
Harriet de Bourg Wed, 27 Jul 2016 09:00:45 +00:00
405 Method Not Allowed Error on Save/Publish https://our.umbraco.org/forum/using-umbraco-and-getting-started/78924-error-on-savepublish-with-self-signed-ssl-certificate https://our.umbraco.org/forum/using-umbraco-and-getting-started/78924-error-on-savepublish-with-self-signed-ssl-certificate Hi there,

We just deployed a perfectly working Umbraco site to a staging environment that uses a self-signed SSL cert and when we attempt to Save/Publish anything in BackOffice, we get the following error:

dependencyhandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:15 GET https://[our-host-name]:8001/umbraco/backoffice/umbracoapi/content/postsave 405 (Method Not Allowed)

If I navigate directly to that url, I get:

)]}',
{"Message":"The requested resource does not support http method 'GET'."}

We're using the URLRewrite module for IIS with a specialized port number just to redirect any HTTP requests to HTTPS. I've disabled that rule to see if that was the culprit, but doesn't make a difference. The umbracoUseSSL is set to true in web.config.

 <add key="umbracoUseSSL" value="true" />

Anyone experienced this before?

]]>
raza Tue, 26 Jul 2016 22:13:32 +00:00
Newtonsoft.Json version issue https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/78918-newtonsoftjson-version-issue https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/78918-newtonsoftjson-version-issue I have just installed TeaCommerce V3.1.1 onto a copy of Umbraco 7.3.4 and am running into an issue when I try to expand my store node in that it gives the following message.

If I try to copy V8 of Newtonsoft into the bin folder, the website then breaks as Umbraco 7.3.4 (the official latest release) is expecting V6 of Newtonsoft.

Do you have any idea how I can get around this issue??

Could not load file or assembly 'Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) EXCEPTION DETAILS System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

]]>
Graham Carr Tue, 26 Jul 2016 15:10:53 +00:00
TinyMCE - Duplicating previous lines content - html structure and attributes https://our.umbraco.org/forum/using-umbraco-and-getting-started/78911-tinymce-duplicating-previous-lines-content-html-structure-and-attributes https://our.umbraco.org/forum/using-umbraco-and-getting-started/78911-tinymce-duplicating-previous-lines-content-html-structure-and-attributes My first post here so apologies if I miss anything obvious. I am running v 7.4.3 OTB

My issue is that in the RTE if I edit the html to include a custom class or nested structure when I hit return to go the next line TinyMCE includes the html and attributes from above in the next line.

e.g. if i modify the html to include the class and text below then hit return the source code looks like this:

<p class="hello-world">lorem ipsum</p>
<p class="hello-world"></p>

Is this the expected behaviour?

If it is can it be turned off and how?

My real world example is that I want to create a plugin to create links with extra classes for styling but I don't want this styling to be persisted if I hit return to write content on a new line.

If it is the normal behaviour one way round it could be to call the remove formatting button / function beforehand but I'm not sure what this call would look like?

Thanks for reading :)

]]>
David Hutson Tue, 26 Jul 2016 12:23:00 +00:00
Varient Uniqueness workaround https://our.umbraco.org/projects/collaboration/merchello/merchello/78910-varient-uniqueness-workaround https://our.umbraco.org/projects/collaboration/merchello/merchello/78910-varient-uniqueness-workaround Rusty,

I need to customize a product variant, say:

  1. Silver, Pencil Set, with engraving: Engraving-Inscription-1,
  2. Silver, Pencil Set, with engraving: Engraving-Inscription-2

In the cart, these are added as the same variant, with Qty 2, can you tell me how I can alter the logic of the Basket, so that when I add these two variants, so they are treated as two distinct items (line items) in the Basket?

I tried altering the Variant name, but it appears the Basket logic is looking at variant attributes only to determine uniqueness?

Dynamic variants I suspect are beyond the current design?

I can track the "dynamic variant" data using extended data from addToBasket, through to payment-applied.

Any ideas?

Thanks.

]]>
Greg Tue, 26 Jul 2016 12:10:14 +00:00
Upgrade Umbraco and uSync https://our.umbraco.org/projects/developer-tools/usync/usync/78908-upgrade-umbraco-and-usync https://our.umbraco.org/projects/developer-tools/usync/usync/78908-upgrade-umbraco-and-usync Hello,

I've got an Umbraco 7.1.4 website with uSync 2.3.0. I want to upgrade my Umbraco project to 7.4.3 because we need some of the new features. I also want to upgrade uSync to 3.1.4.740 so it's compatible.

The current version of uSync isn't installed with NuGet.

These are my upgrade steps:

  1. Remove uSync 2.3 through the package installer.
  2. Upgrade Umbraco to 7.4.3 with NuGet.
  3. Install uSync 3.1.4.740 with NuGet.

Would the above steps work? Any other suggestions? Thanks for your help!

Jeroen

]]>
Jeroen Breuer Tue, 26 Jul 2016 11:22:40 +00:00
Product Querying on product variant attributes https://our.umbraco.org/projects/collaboration/merchello/merchello/78891-product-querying-on-product-variant-attributes https://our.umbraco.org/projects/collaboration/merchello/merchello/78891-product-querying-on-product-variant-attributes Take the following query which populates the store page on a site I am working on. The page has a selection of filters that can be applied to the list but this page is incredibly slow to load due to a slow response time in querying the products.

this._products = (from p in this.Content.GetPropertyValue<IEnumerable<IProductContent>>("products")
                  where p.GetPropertyValue<string>("colour") == this.Colour || string.IsNullOrEmpty(this.Colour)
                  where p.GetPropertyValue<string>("heel") == this.Heel || string.IsNullOrEmpty(this.Heel)
                  where (p.HasValue("construction") && p.GetPropertyValue<string>("construction") == this.Construction || string.IsNullOrEmpty(this.Construction))
                  where p.ProductVariants.Any(v => v.Attributes.Any(x => x.Name == this.Size) || string.IsNullOrEmpty(this.Size))
                  select p).ToArray();

Is there a more efficient way of performing this sort of search/filtering? Do I need to add an event handler and start customising the Examine Product to add my search fields and then use examine instead of the above approach?

Thanks, Simon

]]>
Simon Dingley Mon, 25 Jul 2016 14:21:24 +00:00
Umbraco forms https://our.umbraco.org/forum/umbraco-forms/78880-umbraco-forms https://our.umbraco.org/forum/umbraco-forms/78880-umbraco-forms Hi, I am trying to create a form, i currently have approx 30 questions but still need to add more but won't let me save the form if I add anymore, is there a limit and if there is can I increase the limit? Thanks Katie

]]>
Katie Mon, 25 Jul 2016 02:17:13 +00:00
where do I put a call to a external api https://our.umbraco.org/forum/using-umbraco-and-getting-started/78868-where-do-i-put-a-call-to-a-external-api https://our.umbraco.org/forum/using-umbraco-and-getting-started/78868-where-do-i-put-a-call-to-a-external-api Hello,

Im learning asp.net mvc and Umbraco on this moment.

Now Im trying the following.

I have to read some pictures from a external api and place them on the front-page. There are a lot some 2000

I have to do three steps to make this work.

1) Get all the images numbers from the external api.

2) With that number I can ask on another url for the image data like the author,

3) With that number I can ask on yet another url for the image so I can post it.

Where do I put the code that calls all the data and what is the most efficient way to make this all work so it will not take hours to get all the data.

]]>
Roelof Sun, 24 Jul 2016 08:55:33 +00:00
Surface Controllers https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/78835-surface-controllers https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/78835-surface-controllers Umbraco Noob here, I have found the documentation to be very underdeveloped for Umbraco 7 as it seems to rely on people having used prior versions.

I have created a surface controller and uploaded it to the site.

I have tried creating it VS2015 and it does not work, the documentation is incredibly light on any details as to how it should be implemented exactly. (should it use namespaces etc.)

Yes put the cs file in the controllers folder and make sure there is a corresponding action cshtml file in a folder named the same as the controller.

Folder Structure

Controller:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

    public class ClassifiedController : Umbraco.Web.Mvc.SurfaceController
    {
        // GET: Classified
        [HttpPost]
        public ActionResult index()
        {

            return View();
        }
    }

index.cshtml

@{
     Layout = null;
}


<div>
    <div> 
        hello
    </div>
</div>

Error message below, I believe it is happening when it tries to find routes or something to that effect. Error Message

Stacktrace: enter image description here

Are there any actual tutorials out there to create and apply surface controllers? Anybody know what is going on?

If you have a solution, please do not assume I know what libraries you are using and paste all your code.

]]>
Damien Fri, 22 Jul 2016 05:02:48 +00:00
Using AzureDirectory with Examine https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/78818-using-azuredirectory-with-examine https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/78818-using-azuredirectory-with-examine Hello,

I'm trying to use AzureDirectory with Examine 0.1.69-beta. Based on this tweet I did the following:

Created an AzureDirectoryFactory

public class AzureDirectoryFactory : IDirectoryFactory
{
    public Directory CreateDirectory(LuceneIndexer indexer, string luceneIndexFolder)
    {
        return new AzureDirectory(CloudStorageAccount.Parse(ConfigSettings.AzureConnectionString), ConfigSettings.AzureUmbracoExamineContainerName);
    }
}

I've updated the ExamineSettings.config file like this:

<add name="ContentIndexer" 
      type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
      directoryFactory="Project.Web.Core.ExamineAzure.AzureDirectoryFactory, Project.Web.Core"/>

After running the code I see the new container in the blob storage, but it's empty.

In the error log I get the following exception:

Provider=ContentIndexer, NodeId=-1
System.Exception: An error occurred creating the index,Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (404) Not Found. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
   --- End of inner exception stack trace ---
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
   at Examine.Directory.AzureDirectory.AzureLock.IsLocked() in d:\data\inetpub\project\Sources\Project.Web.Core\ExamineAzure\AzureLock.cs:line 29
   at Examine.LuceneEngine.Providers.LuceneIndexer.CreateNewIndex(Directory dir) in X:\Projects\Examine\Examine\Projects\Examine\LuceneEngine\Providers\LuceneIndexer.cs:line 700
Request Information
RequestID:80c08410-0001-0029-662c-e32123000000
RequestDate:Thu, 21 Jul 2016 08:45:29 GMT
StatusMessage:The specified blob does not exist.
, IndexSet: ContentIndexSet

In the code the error happens at:

var blob = _azureDirectory.BlobContainer.GetBlobReferenceFromServer(_lockFile);

It's here on github: https://github.com/Shazwazza/Examine/blob/master/Examine.Directory.AzureDirectory/AzureLock.cs#L29

Do I need to manually need to create the blob or is there something else I'm doing wrong?

Thanks for your help.

Jeroen

]]>
Jeroen Breuer Thu, 21 Jul 2016 09:40:11 +00:00
breadcrumbs - Template v PartialViewMacro in Webforms site https://our.umbraco.org/forum/templates-partial-views-and-macros/78152-breadcrumbs-template-v-partialviewmacro-in-webforms-site https://our.umbraco.org/forum/templates-partial-views-and-macros/78152-breadcrumbs-template-v-partialviewmacro-in-webforms-site I'm having trouble with the OrderBy in my PartialViewMacro in my WebForms website (umbraco version 743)

This works in the template:

<umbraco:Macro  runat="server" language="cshtml">
@if (Model.Ancestors().Any())
    {
                <div id="breadcrumbs" class="btn-group btn-breadcrumb">
                @* For each page in the ancestors collection which have been ordered by Level (so we start with the highest top node first) *@
                @foreach (var page in Model.Ancestors().OrderBy("Level"))
                {
                    if (page.Parent != null){
                    <a class="btn btn-default" href="@page.Id">@page.Name</a> 
                    } else {
                    <a href="@page.Id" class="btn btn-default"><i class="fa fa-home" aria-hidden="true"></i><span class="sr-only">Home</span></a>
                    <div class="btn btn-default ellipsis">...</div>
                    }


                }

                @* Display the current page as the last item in the list *@
                <div class="btn btn-default disabled">@Model.Name</div>
                </div>
}
</umbraco:Macro>

but this doesn't work in a Partial View Macro:

@inherits Umbraco.Web.Macros.PartialViewMacroPage

@if (CurrentPage.Ancestors().Any())
    {
                <div id="breadcrumbs" class="btn-group btn-breadcrumb">
                @* For each page in the ancestors collection which have been ordered by Level (so we start with the highest top node first) *@
                @foreach (var page in CurrentPage.Ancestors().OrderBy("Level").Where("Visible"))
                {

                    if (page.Parent != null){
                    <a class="btn btn-default" href="@page.Id">@page.Name</a> 
                    } else {
                    <a href="@page.Id" class="btn btn-default"><i class="fa fa-home" aria-hidden="true"></i><span class="sr-only">Home</span></a>
                    <div class="btn btn-default ellipsis">...</div>
                    }


                }

                @* Display the current page as the last item in the list *@
                <div class="btn btn-default disabled">@CurrentPage.Name</div>
                </div>
}

I've output the value from @page.Level to check it, and it is "2" for all levels above 1, even when it should be 3 or higher.

Any help would be fantastic.

Thanks,

Muiris.

]]>
MuirisOG Tue, 21 Jun 2016 10:40:27 +00:00
umbraco forms error: has not been loaded & is required for Umbraco Forms 7 https://our.umbraco.org/forum/umbraco-forms/77812-umbraco-forms-error-has-not-been-loaded-is-required-for-umbraco-forms-7 https://our.umbraco.org/forum/umbraco-forms/77812-umbraco-forms-error-has-not-been-loaded-is-required-for-umbraco-forms-7 I already have jquery in the page but the umbraco forms still shows this where the form should be any ideas why?

jQuery has not been loaded & is required for Umbraco Forms. See Umbraco Forms Documentation

]]>
Mark Wed, 08 Jun 2016 00:36:20 +00:00
PreValueDisplayResolver - Could Not Find Persisted Pre-Value for Field https://our.umbraco.org/forum/using-umbraco-and-getting-started/77743-prevaluedisplayresolver-could-not-find-persisted-pre-value-for-field https://our.umbraco.org/forum/using-umbraco-and-getting-started/77743-prevaluedisplayresolver-could-not-find-persisted-pre-value-for-field Recently upgraded Umbraco from 6.x to 7.4.3. Fixed most of the issue so far, though I've noticed a few of these in my Umbraco log:

 2016-06-03 12:34:19,000 [P12168/D2/T6] WARN  Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field preview
 2016-06-03 12:34:19,000 [P12168/D2/T6] WARN  Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field defaultValue
 2016-06-03 12:34:43,117 [P12168/D2/T12] WARN  Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field showOpenButton
 2016-06-03 12:34:43,117 [P12168/D2/T12] WARN  Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field showEditButton
 2016-06-03 12:34:43,117 [P12168/D2/T12] WARN  Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field startNodeId
 2016-06-03 12:34:43,117 [P12168/D2/T12] WARN  Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field showPathOnHover
 2016-06-03 12:34:43,526 [P12168/D2/T12] WARN  Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field default
 2016-06-03 12:37:13,818 [P12168/D2/T13] WARN  Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field max

Anybody know what might be causing this and if it's something I should worry about?

I wonder if this is related to the models builder that now comes with Umbraco, though I disabled it in my web.config:

<add key="Umbraco.ModelsBuilder.Enable" value="false" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" />
]]>
Nicholas Westby Fri, 03 Jun 2016 19:43:13 +00:00
Wistia Videos and Oembed https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/77581-wistia-videos-and-oembed https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/77581-wistia-videos-and-oembed I am trying to add Wistia videos to the EmbeddedMedia.config file

I have added the following entry

 <!-- Wistia Settings -->
  <provider name="Wistia, Inc." type="Umbraco.Web.Media.EmbedProviders.OEmbedVideo, umbraco">
    <urlShemeRegex><![CDATA[http?:\/\/(.+)?(wistia.com|wi.st)\/(medias|embed)\/.*/)]]></urlShemeRegex>
    <apiEndpoint><![CDATA[http://fast.wistia.com/oembed.xml]]></apiEndpoint>
    <requestParams type="Umbraco.Web.Media.EmbedProviders.Settings.Dictionary, umbraco" />
  </provider>

But is just says 'Computer says no' when I try to use it. How can I trace it and see where it is going wrong or has anyone done this before and knows the correct settings?

Thanks all

]]>
rich hamilton Fri, 27 May 2016 14:47:36 +00:00
Umbraco.UploadField woes https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/77342-umbracouploadfield-woes https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/77342-umbracouploadfield-woes I've tried to create an Umbraco.UploadField in code for my own document type, but when I upload an image, I get an error message. Any help would be appreciated:

The error is

An error occured

One or more errors occurred.

EXCEPTION DETAILS

System.AggregateException: One or more errors occurred.
STACKTRACE

at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Umbraco.Web.WebApi.Binders.ContentItemBaseBinder`2.BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext)
   at System.Web.Http.ModelBinding.ModelBinderParameterBinding.ExecuteBindingAsync(ModelMetadataProvider metadataProvider, HttpActionContext actionContext, CancellationToken cancellationToken)
   at System.Web.Http.Controllers.HttpActionBinding.<ExecuteBindingAsyncCore>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.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
INNER EXCEPTION

System.AggregateException: One or more errors occurred.
at Umbraco.Web.WebApi.Binders.ContentItemBaseBinder`2.<>c__DisplayClass2.<BindModel>b__0(Task`1 x)
   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
INNER EXCEPTION

System.Web.Http.HttpResponseException: Processing of the HTTP request resulted in an exception. 
Please see the HTTP response returned by the 'Response' property of this exception for details.
at Umbraco.Web.WebApi.Binders.ContentItemBaseBinder`2.<GetModelAsync>d__5.MoveNext()
]]>
MuirisOG Tue, 17 May 2016 17:03:17 +00:00
Custom payment gateway with form post https://our.umbraco.org/projects/collaboration/merchello/merchello/76814-custom-payment-gateway-with-form-post https://our.umbraco.org/projects/collaboration/merchello/merchello/76814-custom-payment-gateway-with-form-post Hi!

Great package! Love this project!

I'm looking at how to write a payment provider for the package and I can't really figure it out.

Must of the payment gateways here in sweden requires us to post a form in the browser and redirect the user to the payment provides page.

I've looked at over 5-6 examples of provider implementaitons but I can't seem to figure out how this can be done?

The specific provider that I'm implementing against right now has a process that looks something like this:

  1. Use the API to create the "transaction", store the transaction-id
  2. Redirect the users browser and include the transaction-id
  3. The gateway posts the result to a predifined url and depending on outcome the gateway will redirect the user back to the website.

How would I implement this with Merchello? Is there any hits, reading or examples out here?

Thanks for the help!

]]>
Markus Johansson Fri, 22 Apr 2016 16:14:08 +00:00
How to provide a separate database connection to Umbraco Forms? https://our.umbraco.org/forum/umbraco-forms/76688-how-to-provide-a-separate-database-connection https://our.umbraco.org/forum/umbraco-forms/76688-how-to-provide-a-separate-database-connection Hi,

I have Umbraco Forms 4.2.1 installed in 7.3.8 and running ok.

We'd like to have the Forms tables in a separate database so that user submitted data is separate from the site database.

I've had a stab at setting

Umbraco.Forms.Core.Configuration.DatabaseConnection = "my other db string";

in OnApplicationStarting but the main Umbraco connection still gets used.

Any ideas how I can override the database connection Forms uses?

Thanks, Si

]]>
Si Burgess Mon, 18 Apr 2016 16:17:32 +00:00
Inserting a macro into TinyMCE creates multiple unwanted <p> tags on subsequent edits. https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/75285-inserting-a-macro-into-tinymce-creates-multiple-unwanted-p-tags-on-subsequent-edits https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/75285-inserting-a-macro-into-tinymce-creates-multiple-unwanted-p-tags-on-subsequent-edits Hi,

I'm having an issue when inserting macros into the TinyMCE. I've created an example to demonstrate. I enter a few paragraphs of text to see the following HTML.

<p>This is a test to see paragraph markers being inserted into the RTE.</p>
<p>This is a new paragraph (just one).</p>
<p>This is another paragraph. Below is a iframe macro.</p>
<p>This paragraph is below the iframe macro.</p>
<p>This is the last paragraph. I've only ever used one paragraph break at a time.</p>

If I now insert a macro (I've tried a couple of different ones) and "Save and publish", everything is still fine.

<p>This is a test to see paragraph markers being inserted into the RTE.</p>
<p>This is a new paragraph (just one).</p>
<p>This is another paragraph. Below is a iframe macro.</p>
<div class="umb-macro-holder mceNonEditable"><!-- <?UMBRACO_MACRO macroAlias="InsertPlainHTML" Script="&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/eZKaeyTs1n4&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;" /> --> <ins><iframe width="560" height="315" src="https://www.youtube.com/embed/eZKaeyTs1n4" frameborder="0" allowfullscreen=""></iframe></ins></div>
<p>This paragraph is below the iframe macro.</p>
<p>This is the last paragraph. I've only ever used one paragraph break at a time.</p>

However, if I change some of the surrounding text, sometimes it will be fine, but then all of a sudden it will insert multiple extra <p></p> tags all throughout the text. Producing:

<p>This is a test to see paragraph markers being inserted into the RTE.</p>
<p> </p>
<p> </p>
<p> </p>
<p>This is a new paragraph (just one).</p>
<p> </p>
<p> </p>
<p> </p>
<p>This is another paragraph. Below is a iframe macro.</p>
<p> </p>
<p> </p>
<p> </p>
<div class="umb-macro-holder mceNonEditable"><!-- <?UMBRACO_MACRO macroAlias="InsertPlainHTML" Script="&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/eZKaeyTs1n4&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;" /> --> <ins><iframe width="560" height="315" src="https://www.youtube.com/embed/eZKaeyTs1n4" frameborder="0" allowfullscreen=""></iframe></ins></div>
<p> </p>
<p> </p>
<p> </p>
<p>This paragraph is below the iframe macro.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>This is the last paragraph. I've only ever used one paragraph break at a time.</p>

I'm using Umbraco 7.3.0.

The macros are "MVC Partial view" macros, here's an example of the one used above but, as I say, it happens with any I've tried.

@inherits Umbraco.Web.Macros.PartialViewMacroPage

@if (Model.MacroParameters["Script"] != null && !String.IsNullOrEmpty(Model.MacroParameters["Script"].ToString()))
{
    @Html.Raw(HttpUtility.HtmlDecode(Model.MacroParameters["Script"].ToString()))
}

Anyone seen anything similar and found a solution? I did try searching around, but could find nothing.

Thanks, Stuart.

]]>
Stuart Mullinger Mon, 22 Feb 2016 10:54:47 +00:00
Error with my query https://our.umbraco.org/forum/ourumb-dev-forum/bugs/71113-error-with-my-query https://our.umbraco.org/forum/ourumb-dev-forum/bugs/71113-error-with-my-query I tried searching for "icon-picture" (with the quotes) in the forum and got a YSOD.

I guess I should know better than to query anything with quotes :-/

]]>
MuirisOG Wed, 02 Sep 2015 16:55:05 +00:00
'Argument is not a function, got undefined' JS error in custom section https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/70645-argument-is-not-a-function-got-undefined-custom-section https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/70645-argument-is-not-a-function-got-undefined-custom-section Hi,

Update - The package.manfiest file isn't loading. I suppose that now poses a different question. Why isn't it loading? The path is correct and there's only one package.manfiest file in the folder. I've cleared Client Dependency cache and browser cache, touched web.config too, even restarted IIS express.

I'm getting the following javascript error in 7.2.6 when building a custom section in the back office of Umbraco. (When clicking on a root tree node to load up the edit view).

Argument 'MyApp.MyEditController' is not a function, got undefined

As you can see MyApp.MyEditController is just a simple test. My edit.html is as follows:

<div ng-controller="MyApp.MyEditController"></div>

My package.manfiest file (located at /App_Plugins/MyApp/package.manifest) contains:

{
  javascript: [
      '~/App_Plugins/MyApp/BackOffice/MyAppTree/controllers/edit.controller.js'
  ]
}

And finally the edit.controller.js is also very basic:

angular.module("umbraco").controller("MyApp.MyAppEditController", 

    function ($scope, $routeParams, notificationsService, navigationService) {

    console.log($routeParams);
});

Whether it's a simple test like this or not the issue persists.

Does anyone have any idea why this is happening?

Note the section itself works fine otherwise, it is only on the edit view of a tree node.

The package.manfiest file isn't loading. I suppose that now poses a different question. Why isn't it loading? The path is correct and there's only one package.manfiest file in the folder.

Thanks,

Dave

]]>
David Parr Wed, 19 Aug 2015 13:47:46 +00:00
Install Visual Studio incomplete? https://our.umbraco.org/forum/getting-started/installing-umbraco/70567-install-visual-studio-incomplete https://our.umbraco.org/forum/getting-started/installing-umbraco/70567-install-visual-studio-incomplete Hi,

I'm new to Umbraco.

I've tried to install Umbraco several times from NuGet in Visual Studio. There are no errors but it seems like most of the solution is missing. I only get the 'Config' and 'Views' folder, all other folders are missing. I can run it however... Seems to work ok, I just can't develop anything without the directories available in Visual Studio. I started using VS2015, but also in VS2013 and VS2013 with 2012 template no luck. Even tried an older version of Umbraco (newest right now is 7.2.8).

What am I doing wrong here?

Second question: I used VS2015 to set up Umbraco in Azure. Besides the missing folders, everything went well. I had to set up Umbraco locally and pointed it to the Azure database. Deployed it to Azure, no errors. Funny thing here is that locally, both front view and admin panel are working fine, but in Azure, only the admin panel works, the website on the front is empty. I guess setting up Umbraco locally before (being able to) deploy it to Azure causes a problem in the link between admin panel and front end. Any idea where I can find that setting and/or how to solve this problem?

]]>
Chantal Mon, 17 Aug 2015 21:27:17 +00:00
Image Uplade https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/70464-image-uplade https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/70464-image-uplade I create new tab to Content. This tab i add html elemet.

how programmatically i cant add "file uplade" where l cant get image to media?

]]>
Ennija Thu, 13 Aug 2015 11:28:49 +00:00
Failed to retrieve data for application tree merchello https://our.umbraco.org/projects/collaboration/merchello/merchello/65163-Failed-to-retrieve-data-for-application-tree-merchello https://our.umbraco.org/projects/collaboration/merchello/merchello/65163-Failed-to-retrieve-data-for-application-tree-merchello Hi All,

I've installed Merchello 1.8.3 into Umbraco 7.2.5 and get this error when browsing to the Merchello admin area in back office. This Umbraco install is nearly blank, the only items created is a few document types and templates. Content created is just some place holder pages for Home Page, About Us, etc.

Received an error from the server Failed to retrieve data for application tree merchello

Object reference not set to an instance of an object.

EXCEPTION DETAILS:

System.NullReferenceException: Object reference not set to an instance of an object. STACKTRACE:

at Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromControllerTree(ApplicationTree appTree, String id, FormDataCollection formCollection, HttpControllerContext controllerContext) at Umbraco.Web.Trees.ApplicationTreeController.d17.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.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Umbraco.Web.Trees.ApplicationTreeController.d4.MoveNext()

This is a screenshot of the page in back office http://i.imgur.com/ouXlZOz.png Does anyone have any advice on where to go from here?

Thanks in advance,

David

]]>
David Redmond Fri, 29 May 2015 08:48:02 +00:00
Adding a content picker as a grid editor https://our.umbraco.org/forum/developers/extending-umbraco/60740-Adding-a-content-picker-as-a-grid-editor https://our.umbraco.org/forum/developers/extending-umbraco/60740-Adding-a-content-picker-as-a-grid-editor Hey there :) 

Im on a project where we are gonna have quite a few widgets that is going to be reusable, and here my idea was to have a node structure with different kind of widgets. So inside the grid i want add content/tree picker where you just select the widget you want to insert. So basicly a treepicker starting from a special node/place in the tree and just saving the node id. 

So far i have added this to the grid.editors :

 "name": "Widget",
        "alias": "widget",
        "view": "widget",
        "icon": "icon-umb-developer color-orange"

So now im hitting rock bottom, any articles to help me on from here? or anyone done something similar?

 

]]>
Rasmus Fjord Sun, 25 Jan 2015 22:58:46 +00:00
Creating a product on the fly https://our.umbraco.org/projects/collaboration/merchello/merchello/59840-Creating-a-product-on-the-fly https://our.umbraco.org/projects/collaboration/merchello/merchello/59840-Creating-a-product-on-the-fly Hi Rusty,

Could you please provide some sample code for creating a dynamic product as it doesn't seem to be documented anywhere. I would like to assign it a price, title and then some custom properties - in my particular case, two dates.

The user will fill out some form data, this will be posted to the controller which will calculate price, create the product and then display it for the customer to see. The user should then be able to click 'add to basket' or 'add to basket and checkout'.

]]>
Martin Tue, 16 Dec 2014 22:42:01 +00:00
IPublishedContent and GatheringNodeData https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/57892-IPublishedContent-and-GatheringNodeData https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/57892-IPublishedContent-and-GatheringNodeData Hello,

I can't seem to find any way to get an IPublishedContent in the GatheringNodeData event.  The UmbracoContext is null so I can't use the helper.

I have a lot of methods that rely on the IPublishedContent interface and I have to do a lot of manipulation of data before it is stored in the search index. This means I effectively need to duplicate all my code to work with Nodes which is seriously uncool!

Ccertain methods don't work on nodes either, like GetCropUrl() etc so it's really causing me issues.

Is there a way?

]]>
Valerie Thu, 06 Nov 2014 10:20:23 +00:00
GetCropUrl not providing cropped image https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/55598-GetCropUrl-not-providing-cropped-image https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/55598-GetCropUrl-not-providing-cropped-image I am calling GetCropUrl("image", "HomePage") on my Model object and when I look at the src generated it is indeed showing the expected URL matching the width and height of my defined crop i.e.:

"/media/1096/calcfeatured2-721x407.png?anchor=center&mode=crop&width=80&height=80&rnd=130525227080000000"

However the image is renderd at its full height and width, not at 80 x 80 !

Any ideas how to track this one down. I am seeing nothing in the log files.

Thanks

Russell

]]>
Russell McGinnis Fri, 15 Aug 2014 01:11:29 +00:00
Login failed for user in Umbraco 7 https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/50407-Login-failed-for-user-in-Umbraco-7 https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/50407-Login-failed-for-user-in-Umbraco-7 Hi All,

I'm having an issue with Umbraco 7.1 (developing on localhost), with which I can't login to the Umbraco UI and I receive the message "Login failed for user MyUser". Using developers tools I also get the error "Failed to load resource: the server responded with a status of 400 (Bad Request) http://mysite.local/umbraco/backoffice/UmbracoApi/Authentication/PostLogin

Is this something to do with using localhost maybe or is there another reason? A few other people have had what seems the same issue but none of those threads have a conclusion, so I was hoping there might be an update on the issue at this point?

I've tried fresh installs of versions Umbraco 7.1 & 7.1.1 with MySQL 5.6, .NET Framework 4.5.1 & IIS7. I've also tried it in Chrome and Firefox browsers as I heard Chrome can have issues with caching. Any help would be really appreciated.

Kind Regards

]]>
pronto Tue, 29 Apr 2014 16:41:23 +00:00