https://discord.umbraco.com
Join Discord
Smidge fails to find files
l

Luuk Peters (Proud Nerds)

10 months ago
I have an Umbraco 13 project (13.5.2, also tried to update to 13.6.0) where smidge fails to generate it's cache with an error:
[12:34:07 ERR] Connection id "0HNA1TCKBP0T2", Request id "0HNA1TCKBP0T2:0000000B": An unhandled exception was thrown by the application.
System.IO.FileNotFoundException: No such file exists /umbraco/assets/css/umbraco.min.css (mapped from /umbraco/assets/css/umbraco.min.css)
File name: '/umbraco/assets/css/umbraco.min.css'
   at Smidge.SmidgeFileSystem.GetRequiredFileInfo(IWebFile webfile)
   at Smidge.FileProcessors.PreProcessManager.<>c__DisplayClass8_0.<ProcessFileImpl>b__0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.CreateValue()
   at Smidge.FileProcessors.PreProcessManager.ProcessFileImpl(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
   at Smidge.FileProcessors.PreProcessManager.ProcessFile(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
   at Smidge.FileProcessors.PreProcessManager.ProcessAndCacheFileAsync(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
   at Smidge.Controllers.SmidgeController.Bundle(BundleRequestModel bundleModel)
https://cdn.discordapp.com/attachments/1334850297603821568/1334850582518825011/image.png?ex=679e07fb&is=679cb67b&hm=5d0a19c60737a6792e46ed5da08d135f6ac48db480abf9d5ee8cddd42599087c&
l
s
+3
  • 5
  • 24
  • 147
Custom labels in Umbraco 14 Blocks
d

Dixi

over 1 year ago
Hi guys, are there any docs on the label formatting options for blocks in block list / grid in Umbraco 14? The official docs are still pending to be updated
d
p
+5
  • 7
  • 12
  • 147
Excluding items from search
t

TigerMan

about 1 year 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
  • 146
Where to put my changes to Program/Startup.cs
s

skttl

almost 2 years ago
I'm doing a 12->13 upgrade, and I want to move all my custom stuff out of the new Program.cs file, to keep it untouched as I think it will make upgrades easier going forward. But I have some stuff, I'm unsure where to place. Can you help me with the following? - In Startup.cs/Configure, I have a
context.Database.Migrate();
context being the EF context for some custom db work, is injected into Startup.cs. - app.UseExceptionHandler("/error-500") in Startup.cs/Configure - app.UseResponseComporession() in Startup.cs/Configure - Host.....ConfigureAppConfiguration((context, builder) => { builder.AddJsonFile($"appsettings.Local.json", true, true).AddEnvironmentVariables(); }) in Program.cs/CreateHostBuilder Can I put everything in a Composer? I guess some of it should be middleware, at least the docs told me to do that for my CORS policy 🙂
s
d
  • 2
  • 5
  • 146
Migrate Nested Content to Block List in v13 site
d

Dan

over 1 year ago
Hi, I have an Umbraco 13 site which uses Nested Content (it was upgraded from an earlier version, hence the use of the now legacy data type). I'd like to update it to use Block Lists instead. I'm not clear whether it's possible to use uSync Migrations for this, since the documentation suggests the Packer is only for v7 and v8 sites. Is there a way to run the migrations on a v13 site? If so, is it possible to do this 'in situ' or would it need to be run as an export and clean import to a fresh site?
d
  • 1
  • 1
  • 145
Fresh v13 install on Arm64 (Surface Pro 11)
b

Barry Fogarty

over 1 year ago
Morning! I have a shiny new Surface Pro 11 with the Snapdragon Arm64 chip and I'm having difficulty installing v13 on it. The site builds and boots, but I get a 503 Service Unavailable console error in the
GetSetup
Umbraco API call. Nothing relevant in the Umbraco logs. This happens before the install form appears on the frontend. Interestingly a v14 install works fine, as does an unintended install via
dotnet new umbraco
e.g. the latest LTS with Clean Starter Kit example from Paul Seal's excellent package script writer: https://psw.codeshare.co.uk/?TemplateName=Umbraco.Templates&TemplateVersion=LTS&Packages=&UserEmail=admin%40example.com&ProjectName=MyProject&CreateSolutionFile=true&SolutionName=MySolution&UseUnattendedInstall=true&DatabaseType=SQLite&UserPassword=1234567890&UserFriendlyName=Administrator&IncludeStarterKit=true&StarterKitPackage=clean&OnelinerOutput=false&RemoveComments=false Could be a bug and I'll need to log an issue, but interested to hear if anyone else has tried this on Arm64? It should be the same as what has worked on Mac/Linux for a while right? Could it be to do with the NodeJs version installed on my machine? Thanks!
b
s
+8
  • 10
  • 50
  • 145
Has the SendingAllowedChildrenNotification been deprecated for V14?
m

marcemarc

over 1 year ago
There is this event in V8->v13 called SendingAllowedChildrenNotification that allows you to use c# to hook into the building of the list of types of documents you can create under a node. I was about to suggest somebody used it in V13, as a way to stop multiple 'Site Setting' nodes from being created, but thought I'd check it was still there, and I couldn't see it in V14? is it no longer a thing?? https://github.com/umbraco/Umbraco-CMS/blob/v13/contrib/src/Umbraco.Core/Notifications/SendingAllowedChildrenNotification.cs
m
s
+7
  • 9
  • 31
  • 144
Linux GUI Git Client Suggestions
w

Warren Buckley

11 months ago
Playing with a Ubuntu VM just to test some repos/code on a Linux box without Windows WSL. Surprised how many apps I use have a linux version, but one I don't is Git Fork. So if you use a Linux flavoured OS, what GUI based Git client are you using.
w
c
+5
  • 7
  • 12
  • 142
Custom NPOCO database connection... is this a sane approach?
j

Jason

over 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
  • 142
Umbraco 15, deploy on Ubuntu 24, missing Microsoft.AspNetCore.Server.IIS
b

Blago Culjak

about 1 year ago
This is error when upgraded site from v14 to v 15 upgrading: > Nov 18 17:08:37 vmi1813232.contaboserver.net systemd[1]: Started greencode.service - Green Code service. > Nov 18 17:08:40 server.net greencode[18474]: Unhandled exception. System.TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.IISServerOptions' from assembly 'Microsoft.AspNetCore.Server.IIS, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. > Nov 18 17:08:40 server.net greencode[18474]: at Umbraco.Extensions.UmbracoBuilderExtensions.AddWebServer(IUmbracoBuilder builder) > Nov 18 17:08:40 server.net greencode[18474]: at Umbraco.Extensions.UmbracoBuilderExtensions.AddBackOffice(IUmbracoBuilder builder, Action`1 configureMvc) > Nov 18 17:08:40 server.net greencode[18474]: at Program.$(String[] args) in /home/github-runner/actions-runner/_work/GreenCode/GreenCode/GreenCode/Program.cs:line 17 Program.cs, line 17:
builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddDeliveryApi()
    .AddComposers()
    .Build();
Is there some dependency that is forcing us to use IIS everywhere?
b
s
+2
  • 4
  • 10
  • 140
Previous192021Next

Umbraco

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

Powered by