When I tried to add Contour form inside RTE, I am getting this error in 7.2.4,
The SessionStateTempDataProvider class requires session state to be enabled
on following line of code in MvcRenderContourForm.cshtml present in macroScripts folder:
#Html.RenderMvcAction(action, controller, formGuid, formtoken, (umbraco.MacroEngines.DynamicNode)Model, (System.Dynamic.DynamicObject)Parameter);
Its like a dead end for me now, please help.
Add macro inside template and it will work :)
https://our.umbraco.org/forum/umbraco-pro/contour/47723-Unable-to-render-form-in-richtext-editor-30180-(Umbraco-7)?p=3#comment215341
Related
There's something I'm been missing in how Struts resolve ftl tag,
I have an action with some methods that I'm trying to call from my ftl.
The signature:
<#s.property value="%{someJavaMethod(someVariable)}>
is working fine, but the directive
<#include someJavaMethod(someOtherVariable)>
is giving me this:
----: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> someJavaMethod
and I cant figure out why, since, based on my limited knowledge of struts the signature # has access to the context Map where action properties and methods are stored.
NB: I checked that the problem is not in the someJavaMethod since debugging the code it doesn't even enter into.
You should reference the action to call its method in Freemarker. It is supported by the Struts 2 framework.
<#include action.someJavaMethod(someOtherVariable)>
This is an ASP.NET (Framework v. 4.5.2) website currently running reliably in production. A new requirement called for adding a new column to an existing SQL Server table (apProduct) which has been done. I then made the necessary changes to the .edmx file, controllers, views, etc., and everything is compiling fine. However I'm now getting the runtime error below:
When I debug and set a breakpoint where apDepartment is first getting created, I expand the created objects and see this:
My attention is drawn to: "The metadata for 'EntityFrameworkDynamicProxies-AnkoMVC' is invalid."
Here is where apProduct is defined, clearly within the AnkoMVC.Models namespace:
Lastly, here is the DbContext class:
Can anyone offer suggestions on how to overcome this?
I found the problem in the #model reference in many of the views. Here is the faulty code:
This is the corrected #model reference:
Thanks!
Please see attached screenshots and code if that makes it easier (at the bottom of this http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/sitefinity-8-2-to-9-upgrade-error#HlX3NsE3622pWP8AAERlJg post)
I have tried all the methods listed above and the workaround, but still keep getting the same issue.
This happens when I trigger changes(activate/deactivate) a module in Sitefinity/Administration/ModulesAndServices
The progress bar (green) goes into a loop and refreshing the page gives me this:
Error loading Ninject component ICache
No such component has been registered in the kernel's component container.
Suggestions:
1) If you have created a custom subclass for KernelBase, ensure that you have properly
implemented the AddComponents() method.
2) Ensure that you have not removed the component from the container via a call to RemoveAll().
3) Ensure you have not accidentally created more than one kernel.
And in the error logs for sitefinity I get:
Message : Error loading module 'YourPackage.YourModule' of type YourModule
Another module (of type YourModule) with the same name has already been loaded
Suggestions:
1) Ensure that you have not accidentally loaded the same module twice.
2) If you are using automatic module loading, ensure you have not manually loaded a module
that may be found by the module loader.
Have followed the article: http://docs.sitefinity.com/feather-use-constructor-dependency-injections
and the workaround too: https://github.com/Sitefinity/feather/issues/2580
Thanks in Advance
I am new to ColdBox so please be understanding :)
In the documentation I found the option of setting a view from an external module in coldbox, by providing the "module" attribute.
When in my controller I set for example event.setView (view="test_view", module="contentbox"); I get the following error:
Application Execution Exception
Error Type: missinginclude : 0
Error Messages: Page //views/test_view.cfm [C:\(...path...)\slawek_contentbox\views\test_view.cfm] not found
It seems like coldbox is ignoring the module setting and is looking in the main views path \views\, but I would expect it to look inside \modules\contentbox\views\.
I would really appreciate if anyone would be able to help me with this issue!
I have tried using creating a different module and attaching the ZfcUser\Form\Register over init method. But it wasn't working.
I want to add few custom fields, with changing any thing in the vendor dir, as is it not a good practice. I also tried using user_entity_class ,creating a custom 'User' class, but it was creating some route issue in other modules, with zfc-user , I'm also using zfc-admin and zfc-adminuser, the error was coming in zfc-adminuser, Couldn't found the class was the error.
Thanks in advance.
Well there are some issue regarding the overriding of the module ZFC-User, But still you can overwrite it manually.
One way I have used is a bit old fashioned but working. What I have done is I have copied complete module the to module folder. Then pointing the form towards to my module where the changes are required, rest all are pointed to default.With this you can update your module. Make sure you point the user_entity_class to your module something like this:
'user_entity_class' => 'MyZfcUser\Entity\User',
you can find this in config\autoload\zfcuser.global.php