Internal Error => Unable to Add item to cart when it has Multiple Custom Textboxes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 14 ans
first of all i must thank to the dev. team & supporter who dedicate to buildup this NopCommerce i have gone through 4-5 online store, never seen this kind of awesome & customisable Application,,, hats off

I have hosted & upgraded to 1.40 version on Godaddy domain & webhosting, I have also created some item with Multiple Custom TextBoxe all work fine, but im getting an Internal Error message while adding the item to cart
(find log entry below)

------------------------------------------------------------------------------------------------------------
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException: Multiple controls with the same ID 'Custom Text' were found. FindControl requires that controls have unique IDs. at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.EnsureNamedControlsTable() at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Page.FindControl(String id) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.product_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nopcommerce\dcbcaf63\18a3d0c3\App_Web__ghjvpzi.4.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Il y a 14 ans
Ummm not totally sure.  I've just had a a look at the code and found:

     case AttributeControlTypeEnum.TextBox:
                                {
                                    TextBox txtAttribute = new TextBox();
                                    txtAttribute.ID = attribute.ProductAttribute.Name;
                                    divAttribute.Controls.Add(txtAttribute);
                                }
        break;

Do your product attributes have the same name?  If so then try changing one of them somehow so its different.

Hope this helps.

Thanks,
Matthew
Il y a 14 ans
thanx for your response,

No not the same i tried with different names, i get this internal error if the item has multiple Custom textbox only, but if i make it one Custom textbox it works smoothly

I also tried Executing the SQL server with a file name of nopCommerce_upgrade.sql which i found in Install/Scripts/1.4 folder, anyhow i could open it in the SQLopen file but while excuting it gave me an error message as below:-

Invalid column name 'RequiresTextOption'. Invalid column name 'TextOptionPrompt'.

I feel both above errors are related to each others, not only me i have seen many of users posted above SQL error msg., hope we can sortout this :)
Il y a 14 ans
Same problem here...
Il y a 14 ans
So you are using the same attribute twice?  Or two different attributes.
Il y a 14 ans
for example

Unlock Blackberry Device Price = 20$

[u][/u]

Kindly provide us your phone details

Phone Model : __________   [Custom textbox 1]
Phone Imei No: __________   [Custom textbox 2]
Country : __________   [Custom textbox 3]

above item cannot be added in cart for checkout it shows that internal error msg, however it works fine if i remove the 2nd & 3rd Custom Textboxes, hope i explained you clearly
Il y a 14 ans
and are those 3 textboxes 3 different attributes or the same one
Il y a 14 ans
I had the same error, and I am using no custom textboxes?
Il y a 14 ans
Yeah correct you pointed out that exactly, now i found the mistake.  I Used the Same attributes in 3 textboxes. Now my 1.40v runs smoothly, thanx for that quick response. this forum is really helpful to beginners like me : )

got one more question,

my store works when i enter ==> www.onlineshop.com/nopcommerce/

how do i make it under my domain name withount adding that /nopcommerce/
i.e my store should appear when a custmer type ==> www.onlineshop.com

thanx in advance
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.