Skip to content

Instantly share code, notes, and snippets.

View bleroy's full-sized avatar

Bertrand Le Roy bleroy

View GitHub Profile
@bleroy
bleroy / css_overflow.patch
Created April 1, 2015 22:20
CodePlex Issue #16374 Plain Text Attachments
diff --git a/src/Orchard.Web/Themes/Classic/Styles/site.css b/src/Orchard.Web/Themes/Classic/Styles/site.css
--- a/src/Orchard.Web/Themes/Classic/Styles/site.css
+++ b/src/Orchard.Web/Themes/Classic/Styles/site.css
@@ -196,6 +196,7 @@
margin:26px 0 0 27px;
width:520px;
min-height:555px;
+ overflow: hidden;
}
@bleroy
bleroy / LessThan1753.txt
Created April 1, 2015 22:20
CodePlex Issue #16375 Plain Text Attachments
Server Error in '/' Application.
--------------------------------------------------------------------------------
An overflow occurred while converting to datetime.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlServerCe.SqlCeException: An overflow occurred while converting to datetime.
Source Error:
@bleroy
bleroy / stack.txt
Created April 1, 2015 22:20
CodePlex Issue #16380 Plain Text Attachments
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not find entity named: Orchard.ContentManagement.Records.ContentPartVersionRecord
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Could not find entity named: Orchard.ContentManagement.Records.ContentPartVersionRecord
Source Error:
@bleroy
bleroy / 16381.patch
Created April 1, 2015 22:20
CodePlex Issue #16381 Plain Text Attachments
diff --git a/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Routable.ascx b/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Routable.ascx
--- a/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Routable.ascx
+++ b/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Routable.ascx
@@ -17,18 +17,7 @@
<script type="text/javascript">
$(function(){
//pull slug input from tab order
- $("<%=String.Format("input#{0}Slug", !string.IsNullOrEmpty(Model.Prefix) ? Model.Prefix + "_" : "") %>").attr("tabindex",-1);
- $("<%=String.Format("input#{0}Title", !string.IsNullOrEmpty(Model.Prefix) ? Model.Prefix + "_" : "") %>").blur(function(){
- $(this).slugify({
@bleroy
bleroy / UserModelLocalizer.patch
Created April 1, 2015 22:54
CodePlex Issue #16399 Plain Text Attachments
# HG changeset patch
# User Andrew Ma
# Date 1271393612 25200
# Node ID 13780762c2fa9d7b86fe5b6550a9f88e5134d95f
# Parent 7331559a4c8fa3b4847c7aff1e7ad92952382627
Updating the User module use the Localizer class to localize strings.
Adding an extension method for ModelStateDictionary.AddModelError to accept LocalizedString objects.
diff -r 7331559a4c8f -r 13780762c2fa src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs
--- a/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs Tue Apr 13 11:32:26 2010 -0700
@bleroy
bleroy / errorlog.txt
Created April 1, 2015 23:07
CodePlex Issue #16459 Plain Text Attachments
Server Error in '/' Application.
The view 'NotFound' or its master was not found. The following locations were searched:
~/Areas/Orchard.Blogs/Views/BlogAdmin/NotFound.aspx
~/Areas/Orchard.Blogs/Views/BlogAdmin/NotFound.ascx
~/Areas/Orchard.Blogs/Views/Shared/NotFound.aspx
~/Areas/Orchard.Blogs/Views/Shared/NotFound.ascx
~/Views/BlogAdmin/NotFound.aspx
~/Views/BlogAdmin/NotFound.ascx
~/Views/Shared/NotFound.aspx
~/Views/Shared/NotFound.ascx
@bleroy
bleroy / errorlog.txt
Created April 1, 2015 23:39
CodePlex Issue #16472 Plain Text Attachments
Server Error in '/OrchardLocal' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 2: <%@ Import Namespace="Orchard.Mvc.ViewModels"%>
Line 3: <%@ Import Namespace="Orchard.Blogs.Models"%>
@bleroy
bleroy / errorlog.txt
Created April 1, 2015 23:41
CodePlex Issue #16475 Plain Text Attachments
Server Error in '/OrchardLocal' Application.
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error:
Line 17: var part = contentItem.Get<T>();
Line 18: if (part == null)
@bleroy
bleroy / errorlog.txt
Created April 1, 2015 23:42
CodePlex Issue #16479 Plain Text Attachments
Server Error in '/OrchardLocal' Application.
A potentially dangerous Request.Form value was detected from the client (DisplayName="<script>alert("haha"...").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.
Exception Details: System.Web.Http
@bleroy
bleroy / errorlog.txt
Created April 1, 2015 23:43
CodePlex Issue #16489 Plain Text Attachments
Server Error in '/OrchardLocal' Application.
Ambiguous content
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ApplicationException: Ambiguous content
Source Error:
Line 38: }
Line 39: if (hits.Count() != 1) {