OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

On some modules, commands don't show up #3163

Closed orchardbot closed 9 years ago

orchardbot commented 11 years ago

seeker created: https://orchard.codeplex.com/workitem/19334

Fresh install of Orchard 1.6 web from Web Platform Installer. Imported content from an existing Orchard site that had been upgraded to 1.6 from 1.3 and had several non-working modules due to the upgrade.

Added the Orchard.Disqus module from:

https://github.com/jkernech/Orchard.Disqus

Module works fine on the site, once configured, and new comments display fine. The module includes commands to synchronize comments with Disqus, but these are not found when I try to execute them from the Orchard.exe command line.

If I try to execute the command, I get the response: 'No command found matching arguments "disqus comments import".'

I've double-checked the source of the module, and the command source appears to be consistent with how other modules are implementing commands.

Would welcome any suggestions for troubleshooting, as I do not have experience debugging Orchard, nor it's modules, and my efforts so far have not provided me any additional useful information.

orchardbot commented 11 years ago

seeker commented:

Quick update. Was able to reproduce the issue with a simpler setup:

  1. Installed fresh copy of Orchard 1.6 via WebMatrix.
  2. Finished install of the site using the Blog recipe
  3. Installed Orchard.Disqus module by copying the Orchard.Disqus folder from the NuGet package at https://github.com/jkernech/Orchard.Disqus to the Modules folder of the new install.
  4. Enabled the Orchard.Disqus module and configured it with my Disqus account.
  5. Started Orchard.exe from the root of the site, and verified that the Orchard.Disqus module is enabled using the command:

feature list /Summary:true

  1. Attempted to run the command 'disqus comments import'. Same error as before:

'No command found matching arguments "disqus comments import".'

Would love to know if others can repro.

orchardbot commented 11 years ago

JLedel commented:

Do you see any Disqus commands if you write

help commands

in the console?

orchardbot commented 11 years ago

seeker commented:

@JLedel

No, unfortunately not. Here's what I get:

List of available commands:

autoroute create Adds a new autoroute pattern to a specific content type

blog create [/Slug:] /Title: [/Owner:<username>] [/Description:<description>] [/MenuName:<name>] [/MenuText:<menu text>] [/Homepage:true|false] Creates a new Blog</p> <p>blog import /BlogId:<id> /FeedUrl:<feed url> /Owner:<username> Import all items from <feed url> into the blog specified by <id></p> <p>cultures add <culture-name-1> ... <culture-name-n> Add one or more cultures to the site</p> <p>cultures get site culture Get culture for the site</p> <p>cultures list List site cultures</p> <p>cultures set site culture <culture-name> Set culture for the site</p> <p>feature disable <feature-name-1> ... <feature-name-n> Disable one or more features</p> <p>feature enable <feature-name-1> ... <feature-name-n> Enable one or more features</p> <p>feature list [/Summary:true|false] Display list of available features</p> <p>help <command> Display help text for <command></p> <p>help commands Display help text for all available commands</p> <p>layer create <name> /LayerRule:<rule> [/Description:<description>] [/Owner:<owner>] Creates a new layer</p> <p>menu create /MenuName:<name> Creates a new menu</p> <p>menuitem create /MenuPosition:<position> /MenuText:<text> /Url:<url> /MenuName:<name> Creates a new menu item</p> <p>package create <extensionName> <path> Create a package for the extension <extensionName> (an extension being a module or a theme). The package will be output at the <path> specified. The default filename is Orchard.[Module|Theme].<extensionName>.<extensionVersion>.nupkg. For example, "package create SampleModule c:\temp" will create the package "c:\temp\Orchard.Module.SampleModule.1.0.0.nupkg".</p> <p>package install <packageId> <location> /Version:<version> Install a module or a theme from a package file.</p> <p>package uninstall <packageId> Uninstall a module or a theme. The <packageId> should take the format Orchard.[Module|Theme].<extensionName>. For example, "package uninstall Orchard.Module.SampleModule" will uninstall the Module under the "~/Modules/SampleModule" directory and "package uninstall Orchard.Theme.SampleTheme" will uninstall the Theme under the "~/Themes/SampleTheme" directory.</p> <p>page create [/Slug:<slug>] /Title:<title> /Path:<path> [/Text:<text>] [/Owner:<username>] [/MenuName:<name>] [/MenuText:<menu text>] [/Homepage:true|false] [/Publish:true|false] [/UseWelcomeText:true|false] Creates a new page</p> <p>recipes execute <extension-id> <recipe-name> Executes a recipe from a module</p> <p>recipes harvest <extension-id> Display list of available recipes for an extension</p> <p>site setting set baseurl [/BaseUrl:baseUrl] [/Force:true] Set the 'BaseUrl' site settings. If no base url is provided, use the current request context heuristic to discover the base url. If 'Force' is true, set the site base url even if it is already set. The default behavior is to not override the setting.</p> <p>theme activate <theme-name> Enable and activates a theme</p> <p>theme list [/Summary:true|false] Display list of available themes</p> <p>user create /UserName:<username> /Password:<password> /Email:<email> Creates a new User</p> <p>warmup generate [/Force:true] Generates all the static pages for the warmup feature.</p> <p>widget create <type> /Title:<title> /Zone:<zone> /Position:<position> /Layer:<layer> [/Identity:<identity>] [/RenderTitle:true|false] [/Owner:<owner>] [/Text:<text>] [/UseLoremIpsumText:true|false] [/MenuName:<name>] Creates a new widget</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p><strong>the_Simian</strong> commented:</p> <p>Hello, installing the disqus module from the gallery feed results in the module not being visible in the admin menu at all for me.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p><strong>tsaltd</strong> commented:</p> <p>Re Disqus comments on Blog Posts ... </p> <p>Any news on this ? I just migrated to 6.0 ... having same problem ... Disqus comments enabled, but do not appear .... </p> <p>AND CHECK THIS OUT ... DISQUS COMMENTS WORK WHEN USING WEBMATRIX .... the go back to IIS ... not only does Disqus not show up for posting a new comment ... but the comment does not show up on the blog page ...</p> <p>Bertrand ... No action on this in over a month ??? What's going on ?? I can't go into production without Disqus ... please escalate the priority ... </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p><strong>tsaltd</strong> commented:</p> <p>Any news on this ? I just migrated to 6.0 ... having same problem ... Disqus comments enabled, but do not appear .... </p> <p>AND CHECK THIS OUT ... DISQUS COMMENTS WORK WHEN USING WEBMATRIX .... the go back to IIS ... not only does Disqus not show up for posting a new comment ... but the comment does not show up on the blog page ...</p> <p>Bertrand ... No action on this in over a month ??? What's going on ?? I can't go into production without Disqus ... please escalate the priority ... </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p>@jetski5822 commented:</p> <p>I have just attempted to repro, and I cannot. </p> <ol> <li>I pulled in to my solution and enabled the module.</li> <li>I then configured with some bogus creds.</li> <li>I then jumped in to Orchard.exe</li> <li>I then Executed "disqus comments import"</li> </ol> <p>I get the Error... "An error occured while importing comments from Disqus." due to the Bogus creds.</p> <ol> <li>I then attached a debugger and place a break point on line 23, and execute "disqus comments import" within Orchard.exe again. My Break point is hit and the same flow happens.</li> </ol> <p>Do you have anything extra to help as I cant find the problem.....?????</p> <p>Nick</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p><strong>tsaltd</strong> commented:</p> <p>the fact that it works from WebMatrix (IIS Express ?) but not from IIS7 ... isn't that a good clue ... I ust upgraded from 1.4 to 1.6 ... I need to goLive with Disqus ASAP ... again 1 month since this problem surfaced ... it must be effecting a large number of installations .... no chance of a fix before 1.7 ???</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p>@jetski5822 commented:</p> <p>What does IIS have to do with it? I thought this was a problem with Orchard.exe?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p><strong>tsaltd</strong> commented:</p> <p>no one else has discovered that Disqus works fine in 1.6 when run from WebMatrix ??</p> <p>OP's who need this bug fixed ... how can we escalate this fix ? </p> <p>Please let the team know ... feedback that I got is that there are more than 900 fixes in the queue and this one is not a priority.</p> <p>But the fact that it is an IIS issue .. it works fine using the WebMatrix local host web server on the server where my domain is installed (and I run both from the same directory ) -- no one can detect why running on IIS makes a difference ??? Could it be a difference in the way that the code is compiled / runtime created.</p> <p>I'll go back and take a look at what features can be disabled when moving from devto production ... any suggestions here on that front will be appreciated.</p> <p>Steve</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p>@jetski5822 commented:</p> <p>Sorry I am confused, this issue has to do with Disqus and Orchard.exe.... which has nothing to-do with WebMatrix, Visual Studio, IIS, or anything but Orchard.exe</p> <p>Are you saying Discus doesn't work for you through the Admin screens?</p> <p>I am trying to help, but please give me more information!</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/orchardbot"><img src="https://avatars.githubusercontent.com/u/11788683?v=4" />orchardbot</a> commented <strong> 11 years ago</strong> </div> <div class="markdown-body"> <p><strong>the_Simian</strong> commented:</p> <p>As for the disqus module discussiuon here I will share what helped me.</p> <p>I initially posted here: <a href="http://disqusorchard.codeplex.com/discussions/254955">http://disqusorchard.codeplex.com/discussions/254955</a></p> <blockquote> <p>When I went to the app gallery and installed the Disqus module, I was selecting 1.0, but it was actually installing 0.9. Not sure if you have that, but I certainly did. In any case, I did not see the module in the admin menu to configure nor did I see anything in settings and furthermore the comments did not show. In other words it was like my Orchard couldn't even see it.</p> <p>This is on 1.6 by the way.</p> </blockquote> <p>I had better luck with this: <a href="https://github.com/jkernech/Orchard.Disqus">https://github.com/jkernech/Orchard.Disqus</a></p> <blockquote> <p>I installed the module manually. In case you don't know the nuget package is just a zip file, change the extension and open it. Extract the files, and search in the file structure for the folder you need to place in the modules directory of your orchard installation. After that, you'll have two installed - the old one and the new one "Orchard.Disqus". We want the new one. Simply go into your modules section of the admin menu and disable the old one and enable the new module, and also I enabled DisqusRules, that depends on Disqus Comments.</p> </blockquote> <p>I hope that works. If my advice was not helpful, and I only added noise to the discussion I am sincerely sorry. </p> <p>For those of you typing in all caps, and 'shouting' at the project leaders, I think you should remind yourself that this is a community driven project . Noone is your servant in this place. Be nice, and you are always welcome to fix a problem yourself.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>