I’m getting an error when I go into my Orchard CMS admin area in ShellRoute.cs.
The controller for path '/Modules/Orchard.jQuery/scripts/jquery.js' was not found or does not implement IController.
I’ve just recently upgraded in place from 1.5.1 to 1.6. It was working right after the upgrade and I’m not sure what changed. That path doesn’t exist. The path to jQuery is /Modules/Orchard.jQuery/Scripts/jquery-1.8.2.min.js.
Edit: I’m calling
Script.Require("jQuery");
which results in
<script src="/Modules/Orchard.jQuery/scripts/jquery.js" type="text/javascript"></script>
I’ve got this defined in my Orchard.jQuery/ResourceManifest.cs
manifest.DefineScript("jQuery").SetUrl("jquery-1.8.2.min.js", "jquery-1.8.2.js").SetVersion("1.8.2")
.SetCdn("//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js", "//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js", true);
I had jquery-1.8.2.min.js as jquery.min.js for a bit of testing. Maybe is it still referencing that somehow? Is it compiled in somewhere? I’ve cleaned and rebuilt everything in Visual Studio multiple times.
Ideas?
Do Script.Require(“jQuery”).AtHead();. It should work without the AtHead however, and if it doesn’t you should file a bug.