'ctl00_ctl00_cph1_cph2_ctl00_txtEmail_rfvValue' is null or not an object when a page got loaded

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
Hi All,

I made a miskate  somewhere in one of the .aspx files that caused an error when a page got loaded:
Here is the error:
__________________________________________________________________
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Sat, 27 Nov 2010 20:15:46 UTC


Message: 'ctl00_ctl00_cph1_cph2_ctl00_txtEmail_rfvValue' is null or not an object
Line: 516
Char: 1
Code: 0
URI: http://www.finepaintinggallery.com/nopcommerce_app/


Message: 'null' is null or not an object
Line: 289
Char: 9
Code: 0
URI: http://www.finepaintinggallery.com/nopCommerce_App/WebResource.axd?d=cz1eGPCCRDvnoiCw1jB6WUqGpSJ8WlqD4Bkl7_oUf1qs9apChPvOt2urXVgk2YjynsUxpU9_9eJQPL_g1GyfjYV65qI1&t=634208597469717278
___________________________________________

From the error message, looks like my page was trying to load a resource, but either the resource is not existed, or its content had been null; further more, that resource might be the textEmail when got verified(rfvValue). I don't know why loading a page will cause a textmail got verified, and even it was null.
Please help.
Thanks a lot.
13 years ago
What page does the error occur on?  Maybe you deleted a required field validator...probably the one on the email field.
13 years ago
After the browser (ie) loaded a apge, there is a status display at the lower left corner. Usually, it says "Done",but when I loaded my Home Page, the display was "Done, but with errors on page.", and a bang (!) in front of it. I clicked the (!), it displayed what I copied here in my initial post.

I notinced, if I loaded other page from there, the lower left corner message is always "! Done, but with errors on Page.", but the content changed slightly. For example, if Home Page is loaded, the display is:
***********************************************
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Sun, 28 Nov 2010 00:32:42 UTC


Message: 'ctl00_ctl00_cph1_cph2_ctl00_txtEmail_rfvValue' is null or not an object
Line: 516
Char: 1
Code: 0
URI: http://www.finepaintinggallery.com/nopcommerce_app/


Message: 'null' is null or not an object
Line: 289
Char: 9
Code: 0
URI: http://www.finepaintinggallery.com/nopCommerce_App/WebResource.axd?d=cz1eGPCCRDvnoiCw1jB6WUqGpSJ8WlqD4Bkl7_oUf1qs9apChPvOt2urXVgk2YjynsUxpU9_9eJQPL_g1GyfjYV65qI1&t=634208597469717278

****************************************************************
then if New Products page is loaded, the display is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Sun, 28 Nov 2010 00:34:44 UTC


Message: 'ctl00_ctl00_cph1_cph2_ctl00_txtEmail_rfvValue' is null or not an object
Line: 983
Char: 1
Code: 0
URI: http://www.finepaintinggallery.com/nopCommerce_App/recentlyaddedproducts.aspx


Message: 'null' is null or not an object
Line: 289
Char: 9
Code: 0
URI: http://www.finepaintinggallery.com/nopCommerce_App/WebResource.axd?d=cz1eGPCCRDvnoiCw1jB6WUqGpSJ8WlqD4Bkl7_oUf1qs9apChPvOt2urXVgk2YjynsUxpU9_9eJQPL_g1GyfjYV65qI1&t=634208597469717278

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



The major differences between loading these two pages are:
loading Home Page displays:

Message: 'ctl00_ctl00_cph1_cph2_ctl00_txtEmail_rfvValue' is null or not an object
Line: 516
Char: 1
Code: 0
URI: http://www.finepaintinggallery.com/nopcommerce_app/

while loading New Products Page displays:

Message: 'ctl00_ctl00_cph1_cph2_ctl00_txtEmail_rfvValue' is null or not an object
Line: 983
Char: 1
Code: 0
URI: http://www.finepaintinggallery.com/nopCommerce_App/recentlyaddedproducts.aspx
Message: 'null' is null or not an object
Line: 289
Char: 9
Code: 0


I looked recentlyaddedproducts.aspx, it has only 7 lines of the code, but at run-time it might loaded other data because it has "cph1" in it.

Thanks for your time.
13 years ago
I found the code in customerinfo.ascx:

                    <td class="item-value">
                        <asp:TextBox ID="txtEmail" runat="server" MaxLength="40"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="<% $NopResources:Account.E-MailRequired %>" ToolTip="<% $NopResources:Account.E-MailRequired %>"
                            Display="Dynamic" ValidationGroup="CustomerInfo">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator runat="server" ID="revEmail" Display="Dynamic" ControlToValidate="txtEmail"
                            ErrorMessage="<% $NopResources:Account.InvalidEmail %>" ToolTip="<% $NopResources:Account.InvalidEmail %>"
                            ValidationExpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+" ValidationGroup="CustomerInfo">*</asp:RegularExpressionValidator>
                    </td>


still trying to figure out what causes that.
13 years ago
I changed some code to use TwoColumn, that caused the problem. I cleaned up little bit in TwoColumn code, mainly delete some resources that I don't need any more, now the page loaded without any error.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.