Umbraco 7 - Object reference not set to an instance of an object
Hello all,
I am trying to implement this beautiful package on umbraco7. I had to amend the xslt and the js to make it work properly and I was able to send a valid array to /umbraco/PliableSender.asmx/sendForm but it throws an "Object reference not set to an instance of an object." exception. Here's what the console.log(result.d.Msg) returns:
Object d: Object Msg: "Object reference not set to an instance of an object." Result: "3" __type: "PliableForm.formResponse" __proto__: Object __proto__: Object
Any help would be massively appreciated. Thank you in advance.
I have not tried the above package myself however I can imagine that it's failing if it makes use of the Umbraco API to do something since the package is from 2010 and the API has been updated a couple of times since then and there has happened alot between versions.
I'm not sure what other form packages that exists, which are comapatible with version 7 at the moment either.
But perhaps you can achieve your goal by setting up your own form using html, javascript, css and Razor?
In order to make it work you need to install the latest Pliableform package first, then:
copy the .dll file from the zipped folder to your /bin/ folder
copy the .xslt file from the zipped folder to your /xslt/ folder
(sorry I've fixed only the _table version of the xslt, let me know if
you need the other one too)
We are getting closer indeed! This is a known issue, the solution is to put in your web.config in the appSettings section, the following (change your values accordingly):
I tried to change Label type to textstring but it does not help me, it is still returning error 'Object reference not set to an instance of an object'.
Umbraco 7 - Object reference not set to an instance of an object
Hello all,
I am trying to implement this beautiful package on umbraco7. I had to amend the xslt and the js to make it work properly and I was able to send a valid array to /umbraco/PliableSender.asmx/sendForm but it throws an "Object reference not set to an instance of an object." exception. Here's what the console.log(result.d.Msg) returns:
Any help would be massively appreciated. Thank you in advance.
Hi Matteo and welcome to our :)
I have not tried the above package myself however I can imagine that it's failing if it makes use of the Umbraco API to do something since the package is from 2010 and the API has been updated a couple of times since then and there has happened alot between versions.
I'm not sure what other form packages that exists, which are comapatible with version 7 at the moment either.
But perhaps you can achieve your goal by setting up your own form using html, javascript, css and Razor?
/Jan
Thanks for your input Jan - I'll keep working on this one as I feel the solution might be near.
Hi Matteo
Fair enough :) - Please share if you succeed.
/Jan
Ok, I've managed to upgrade the package and make it work on umbraco 7. There were multiple issues:
Recompiled and it works now. I'll be happy to post the complete fix but I would like the author to authorise me in case.
Hi Matteo, is it possible to download your working pliable form from somewhere? I also need it to run on an Umbraco 7 installation.
Thanks!
//Søren
Hi Søren, you can download the fix from http://bit.ly/1nSVG3S
In order to make it work you need to install the latest Pliableform package first, then:
All should work now - let me know if not!
Best, Matteo
Thanks Matteo! Sadly it didn't solve my problem.
I have installed the latest Pliable Form (1.3) and copied the xslt + bin files. I include my form on my page with the following:
When submitting the form, I get the forms error content and the following error: "Object reference not set to an instance of an object."
Weird, I am probably missing something then. I will check it later and get back to you.
Søren, are you label fields empty? It seems that if they are empty it'll break (it happened to me today)
Hi Matteo, They are not just empty, they are gone!? Have you experienced that issue?
YES! Sorry I totally forgot about it! Try assign that field a textstring, that should do the trick. Let me know!
I'm getting closer - I now get the following:
I suspected it to be the "to-address", but that is already filled in.
We are getting closer indeed! This is a known issue, the solution is to put in your web.config in the appSettings section, the following (change your values accordingly):
Hello All,
I have same problem in Umbraco 7.
I tried to change Label type to textstring but it does not help me, it is still returning error 'Object reference not set to an instance of an object'.
Please help to fix the issue.
Thanks in advance
Hello Tigran - have you copied the .dll file I've posted earlier and changed the Label type to textstring for each pliable field?
Hello Matteo,
Thanks for your reply.
Yes I have done that steps, but still it is returning 'Object reference not set to an instance of an object' error on submit.
I can give You temp access to my webpage and You debug your own if You can, I will be very grateful.
If it is ok for You, please give me your email and I will send You link and username/password.
Thanks in advance.
Tigran
is working on a reply...