https://discord.umbraco.com
Join Discord
Umbraco 11 to 12 Upgrade
t

tommot2582

almost 2 years ago
Hi all, I'm trying to upgrade an umbraco site from 11.5 to 12.0 but I'm getting the following error: The database failed to upgrade. ERROR: The database configuration failed with the following message: The migration plan does not support migrating from state "{2CA0C5BB-170B-45E5-8179-E73DA4B41A46}". This error occurred going from 10.7 to 11.0, but was resolved upgrading to 11.5.0 instead but this approach doesn't work with v12.
t
s
+2
  • 4
  • 7
  • 68
[Solved] How to search for a date
c

Craig100

about 2 years ago
Umb 10.6.1 I have a search page which works fine for strings but I need to search for a date. The date comes as a string formatted yyyy-MM-dd. When I search for say 1965-05-02 I seem to get all records where the date has any of the numbers in it. I was just wondering how it's stored in the Examine Indexes. In the Settings section, if I do a search, I can see dates are shown as 02/05/1965 00:00:00 but I don't know if that's as a string or a DateTime object. Is it just a case of rearranging my incoming date string to match the Examine Index string or do I need to convert the incoming string to a DateTime object and search with that? Thanks.
c
h
+3
  • 5
  • 47
  • 68
Converting non english characters in Content URL
b

baristaner

about 1 year ago
Hello everyone,some of my contents in my umbraco are turkish that causes few issues with the URL's sometime For example if my content has the letter "Ü" it converts the url into "ue" but instead of that i want to convert into just normal "U" Any ideas will be appreciated Thanks! PS: I'm using umbraco 13
b
j
k
  • 3
  • 8
  • 67
OnExternalLogin issue with member properties not saving
d

David Peck (Peck Tech)

about 2 years ago
Does anyone have much experience with external logins for members? I'm having issues trying to work out how data is supposed to be saved to member properties. I'm using the classic example as per the [documentation](https://docs.umbraco.com/umbraco-cms/reference/security/external-login-providers#example) but struggling to find an example where member properties are updated . Login works, AutoLinking works, my code runs, good values are set as the claim value, and I have properties of the same alias at the claim type, but no values are set against my members. Am I missing a step?
OnExternalLogin = (user, loginInfo) => {

                if (loginInfo.Principal.FindFirst(ClaimTypes.GivenName) is Claim firstNameClaim)
                {
                    user.Claims.Add(new IdentityUserClaim<string> {
                        ClaimType = "firstName",
                        ClaimValue = firstNameClaim.Value,
                        UserId = user.Id
                    });
                }

                if (loginInfo.Principal.FindFirst(ClaimTypes.Surname) is Claim surnameClaim)
                {
                    user.Claims.Add(new IdentityUserClaim<string> {
                        ClaimType = "surname",
                        ClaimValue = surnameClaim.Value,
                        UserId = user.Id
                    });
                }

                var continueSignIn = true;
                return continueSignIn;
            }
d
m
  • 2
  • 2
  • 67
Umbraco 15.1.2 Backoffice Typescript not detecting exports
a

Aaron Sawyer

7 months ago
In a custom backoffice section, I am getting typescript errors where it cannot detect exports from @Umbraco-cms/backoffice/extension-registry. TSC throws a fit, but it I just npm build without tsc, it seems to work fine. Am I doing something wrong? https://cdn.discordapp.com/attachments/1338540874422026313/1338541261279199243/image.png?ex=67ab7531&is=67aa23b1&hm=4ac28ffc59f4062c3c9ae38553bab68354a66ff87c3972a2f34a0ad7ee4c020d&
a
k
  • 2
  • 6
  • 66
Headless Umbraco - Crop Zoom
s

Sebastian Pierre

12 months ago
Is it possible to get the crop zoom when fetching images in a headless app (SvelteKit) from umbraco (v13)? Check the images for: 1. My crop settings 2. What the result looks like on the page 3. The helper that generates the rxy from the coordinates. So to summarize it looks like the x and y might be fine, but the zoom does not seem to tag along, or am I missing something here or am I doing it wrong? https://cdn.discordapp.com/attachments/1288857518520533076/1288857519200141355/image.png?ex=66f6b59a&is=66f5641a&hm=bc74561a53cad69695b0213df579259509a3352d1e872ce1cfb98fae242d5dcb& https://cdn.discordapp.com/attachments/1288857518520533076/1288857519921303612/image.png?ex=66f6b59a&is=66f5641a&hm=cd4f63c428142e584f7a57d69e68f949d627356526691b0e2448025e8ff1dec2& https://cdn.discordapp.com/attachments/1288857518520533076/1288857520219230359/image.png?ex=66f6b59a&is=66f5641a&hm=37bc40f46a229fe35872642cc28fbb8d5805cc639a0939fa60206f81d155d432&
s
k
b
  • 3
  • 6
  • 66
Trouble with Controller receiving data from an Axios post
c

Craig100

about 1 year ago
I have a controller that is getting hit by a post from an Axios function. So far so good. Unfortunatelythe controller can't read the data. I've googled all over the place adding routes (not needed it's being hit anyway) and tried [FromRoute], [FromBody], etc. in the constructor. All to no avail. The id is always null. If anyone has any suggestions I'd be very happy to hear them. Controller code is below, what's being sent is in the image:-
[HttpPost]
// [Route("Users/DeleteUserNumber")]
public bool DeleteUserNumber([FromBody] string? id) {

    bool returnState = false;
    
    /*if (id != null  && Convert.ToInt32(id) > 0) {
        returnState = _UsersDataFunctions.DeleteUserNumber(id);
    }*/

    return returnState;
}
https://cdn.discordapp.com/attachments/1277376681082093590/1277376681606123591/image.png?ex=66ccf13d&is=66cb9fbd&hm=473618619eecaab457f1a6470c3b99f96124791dbf6597606460fd127f088cc5&
c
d
  • 2
  • 4
  • 66
uSync media when using Azure blob storage
m

MattInsp

over 1 year ago
Does anyone know how to get uSync to download media from Azure blob storage when serialising data for transfer? Thanks
m
k
+2
  • 4
  • 20
  • 66
Adding custom CSS to backend not working after publish
s

svampefett

over 1 year ago
[ SOLVED ] - Was most likely cache related, changing name of folder fixed the issue. https://cdn.discordapp.com/attachments/1229374256685645854/1229374256874524693/image.png?ex=662f72ff&is=661cfdff&hm=b6ec7735c861c50f21bd9ff4b38cde145fa37e3a1ad7e77d00297c7f851ed4c2&
s
k
s
  • 3
  • 6
  • 66
Umbraco Forms conditional logic not working after upgrade
s

Simon (SimonAntony)

over 1 year ago
Previous site was on 10.1.0 with Umbraco Forms: 10.0.5 - upgraded to Umbraco version 10.8.3 and Umbraco Forms: 10.5.3 and now conditional logic no longer works. Anyone else had this and how best to fix? Moving to v13 in the coming months but not at the moment.
s
d
  • 2
  • 8
  • 66
Previous333435Next

Umbraco

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

Powered by