Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 20:18
    kcastro18 closed #8158
  • Jan 31 20:18
    kcastro18 commented #8158
  • Jan 31 20:17

    sebastienros on 1.10.x

    Delete obsolete profile images … (compare)

  • Jan 31 20:17
    sebastienros closed #8157
  • Jan 31 20:13
    sebastienros commented #8158
  • Jan 31 20:03
    Skrypt commented #8158
  • Jan 31 19:47
    kcastro18 commented #8158
  • Jan 31 19:45
    kcastro18 commented #8158
  • Jan 31 19:39
    Skrypt commented #8158
  • Jan 31 19:38
    Skrypt commented #8158
  • Jan 31 19:35
    Skrypt commented #8158
  • Jan 31 15:08
    kcastro18 opened #8158
  • Jan 31 03:39
    yuliang2417535997 starred OrchardCMS/Orchard
  • Jan 31 03:39
    yuliang2417535997 starred OrchardCMS/Orchard
  • Jan 29 21:28
    yanxiaodi starred OrchardCMS/Orchard
  • Jan 29 02:40
  • Jan 28 16:24
    LorenzoFrediani-Laser opened #8157
  • Jan 28 16:02
    LorenzoFrediani-Laser opened #8156
  • Jan 28 15:51
    LorenzoFrediani-Laser starred OrchardCMS/Orchard
Benedek Farkas
@BenedekFarkas
@mwentz that should be in CoreShapes.
jasonjiang9999
@jasonjiang9999_twitter
Hello, i am new to OrchardCore, I'd like to know how to connect the sql server 2008r2. I keep encounting the sqlexception, not support Fetch and Next
Jasmin Savard
@Skrypt
You need to probably upgrade to a more recent version of SQL Server
Fetch and Next is not supported in 2008 R2
jasonjiang9999
@jasonjiang9999_twitter
so no workaround on this point at present?
Jasmin Savard
@Skrypt
Available only from SQL 2012 onwards
jasonjiang9999
@jasonjiang9999_twitter
ok..thank you..
Jasmin Savard
@Skrypt
We pretty much use FETCH and NEXT in all versions of Orchard
You can move to Orchard Core
And use Postgresql or SQlite
Those 2 are free
No reason to fix this issue as this is not really one. We are using the latest features of SQL Server simply.
Though you could fix it in Orchard I think by adding some NHibernate config
jasonjiang9999
@jasonjiang9999_twitter
thank you very much to make this clear. I am just afraid that I was missing some switches. Now since it's just a fact, we will discuss how to upgrade or change the database. :)
Garret Prestwood
@gprestwood
Hi all, I have a workflow which uses the Send Email activity. When the starting event of the workflow is triggered manually (from a button click), it works and the email is sent. When the starting event is triggered via a scheduled task, an exception is thrown by the messaging service. Is it not possible to use the Send Email activity when triggered from a scheduled task?
Zoltán Lehóczky
@Piedone
@gprestwood it should be possible, but maybe the e-mail eventually needs something from the HttpContext which is not available in a background task. Can you share the exception?
Garret Prestwood
@gprestwood

Thanks @Piedone. Here is the exception and stack trace:

Exception thrown: 'System.NullReferenceException' in Orchard.Framework.dll Orchard.Exceptions.DefaultExceptionPolicy: ERROR - An unexpected exception was caught System.NullReferenceException: Object reference not set to an instance of an object. at Orchard.Mvc.ViewEngines.Razor.WebViewPage1.get_DisplayHelperFactory() in Orchard\Mvc\ViewEngines\Razor\WebViewPage.cs:line 70
at Orchard.Mvc.ViewEngines.Razor.WebViewPage1.InitHelpers() in Orchard\Mvc\ViewEngines\Razor\WebViewPage.cs:line 168 at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.RenderRazorViewToString(String path, DisplayContext context) in Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 174 at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render(ShapeDescriptor shapeDescriptor, DisplayContext displayContext, HarvestShapeInfo harvestShapeInfo, HarvestShapeHit harvestShapeHit) in Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 157 at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.<>c__DisplayClass20_7.<Discover>b__14(DisplayContext displayContext) in Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:line 133 at Orchard.DisplayManagement.Descriptors.ShapeAlterationBuilder.<>c__DisplayClass7_1.<BoundAs>b__1(DisplayContext displayContext) in Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:line 56 at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 203 at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:line 99 at Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in Orchard\DisplayManagement\Implementation\DisplayHelper.cs:line 86 at Orchard.DisplayManagement.ShapeDisplay.Display(Object shape) in Orchard\DisplayManagement\ShapeDisplay.cs:line 39 at Orchard.Email.Services.SmtpMessageChannel.Process(IDictionary2 parameters)
at Orchard.Messaging.Services.DefaultMessageService.Send(String type, IDictionary2 parameters) in Orchard\Messaging\Services\DefaultMessageService.cs:line 20 at Orchard.Events.DelegateHelper.<>c__DisplayClass15_03.<BuildAction>b__0(Object target, Object[] p) in Orchard\Events\DelegateHelper.cs:line 122
at Orchard.Events.DefaultOrchardEventBus.TryInvokeMethod(IEventHandler eventHandler, Type interfaceType, String messageName, String interfaceName, String methodName, IDictionary2 arguments, IEnumerable& returnValue) in Orchard\Events\DefaultOrchardEventBus.cs:line 84 at Orchard.Events.DefaultOrchardEventBus.TryInvoke(IEventHandler eventHandler, String messageName, String interfaceName, String methodName, IDictionary2 arguments, IEnumerable& returnValue) in Orchard\Events\DefaultOrchardEventBus.cs:line 70
at Orchard.Events.DefaultOrchardEventBus.TryNotifyHandler(IEventHandler eventHandler, String messageName, String interfaceName, String methodName, IDictionary2 eventData, IEnumerable& returnValue) in Orchard\Events\DefaultOrchardEventBus.cs:line 53

I posted the question on Stack Overflow with a bit more detail.
Zoltán Lehóczky
@Piedone
@gprestwood ah yes, this is an old bug. I was about to ask you which version you're using, but I see 1.9. This is something which is fixed in the current versions, so I suggest you upgrading to the latest version.
Filipe Macêdo
@fmacedoo
Hi guys, i would like to use Migrations with an IContentDefinitionManager instance. For that i must include AddContentManagement call on configuration but then, it throws an InvalidOperationException related to services required by ContentDefinitionManager (eg.: IMemoryCache, ISIgnal). Anyone could help me on it?
Karen
@kcastro18
Hi! I'm trying to create content items automatically in code and setting the Archive Later value as well. I was able to create content items but when I call ArchiveLater service it fails and I think it's because of the permission. I checked AcrhiveLater method and it will authorize PublishContent permission. My question is what user does the service use to check for authorization? If I call the service from my custom module what user does my module run as?
Filipe Macêdo
@fmacedoo
Hi huys, anyone knows whether is there a way to set a new user and its role based on the Azure Authentication user role?
jasonjiang9999
@jasonjiang9999_twitter
Hi Friends, May I know if there is any place can learn OrchardCore from Zero? I visited OrchardCore documentation, but still have no idea for some basis knowledge, like what's the best way to customize the style? create a new template or directly modify the css file?
Stan
@stanbdos_twitter
Hi @jasonjiang9999_twitter, coming from a similar position, I can share with you what've learn from the docs, videos and the community here. I am still learning but i will help where I can.
the hardest thing is know where to customise and where to get data. for your initial question, depending on where you setup your css in the layout template, you can use your css file to override any style.
jasonjiang9999
@jasonjiang9999_twitter
for a sample, I have a big image on the index page from default template. I need it can be changed in Admin Menu by normal web manager( not programmer). Should I create an customized Menu function to make this happend?
jasonjiang9999
@jasonjiang9999_twitter
@stanbdos_twitter thank you very much. I am not even familiar with OrchardCMS. May I know after creating the a website following the step of running Orchard Core instruction, how to configure the website in Admin Menu? Should I study in Orchard CMS lesson?
Stan
@stanbdos_twitter
@jasonjiang9999_twitter Hi, just to sure you are in the know, there are generally 2 versions, Orchard CMS and OrchardCore CMS - which is based on .Net Core 3.0... and just release RC1.
Mike Paterson
@devlife
hi all. i'm trying to add a MediaPickerField to a custom content type. it's existing code. I've got a viewmodel, Element, ElementDriver, etc. However, I'm not sure what to do in ElementDriver.OnExporting and ElementDriver.OnImporting. context.ExportableData["Video"] = element.Video won't work because element.Video is of type MediaPickerField. Any thoughts on how I would implement those two methods?
Duncan Hoggan
@duncanhoggan
Hey all.. Having a little issue with an http request from workflow.
It looks like the code doesn't cater for requests that have : characters in the value.
For reference from here
        private IEnumerable<KeyValuePair<string, string>> ParseHeaders(string text)
        {
            if (string.IsNullOrWhiteSpace(text))
                return Enumerable.Empty<KeyValuePair<string, string>>();

            return
                from header in text.Split(new[] { "\r\n", "\n", "\r" }, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim())
                let pair = header.Split(':')
                where pair.Length == 2
                select new KeyValuePair<string, string>(pair[0], pair[1]);
        }
So if i was passing in the following as a header
Authorization: key=BAB3jQ6PE:BP91bEkXE9
The split would result in a pair length of 3 and no header would be added.
Duncan Hoggan
@duncanhoggan
Duncan Hoggan
@duncanhoggan
Floris Kuipers
@tartiflette1990
Hey all, can I disable the "view all content" permission in the role-definition screen? It says its 'effective'.
Bertrand Le Roy
@bleroy
Jasmin Savard
@Skrypt
No idea. Seems like it should be debugged locally to find out what is happening
Might have issue with var criteria = (CriteriaImpl)queryProvider.TranslateExpression(queryable.Expression);
As doing these kind of type casting doesn't assure that the object won't be null.
And I presume that the second part is a Query made to the database that fails because of the previous object being null
yavuzselimyldz
@yavuzselimyldz
Hi everyone. I want to validate jwt token with JwtSecurityTokenHandler. I use OrchardCore CMS OpenID Connect. I need TokenValidationParameters for validating tokens but when I try to get this injected options all Issuer.Authority, SigningKeys etc. section are null. How can ı validate tokens can anyone help me?
Joshua Davis
@a11smiles
HELP. I'm following instructions for creating a decoupled site here. However, the instructions don't include how to add the Blank Site recipe. What do I do?
The decouple site instructions actually don't include any recipes.
Jasmin Savard
@Skrypt
Wrong place
use Orchard Core channel
You can create your own Theme/Recipe but normally we use existing ones and modify them
I believe that there is a list of recipes in the admin that you can manually execute also
Jeriah Colasino
@yancolasino01_gitlab
ok thanks
novfal
@novfal
How installl orchard core in win 10
Jose Manuel Gonzalez
@jmglezgz
@novfal this document explains how to get started with orchard core https://orchardcore.readthedocs.io/en/dev/#getting-started.