Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matteo Di Mauro 20 posts 73 karma points
    Mar 19, 2014 @ 12:13
    Matteo Di Mauro
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 22, 2014 @ 17:25
    Jan Skovgaard
    0

    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

  • Matteo Di Mauro 20 posts 73 karma points
    Mar 23, 2014 @ 10:43
    Matteo Di Mauro
    0

    Thanks for your input Jan - I'll keep working on this one as I feel the solution might be near.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 23, 2014 @ 10:45
    Jan Skovgaard
    0

    Hi Matteo

    Fair enough :) - Please share if you succeed.

    /Jan

  • Matteo Di Mauro 20 posts 73 karma points
    Mar 23, 2014 @ 17:54
    Matteo Di Mauro
    1

    Ok, I've managed to upgrade the package and make it work on umbraco 7. There were multiple issues:

    1. The solution was using the old Nodefactory
    2. The dll was compiled for the 4.0 version of the framework
    3. The auto respond feature doesn't work so I've commented it all out

    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.

  • Søren Mastrup 122 posts 564 karma points c-trib
    Mar 24, 2014 @ 09:02
    Søren Mastrup
    0

    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

  • Matteo Di Mauro 20 posts 73 karma points
    Mar 24, 2014 @ 10:20
    Matteo Di Mauro
    1

    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:

    • 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)

    All should work now - let me know if not!

    Best, Matteo

  • Søren Mastrup 122 posts 564 karma points c-trib
    Mar 24, 2014 @ 12:16
    Søren Mastrup
    0

    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:

    @Umbraco.RenderMacro("PliableForm_table", new {formNode="1143", jQuery="0"})
    

    When submitting the form, I get the forms error content and the following error: "Object reference not set to an instance of an object."

  • Matteo Di Mauro 20 posts 73 karma points
    Mar 24, 2014 @ 12:18
    Matteo Di Mauro
    0

    Weird, I am probably missing something then. I will check it later and get back to you.

  • Matteo Di Mauro 20 posts 73 karma points
    Mar 25, 2014 @ 15:06
    Matteo Di Mauro
    0

    Søren, are you <strong>label</strong> fields empty? It seems that if they are empty it'll break (it happened to me today)

    Søren, are you label fields empty? It seems that if they are empty it'll break (it happened to me today)

  • Søren Mastrup 122 posts 564 karma points c-trib
    Mar 25, 2014 @ 15:11
    Søren Mastrup
    0

    No labels

    Hi Matteo, They are not just empty, they are gone!? Have you experienced that issue?

  • Matteo Di Mauro 20 posts 73 karma points
    Mar 25, 2014 @ 15:16
    Matteo Di Mauro
    0

    YES! Sorry I totally forgot about it! Try assign that field a textstring, that should do the trick. Let me know!

  • Søren Mastrup 122 posts 564 karma points c-trib
    Mar 25, 2014 @ 15:49
    Søren Mastrup
    0

    I'm getting closer - I now get the following:

    The parameter 'address' cannot be an empty string. Parameter name: address
    

    I suspected it to be the "to-address", but that is already filled in.

  • Matteo Di Mauro 20 posts 73 karma points
    Mar 25, 2014 @ 15:53
    Matteo Di Mauro
    1

    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):

    <appSettings>
        <add key="PliableForm.defaultEmailSubject" value="Contact form" />
        <add key="PliableForm.defaultToAddress" value="[email protected]" />
        <add key="PliableForm.enableSsl" value="False" />
        <add key="PliableForm.fromAddress" value="[email protected]" /> 
      </appSettings>
    
  • Tigran 4 posts 24 karma points
    Jun 11, 2014 @ 23:05
    Tigran
    0

    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

     

  • Matteo Di Mauro 20 posts 73 karma points
    Jul 01, 2014 @ 15:09
    Matteo Di Mauro
    0

    Hello Tigran - have you copied the .dll file I've posted earlier and changed the Label type to textstring for each pliable field?

  • Tigran 4 posts 24 karma points
    Jul 02, 2014 @ 17:20
    Tigran
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft