Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: customization error

  1. #1
    chrismartz is offline Senior Member
    Join Date
    Apr 2010
    Posts
    339

    Default customization error

    I have been working on my layout for my site and am now getting an error:

    Code:
    Message: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
    Parameter name: element
    Line: 2710
    Char: 23
    Code: 0
    URI: http://development/Theme/ScriptResource.axd?d=Vmxiv1GsJPJ8alfhyU576PyEs8fBVoYxnNFd-upPCcEovq3Vi5u5rm3eTL0MsAKA-jTcaPFvH2mJvqb5LxGPVg5mbueICgVbTr3m8tm5dIA1&t=ffffffffedcb2622
    I have only been working in template.master but do not know what I did to create this error. Any ideas?

  2. #2
    webopius is offline Senior Member
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    440

    Default

    Hi

    This is a really difficult one to diagnose without looking at your site and/or code... so let's work backwards...

    I think your script is failing in the function Sys$Component$_setReferences() function but on the v9 site's I've got running, this function is not finding any controls and because of this is just skipping the block where you are getting the error.

    Some ideas..

    Run the site in Google Chrome, turn on Developer mode, find the scripts and set a breakpoint on Sys$_Application$_doInitialize() - this is the parent function that calls your crashing item. Step through the code until the point it's about to crash and look at the value of the element param being passed.

    Or...

    Make a copy of your master template. Then progressively remove controls and elements until it works to try and identify the offending component.

    Adam

  3. #3
    chrismartz is offline Senior Member
    Join Date
    Apr 2010
    Posts
    339

    Default

    The problem was that it was looking for something related to the ajax checkout. I added that information to the template and now it doesn't give me an error.

    I am, however, getting an error when clicking the add button to add an item to the cart. I do not understand as I haven't changed anything to my add to cart process:

    Code:
    Webpage error details
    
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MDDS)
    Timestamp: Mon, 23 Aug 2010 18:36:49 UTC
    
    
    Message: 'type' is null or not an object
    Line: 924
    Char: 4
    Code: 0
    URI: http://development/theme/jscripts/formvalidate.js
    
    
    Message: 'type' is null or not an object
    Line: 924
    Char: 4
    Code: 0
    URI: http://development/theme/jscripts/formvalidate.js
    
    
    Message: 'type' is null or not an object
    Line: 924
    Char: 4
    Code: 0
    URI: http://development/theme/jscripts/formvalidate.js