Important if you are upgrading an existing site: for the best results:
In web.config do NOT change useLegacyEncoding to false if it is currently set to true - changing the password encoding will cause you not being able to log in any more
In umbracoSettings.config leave EnablePropertyValueConverters set to false - this will help your existing content queries to still work
MacroScripts not rendering after upgrade to 7.6.1
I upgraded to 7.6.1 yesterday and some of my macro scripts are no longer working. Mostly, the macro scripts that are associated with the Blog.
This is the error I am getting:
Error loading MacroEngine script (file: /Content/BlogSnip.cshtml)
This is my code for the BlogSnip.cshtml :
This is how I am calling the macro script on my homepage:`
Thanks!
Hi Jason
Can you look at Umbraco Log what row cause the problem?
Look here - /AppData/Logs
Can you debug this site?
Thanks
Alex
This is the error message I see in my logs:
ERROR Umbraco.Core.Persistence.UmbracoDatabase - Exception (7dc9cbed).
I can debug the site but I do not see anything helpful from that.
Could I be missing a .dll?
I don't think that it can be a missing .dll
I would like to rewrite your macro to this code:
Do not use "Parameter" helper and "@inherits umbraco.MacroEngines.DynamicNodeContext"
Alex
Alex,
Thank you for your response! Unfortunately, that solution did not work. I am still getting the same error.
I am also getting this error too:
"Error parsing XSLT file: GetMetaTags.xslt "Error parsing XSLT file: GetMetaLinkTags.xslt
not sure if this has anything to do with it.
Jason, it's hard to help you when I know so less about your solution.
Lets look at 'GetMetaTags.xslt' together :)
Hi Jason,
Have you tried completing deleting the cache and regenerating it?
Cache file can be found @ "/AppData/umbraco.config"
Delete it and then just do a full re-publish, see if it helps...
Regards
Craig
Craig,
I just tired this and it did not work either. Thanks!
Jason
Jason
It looks like we need to fix all code in your site.
From which version did you upgrade?
Alex
I upgraded from 7.3.7
Is there anything noticeable in the Log file that may aid us? I.e any errors related to Macros etc.
Hi Jason
Did you look at breaking changes?
Important if you are upgrading an existing site: for the best results:
In web.config do NOT change useLegacyEncoding to false if it is currently set to true - changing the password encoding will cause you not being able to log in any more In umbracoSettings.config leave EnablePropertyValueConverters set to false - this will help your existing content queries to still work
https://our.umbraco.org/documentation/Getting-Started/Setup/Upgrading/760-breaking-changes
Alex
So I think I figured out where the problem is. But I am unsure how to fix it.
I went into Umbraco Settings and changed the
and I was able to debug it to the .where in this:
So I am not sure if it is the .Where or the ("MetaThumb..") and I am not sure how to go about fixing it.
Try this code please:
Jason, change, please retrieving of posts to :
Then you will be able to debug and it should fix this issue.
Hi Jason,
What is "MetaThumb" ?
Looks like your passing it as a string. Have you used Lambada Expressions before?
You could do something like this:
x.MetaThumb - being a strongly-typed property of a node (IPublishedContent)
OR
is working on a reply...