https://discord.umbraco.com
Join Discord
Upgrading from v10 to v13
d

Dean Leigh

over 1 year ago
Is there documentation or any good articles for Upgrading from v10 to v13? Do I need to go through 11 and 12 first? I have already run into this error going from 10 to 11:
Error during installation
The database failed to upgrade. ERROR: The database configuration failed with the following message: The migration plan does not support migrating from state "{83AF7945-DADE-4A02-9041-F3F6EBFAC319}".
d
d
+5
  • 7
  • 24
  • 110
Custom NPOCO database connection... is this a sane approach?
j

Jason

about 1 year ago
I guess this is only tangentially related to Umbraco but the NPOCO docs are a bit sparse and it's not the most popular library in the world. I'm hoping some other lovely Umbracians have experience with this. I've inherited a project I'm upgrading to v13 which uses NPOCO to connect to a different database to Umbraco. From what I can piece together across GitHub comments and Stack Overflow, it looks like the right way to use it is to instantiate and dispose the database object with every request - and rely on .NET's connection pooling to take care of perf... can anyone confirm if this approach is OK?
csharp
private IDatabase GetDatabase() => 
    new Database(ConnectionString, DatabaseType.SqlServer2012, SqlClientFactory.Instance);

public async Task<IEnumerable<vessel>> GetAll()
{
    using var database = GetDatabase();

    return await database.FetchAsync<vessel>("SELECT * FROM " + TableName + " ORDER BY Vessel");
}

//... other repository methods
j
l
  • 2
  • 1
  • 108
[SOLVED] Need Help with Microsoft Entra ID Authentication for Members in Umbraco 13.5.2
o

Olti

6 months ago
Hi everyone, I’m trying to implement Microsoft Entra ID Authentication for Members in an Umbraco CMS project following this official guide: [Add Microsoft Entra ID Authentication.](https://docs.umbraco.com/umbraco-cms/13.latest/tutorials/add-microsoft-entra-id-authentication?fallback=true) Here’s my setup: - Umbraco Version: 13.5.2 (.NET 8) - uSkinned Site Builder: 6.1.2 (though I believe it shouldn’t matter here). What I’ve done so far:
o
k
+2
  • 4
  • 72
  • 107
[Solved] Appsettings settings for Media Blob Storage
c

Craig100

7 months ago
V13.5.2 Trying to convert a site to use Azure Blob Storage with details given by the client's IT team, so having to trust them. Could someone let me know if I've put the right bits in the right holes please, or correct me if I (or their team) have got it wrong. They sent (anonymised of course ;)):- Blob Storage Name: umbracocmsabcd SAS Token: https://umbracocmsabcd.blob.core.windows.net/media?si=coname access&spr=https&sv=2022-11-02&sr=c&sig=abcdefghijklmnopqrstuvwxyz123456789123651236547891 Container Name: media In AppSettings I've done this:-
"Storage": {
      "AzureBlob": {
        "Media": {
          "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=umbracocmsabcd;AccountKey=abcdefghijklmnopqrstuvwxyz123456789123651236547891;EndpointSuffix=core.windows.net",
          "ContainerName": "media"
        }
      }
    }
With the two nuget packages installed and registered in program.cs as instructed in the V13 docs I get the following error when running the site (which crashes):-
System.FormatException: No valid combination of account information found.
   at Azure.Storage.StorageConnectionString.<>c.<Parse>b__67_0(String err)System.FormatException: No valid combination of account information found.
Thanks.
c
k
  • 2
  • 3
  • 107
Reinstall Umbraco 13 instance
c

CaptTaifun

11 months ago
I have an Umbraco 13 instance and would now like to reinstall it (i.e. set up a new database). I have deleted the SQLite database and the “ConnectionStrings” section from all appsettings.json files. When I now run Umbraco, I only get “Boot Failed”. And in the log file: System.InvalidOperationException: The factory has not been configured with a proper connection string.\n at Umbraco.Cms.Infrastructure.Persistence.UmbracoDatabaseFactory.Initialize()\n at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock What else do I have to do to recreate the database/reinstall the instance?
c
h
+4
  • 6
  • 8
  • 106
Getting all cultures of umbraco site
m

mehdimiah_

11 months ago
Hi friends so ive created a service that will essentially return all urls of the site upon request via api (i noticed you cant just get all page routes via delivery api) the issue is we will be going multi lingual, therefore i need to also return all of the routes for pages which are under a different culture. so i am able to do this manually by hard setting the culture (this is test code) _variationContextAccessor.VariationContext = new VariationContext("fr"); routes = _publishedContentQuery.Content(ids).Select(item => item.Url()).ToList(); but what i want to do is possibly get ahold of all available cultures in the cms then i can do this dynamically? unless someone has a better way of returning every node url including all cultures my code essentially - gets all ids of content from external index - gets all published content using a list of guids obtained from the index - returns all page routes in a list which is returned to caller
m
a
j
  • 3
  • 3
  • 106
How to find the problem block?
m

Matt Wise

almost 2 years ago
When saving and publishing (I have far too many content nodes to know which one, as its part of a migration) Is there a way I can debug to find the source of this: Error occurred executing workItem. Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Umbraco.Cms.Core.Models.Blocks.BlockValue'
m
d
  • 2
  • 7
  • 106
Block list label using UFM - Accessing nested properties
k

kirin-808

7 months ago
Hi there! We've just upgraded to Umbraco 14.3 and I'm trying to figure out how to access nested properties of field values for block list items. I'm using a color picker and used to be able to access what I needed with {{ backgroundColor.label }} but since the upgrade, the farthest I could go is with {=backgroundColor} which displays "[object Object]" as the label ( {=backgroundColor.label} displays an empty comment propably because it doesn't exist or has a null value).
k
k
k
  • 3
  • 5
  • 105
Excluding items from search
t

TigerMan

10 months ago
Hi everyone I have a simple class which retrieves items from Umbraco 13 using examine search and displays them. I was trying to exclude umbracoNaviHide pages by having the below var create = index.searcher.CreateQuery(Indextypes.Content).GroupedNot("umbracoNaviHide", "1") Using this it still returns pages which have been marked as hide. Is there a criteria I need this to meet or anyway to distinguish why this is occurring? Thank you
t
a
j
  • 3
  • 6
  • 105
Contentment on v13
r

RHamilton

over 1 year ago
Recently upgraded to v13.0.0 RC3 on .net 8 - Even though NuGet showed that I had Contentment installed, I could no longer see the Contentment data types, so I reinstalled & updated Contentment to v4.5.1 - after upgrading I got the following
Method 'ToArtifact' in type 'Umbraco.Community.Contentment.DataEditors.EditorNotesConfigurationConnector' from assembly 'Umbraco.Community.Contentment, Version=4.5.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Method 'ToArtifact' in type 'Umbraco.Community.Contentment.DataEditors.NotesConfigurationConnector' from assembly 'Umbraco.Community.Contentment, Version=4.5.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Method 'ToArtifact' in type 'Umbraco.Community.Contentment.DataEditors.RenderMacroConfigurationConnector' from assembly 'Umbraco.Community.Contentment, Version=4.5.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
@leekelleher - I see on github that you supporting v13 & v8! 🙌 😁 Do I need to update to Contentment 4.6.0? I am happy to, just don't see it in NuGet quite yet (even with "Include prerelease" selected) If it's not an upgrade issue, does anything jump out to you? FWIW this was a v12 to v13 upgrade. Possible that it's just because I'm on a RC these are expected wrinkles? Thanks, -Roger
r
l
  • 2
  • 6
  • 105
Previous192021Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by