https://discord.umbraco.com
Join Discord
Configuring SMTP for Umbraco
d

debeef

about 1 year ago
Hi im trying to setup my SMTP settings to no avail just yet. I have set up a sendgrid api key and have changed my appsettings to look like:
"Smtp": {
        "From": "__myemail__",
        "Host": "smtp.sendgrid.net",
        "Username": "apikey",
        "Password": "__sendgridapikey__"
      }
when I trigger an umbraco form workflow to send the email it returns with these logs [16:26:05 INF] Form Entry Submitted - Form Entry Id: 9ca4f052-821b-44a6-a07c-7c176d9440b6, Form Id: d601e99a-8932-4d39-9396-62285cab8651, User: [16:26:05 ERR] Core email service reports that email message cannot be sent. [16:26:05 INF] Form Entry Approved - Form Entry Id: 9ca4f052-821b-44a6-a07c-7c176d9440b6, Form Id: d601e99a-8932-4d39-9396-62285cab8651, User: if someone could help me out it would be greatly appreciated 🙏
d
k
  • 2
  • 2
  • 106
How to populate options of UUI-Select?
a

Aaron Sawyer

over 1 year ago
I'm reading through the UUI documentation and the example code doesn't actually show how to attach complex data such as an array to the UUI-Select component. I've tried this in my modal's render() method, and it doesn't work: render() { const targetOptions: Array = [ { name: 'Carrot', value: 'orange' }, { name: 'Cucumber', value: 'green' }, { name: 'Aubergine', value: 'purple' }, { name: 'Blueberry', value: 'Blue' }, { name: 'Banana', value: 'yellow' }, { name: 'Strawberry', value: 'red' }, ]; return html``; }
a
e
  • 2
  • 3
  • 105
umbraco 15 custom dropdown property editor
d

Dennis Pedersen

10 months ago
Hi everyone. Currently trying to make a custom dropdown, with some test data, however the defaultData does not come up in the property type. Has anyone tried doing this in v14/v15. And can point towards if im making a mistake or what it is 🙂 I'm new to typescript and extending backoffice, so its definitely plausible that im making errors 😄
import {ManifestPropertyEditorUi} from "@umbraco-cms/backoffice/extension-registry";
import {default as manifestModal} from "./Modal/manifest";

export const manifestPropertyEditorUi: ManifestPropertyEditorUi = {
    type: "propertyEditorUi",
    alias: "xxx.tag.propertyEditor",
    name: "Tag Property Editor",
    element: () => import("./tag-property-editor-element.ts"),
    meta: {
        label: "Tag Property Editor",
        icon: "icon-tag",
        group: "generic",
        propertyEditorSchemaAlias: "Umbraco.Plain.Json",
        settings: {
            properties: [
                {
                    alias: "group",
                    label: "Group",
                    description: "Pick the group",
                    propertyEditorUiAlias: "Umb.PropertyEditorUi.Dropdown",
                    weight: 200,
                },
                {
                    alias: "placeholder",
                    label: "Placeholder text",
                    description: "A nice placeholder description to help out our editor!",
                    propertyEditorUiAlias: "Umb.PropertyEditorUi.TextBox"
                },

            ],
            defaultData: [
                {
                    alias: "group",
                    value: ['First Option', 'Second Option', 'Third Option']
                },
                {
                    alias: "placeholder",
                    value: "Write a suggestion"
                }
            ]
        }
    }
}

export default [manifestPropertyEditorUi, ...manifestModal]
d
l
  • 2
  • 2
  • 104
Published website can't find media folder because it's not created (V. 14.3.1)
d

Dentjavy

11 months ago
When i publish my Umbraco website and put it on the server. it generates and error and the log shows Unhandled exception. System.IO.DirectoryNotFoundException: d:\web\localuser\site.dk\public_html\wwwroot\media\ at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters) at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root) at Umbraco.Cms.Core.IO.PhysicalFileSystem.Create() But the media folder is not created in the published content. I use the 14.3.1 version Do anyone knows why or what it could be?
d
l
k
  • 3
  • 4
  • 104
web.config file location and redirect not working
j

JN

about 1 year ago
Our website is ready to go live, but I think I may have accidently moved web.config file to a different folder. Should the web.config file be located in the wwwroot folder? I added the following rewrite in the web.config file, it did not redirect to my custom hostname. I replaced https://www.example.com to my hostname. The hostname starts with account not www.
<rewrite>
                <rules>
                    <rule name="Redirect umbraco.io to primary hostname" stopProcessing="true">
                        <match url=".*" />
                        <conditions>
                            <add input="{HTTP_HOST}" pattern="\.umbraco\.io$" />
                            <add input="{HTTP_HOST}" pattern="^(dev-|stage-)(.*)?\.umbraco\.io$" ignoreCase="true" negate="true" />
                            <add input="{REQUEST_URI}" pattern="^/umbraco" ignoreCase="true" negate="true" />
                            <add input="{REQUEST_URI}" pattern="^/App_Plugins" ignoreCase="true" negate="true" />
                            <add input="{REQUEST_URI}" pattern="^/sb" negate="true" />
                            <!-- Don't redirect Smidge Bundle -->
                            <add input="{HTTP_COOKIE}" pattern="^(.+; )?UMB_UCONTEXT=([^;]*)(;.+)?$" negate="true" />
                            <!-- Ensure preview can render -->
                            <add input="{HTTP_HOST}" pattern="^localhost(:[0-9]+)?$" negate="true" />
                        </conditions>
                        <action type="Redirect" url="https://www.example.com/{R:0}" redirectType="Permanent" />
                    </rule>
                </rules>
            </rewrite>
j
r
  • 2
  • 21
  • 104
Git ignore wwwroot?
p

Pekdon

over 1 year ago
Should the wwwroot folder be ignored or not?
p
h
+5
  • 7
  • 16
  • 104
How do you register a Entity Framework Core DbContext in V13?
a

AaronSadlerUK

over 1 year ago
The documentation hasn't been updated and does not work, also what is shown in the documentation is using an obsolete method, I have taken a look through the source and I can see the tests are doing the following:
services.AddUmbracoDbContext<TicketsContext>((serviceProvider, options) =>
            {
   options.UseUmbracoDatabaseProvider(serviceProvider);
});
However when I run the site I get the following error:
Unable to create a 'DbContext' of type 'TicketsContext'. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[UmbTickets.DAL.DbContexts.Tickets.TicketsContext]' while attempting to activate 'UmbTickets.DAL.DbContexts.Tickets.TicketsContext'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
https://docs.umbraco.com/umbraco-cms/tutorials/getting-started-with-entity-framework-core#step-2-create-dbcontext-class
a
d
+2
  • 4
  • 12
  • 103
[SOLVED] Non-Admin Users throwing 'Could not validate XSRF token' error when editing grid content
s

si26

over 1 year ago
Hi all, I've got an issue where non-admin users are getting logged out when trying to submit/edit certain grid content. Slightly strange one as I can't recreate the issue with an Admin account, so it seems it might be a permissions issue? I'm getting this 'Could not validate XSRF token' error in the logs with non-admin users: ``System.Web.Mvc.HttpAntiForgeryException (0x80004005): The provided anti-forgery token was meant for a different claims-based user than the current user. at System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken) at System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext, String cookieToken, String formToken) at Umbraco.Web.WebApi.Filters.AngularAntiForgeryHelper.ValidateTokens(String cookieToken, String headerToken)`` Has anyone come across this before? Thanks, Simon
s
  • 1
  • 1
  • 103
Mediawithcrops from Media
c

Craig100

about 1 year ago
V13 If we've managed to return an "Image" from an examine query, how do we get the "mediawithcrops" version?
c
l
j
  • 3
  • 9
  • 102
Cloud site thinks it's on an azurewebsites URL
c

Chriztian Steinmeier

about 1 year ago
Does anybody know why Umbraco (Cloud) sometimes thinks the URL is on one of the azurewebsites domains? The only "fix" we've been able to find is to restart the site, which is not great but also really not that bad. But the major issue is that when it happens — because the site is built with uSkinned SiteBuilder — the whole site screams "NO VALID LICENSE" everywhere - which is very unfortunate when the client has in fact paid a good chunk of money for a valid license. Is there a way to make sure this doesn't happen?
c
s
+6
  • 8
  • 22
  • 102
Previous242526Next

Umbraco

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

Powered by