Copied to clipboard

Flag this post as spam?

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


  • Gaitano Boeraeve 17 posts 56 karma points
    Feb 13, 2016 @ 22:57
    Gaitano Boeraeve
    0

    Issue when extending Product Variant with Extended Content

    I've been looking for a solution for this issue whole saturday but I'm out of ideas now. I hope you guys can point me in some direction.

    In my Merchello I have a list with products with each of them 2 variants. To give my customer more flexibility in the description of the variant I decided to use extended content to let him assign two simple textfields to the variant. In development (without real products) this works fine, I can extend the variant using a simple contentType, afterwards the view reloads and I can fill it in.

    In ACC however (with real products) I choose to extend my variant using the exact same contentType, afterward the view reloads, but no a loading Icon keeps spinning and in my browser console I find an JS error.

    TypeError: Cannot read property 'id' of null
    at merchello.controllers.js?cdv=1920605506:6286
    at i (angular.min.js?cdv=1920605506:79)
    at angular.min.js?cdv=1920605506:80
    at Object.e.$eval (angular.min.js?cdv=1920605506:92)
    at Object.e.$digest (angular.min.js?cdv=1920605506:90)
    at Object.e.$apply (angular.min.js?cdv=1920605506:92)
    at j (angular.min.js?cdv=1920605506:101)
    at r (angular.min.js?cdv=1920605506:104)
    at XMLHttpRequest.w.onreadystatechange (angular.min.js?cdv=1920605506:106)
    

    Line 6286 of merchello.controllers.js points to

    $scope.tabs.setActive($scope.currentTab.id);
    

    So somehow the extended content tab is null in JS.

    In attempt to solve the issue I updated my Umbraco to 7.3.7 and Merchello to 1.14.0 but this didn't exactly help. During this upgrade proces I found out that there was a product with a non unique SKU, but this has been solved now and doesn't solve this issue.

    Extra information - The umbracotracelog is further empty. - I do notice two indexer problems in examine: OrderIndexer and Invoice indexer keep loading, without completing. No problem at other indexers. Maybe this has something to do with it, or is even an other issue I have?

    Any idea what the reason for this could be, or how I can debug further into this?

  • William Zhang 39 posts 243 karma points
    Feb 16, 2016 @ 18:01
    William Zhang
    100

    Hi Gaitano,

    I just ran into the exact same issue that you described a few minutes ago - I'm running Umbraco 7.3.5 and 1.14.0.

    The really strange thing is that the problem disappeared when I removed and recreated the underlying DocType, even with the same name. Now I can't recreate the problem no matter what I do. I can't explain what might have caused this, but you could try the same thing.

  • Gaitano Boeraeve 17 posts 56 karma points
    Mar 02, 2016 @ 06:24
    Gaitano Boeraeve
    0

    Wow, that solved the issue. Thanks!

    Steps I did:

    1. Removed the extended content type at merchello/merchello/productcontenttypelist/manage
    2. Removed the document type
    3. Recreated document type
    4. Recreated product content type

    No idea if 2 en 3 are necessary, but I decided to be sure.

  • Chris 6 posts 24 karma points
    Apr 25, 2016 @ 02:08
    Chris
    0

    Has anyone else had this error and resolved it another way? I cannot resolve it with these steps. Thanks!

  • Bliss Applications 2 posts 72 karma points
    Nov 17, 2016 @ 03:40
    Bliss Applications
    0

    Hi,

    I've had the exact same issue. You can replicate it if you associate a Product with a ContentType that contains no Tabs (and no Properties).

    The problem lies in the javascript. That's why there is no trace in umbraco logs on the server side.

    I've filed a bug report on Merchello Issue Tracker: http://issues.merchello.com/youtrack/issue/M-1224

Please Sign in or register to post replies

Write your reply to:

Draft