How to re-enable Orchard CMS features without a dashboard or command line

I simply turned off the comment function in my Orchard installation, not realizing that it was a Disqus dependency, and now the whole site, including the admin control panel, fails with this error:

None of the constructors found with the policy "Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper" in the type "Disqus.Comments.Services.DisqusCommentUpdateService" can be called by the available services and parameters: Constructor 'Void.ctor (DischrServices IOrchard.Orchard. .Comments.Services.IDisqusMappingService, Orchard.Comments.Services.ICommentService) "parameter failed" in the "Orchard.Comments.Services.ICommentService commentService" parameter. Description: An unhandled exception occurred during the execution of the current web request. View the stack trace for more information about the error and its occurrence in the code. Exception Details: Autofac.Core.DependencyResolutionException: None of the constructors found with the "Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper" policy in the Disqus.Comments.Services.DisqusCommentUpdateService type can be called and accessed by: .ctor (Orchard.IOrchardServices, Disqus.Comments.Services.IDisqusMappingService, Orchard.Comments.Services.ICommentService). Parameter error with parameter "Orchard.Comments.Services.ICommentService commentService".

Orchard installation is done on the website and I do not have access to the command line. I have FTP access and access to MS SQL database. Is there any way to enable the comment feature without accessing the command line or web admin interface?

+4
source share
2 answers

There is a file /orchard.web/app_data/cache.dat, which is an xml containing a list of those functions that are included.

The documentation warns that changing it may have unpredictable results, so be warned: http://docs.orchardproject.net/Documentation/Developer-FAQ#What 'sinApp_Data?

+6
source

The database is called Settings_ShellFeatureStateRecord , which stores the state for each module function. I re-enabled Orchard.Comments on my local installation (using SQL Server Compact Edition) with the following SQL:

 update Settings_ShellFeatureStateRecord set InstallState = 'Up', EnableState = 'Up' where Name = 'Orchard.Comments' 

Good luck

+2
source

Source: https://habr.com/ru/post/1398036/


All Articles