Copied to clipboard

Flag this post as spam?

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


  • Andreas Kaltenhuber 107 posts 286 karma points
    May 29, 2012 @ 17:47
    Andreas Kaltenhuber
    0

    Strange AdminOrder XSLT Behavior

    Hi,

    i've altered the adminorder.xslt file and added an additional property field "tracking nr". works perfect on my localhost dev environment. on my production server the values don't get saved (no JS error).

    i get the same behavior too with the orginial file (where i have the comments and the notes field) from a clean install.

    any ideas?

    thx

    Andi

     

     

  • Andreas Kaltenhuber 107 posts 286 karma points
    May 29, 2012 @ 17:52
    Andreas Kaltenhuber
    0

    Here is the JS Code. works on localhost

    <script type="text/javascript">
            <![CDATA[
            onSaving(function(){
              var formObj = {
                "comments": jQuery("#comments").val(),
                "orderNotes": jQuery("#orderNotes").val(),
                "trackingNr": jQuery("#trackingNr").val()
              };
              TeaCommerce.updateOrderPropertiesAdmin(]]><xsl:value-of select="$order/@id"/><![CDATA[,formObj, false);
            });
            ]]>
          </script>

  • Rune Grønkjær 1372 posts 3103 karma points
    May 30, 2012 @ 07:59
    Rune Grønkjær
    0

    Hi Andi,

    If it works locally it should work on the server as well (Wise words ;-) ). But something must be different on the two machines.

    Try opening the firebug console, to see if the server call is made and if all your properties are sent correctly.

    Does it save your comment changes?

    /Rune

  • Andreas Kaltenhuber 107 posts 286 karma points
    May 30, 2012 @ 09:21
    Andreas Kaltenhuber
    0

    Hi Rune,

    on both localhost and server i get an error in the firebug console when the call to /tcbase/teacommerce/UpdateOrderPropertiesAdmin/XX.aspx is made. but on localhost the values get saved...

    i cant even use the adminorder.xslt from a new install. comments/ordernotes don't get saved either.

    in firebug when i try to send the failed request again, i get an positive response (and values are saved) as long as i have an active orderid from the frontend webshop in my cookies. otherwise a get an exception...

    hope that makes some sense to you ;-)

    thx

  • Rune Grønkjær 1372 posts 3103 karma points
    May 30, 2012 @ 09:26
    Rune Grønkjær
    0

    Hi Andi,

    I'm afraid it doesn't make enough sence yet :)

    What error do you get when the /tcbase/teacommerce/UpdateOrderPropertiesAdmin/XX.aspx is called?
    And I guess the XX is a valid order id!?

    /Rune

  • Andreas Kaltenhuber 107 posts 286 karma points
    May 30, 2012 @ 13:59
    Andreas Kaltenhuber
    0

    yes you're right. XX is valid order id

    actually i don't get really useful error information. i just can see that the method is post, and the status is "canceled"... with no response

    here is the complete output:

    {
      "startedDateTime": "2012-05-30T11:55:19.724Z",
      "time": 4,
      "request": {
        "method": "POST",
        "url": "http://www.domain.com/tcbase/teacommerce/UpdateOrderPropertiesAdmin/55.aspx",
        "httpVersion": "HTTP/1.1",
        "headers": [
          {
            "name": "Origin",
            "value": "http://www.domain.com"
          },
          {
            "name": "X-Requested-With",
            "value": "XMLHttpRequest"
          },
          {
            "name": "User-Agent",
            "value": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5"
          },
          {
            "name": "Content-Type",
            "value": "application/x-www-form-urlencoded; charset=UTF-8"
          },
          {
            "name": "Accept",
            "value": "application/json, text/javascript, */*; q=0.01"
          },
          {
            "name": "Referer",
            "value": "http://www.domain.com/umbraco/plugins/teacommerce/orders/EditOrder.aspx?id=55"
          }
        ],
        "queryString": [],
        "cookies": [],
        "headersSize": 490,
        "bodySize": 63,
        "postData": {
          "mimeType": "application/x-www-form-urlencoded; charset=UTF-8",
          "text": "comments=sadfsd&orderNotes=asdf&trackingNr=547794449877834rrdss",
          "params": [
            {
              "name": "comments",
              "value": "sadfsd"
            },
            {
              "name": "orderNotes",
              "value": "asdf"
            },
            {
              "name": "trackingNr",
              "value": "547794449877834rrdss"
            }
          ]
        }
      },
      "response": {
        "status": 0,
        "statusText": "",
        "httpVersion": "HTTP/1.1",
        "headers": [],
        "cookies": [],
        "content": {
          "size": 0,
          "compression": 0
        },
        "redirectURL": "",
        "headersSize": 13,
        "bodySize": 0
      },
      "cache": {},
      "timings": {
        "blocked": 0,
        "dns": -1,
        "connect": -1,
        "send": -1,
        "wait": -1,
        "receive": null,
        "ssl": -1
      }
    }
    
  • Anders Burla 2560 posts 8256 karma points
    May 30, 2012 @ 17:14
    Anders Burla
    0

    Hi Andi

    Did you change the error message? Looking weird its posting to www.domain.com

    Kind regards
    Anders

  • Andreas Kaltenhuber 107 posts 286 karma points
    May 30, 2012 @ 17:16
    Andreas Kaltenhuber
    0

    Hi Anders,

    yes i did... but domains are all OK and were the same.

     

    thx,

    Andreas

  • Anders Burla 2560 posts 8256 karma points
    May 30, 2012 @ 17:18
    Anders Burla
    0

    Which http status code do you get when its posting?

  • Andreas Kaltenhuber 107 posts 286 karma points
    May 30, 2012 @ 17:27
    Andreas Kaltenhuber
    0

    aborted/canceled, no status code returned. see attached pic

  • Anders Burla 2560 posts 8256 karma points
    May 31, 2012 @ 09:11
    Anders Burla
    0

    Hmm weird! Could it have something to do with the DependencyHandler? If its working locally it should work live as well. Its the same code :) So maybe something with the setup is different

    Kind regards
    Anders

  • Andreas Kaltenhuber 107 posts 286 karma points
    May 31, 2012 @ 09:13
    Andreas Kaltenhuber
    0

    its defenitely weird... setup is the same, as the production site is a 1:1 copy. hmmm :-)

    thx,
    Andi 

  • Andreas Kaltenhuber 107 posts 286 karma points
    Jun 26, 2012 @ 20:05
    Andreas Kaltenhuber
    0

    So i'm getting nearer to the problem. if have a 1:1 copy on a server in our LAN => AdminOrderTemplate gets saved without problems. the same with a visual studio project on localhost.

    on our production server the values don't get saved. the output in firebug is the same on each setup. the physical servers (local dev server, production server) are both the same (win2008 r2 web, iis75).

    has anyone a tip where to look at? maybe there is a some "sort" of misconfiguration in IIS?

    thx

    Andi

  • Anders Burla 2560 posts 8256 karma points
    Jun 27, 2012 @ 11:21
    Anders Burla
    0

    Tried different browsers?

    So your local version works, but not the online one? And both servers have same method calls in FireBug and both post correctly and returns some data?

    Kind regards
    Anders

  • Andreas Kaltenhuber 107 posts 286 karma points
    Jun 27, 2012 @ 16:07
    Andreas Kaltenhuber
    0

    Hi Anders,

    actually its all the same, same return values in firebug... but no chance on the online version. 

    but thx for the tip to user different browsers. its working in IE9 :-) mozilla & chrome still not working, but i'm fine now at the moment ;-)

    thx for your help,

    Andreas

  • Anders Burla 2560 posts 8256 karma points
    Jun 27, 2012 @ 21:49
    Anders Burla
    0

    No problem - but its weird that it works in IE :)

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft