By jaymer - Mon 22 Jul 2013
|
Hi,The front of our site has stopped working now, can someone help tell me what I've done! This is from the error logs:-
>> Version:2.0002 >> URL: http://www.brewbitz.com/Default.aspx>> Page: ----------------------------------------------------------------------------- >> 22/07/2013 17:15:58 >> 86.162.57.146 >> DESCRIPTION: System.NullReferenceException: Object reference not set to an instance of an object. at UserControls_Front_NavigationMenu.menFrontEnd_MenuItemDataBound(Object sender, MenuEventArgs e) at System.Web.UI.WebControls.Menu.DataBindRecursive(MenuItem node, IHierarchicalEnumerable enumerable) at System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item) at System.Web.UI.WebControls.Menu.PerformDataBinding() at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() at System.Web.UI.WebControls.Menu.EnsureDataBound() at System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e, Boolean registerScript) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.BasePartialCachingControl.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) I was changing the default.aspx file to remove the stuff in the footer at the time...
|
By toomuchpresha - Tue 23 Jul 2013
|
Hi, Try to make a change in the web.config and run the site. See if that helps. I've seen this before and that helped me.
|
By toomuchpresha - Tue 23 Jul 2013
|
Also, don't remove any controls that are there. better to use visible="false" on the ones you don't need to use
|
By jaymer - Tue 23 Jul 2013
|
thanks for the try, but no luck,the latest error I'm getting is...
>> 23/07/2013 14:35:19 >> 86.162.57.146 >> DESCRIPTION: System.NullReferenceException: Object reference not set to an instance of an object. at UserControls_Front_NavigationMenu.menFrontEnd_MenuItemDataBound(Object sender, MenuEventArgs e) at System.Web.UI.WebControls.Menu.DataBindRecursive(MenuItem node, IHierarchicalEnumerable enumerable) at System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item) at System.Web.UI.WebControls.Menu.PerformDataBinding() at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() at System.Web.UI.WebControls.Menu.EnsureDataBound() at System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e, Boolean registerScript) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.BasePartialCachingControl.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
By toomuchpresha - Tue 23 Jul 2013
|
Have you removed or commented out any controls on the page like news etc?
|
By jaymer - Tue 23 Jul 2013
|
I don't think so, I've replaced the default.aspx with the original file from the download, this was the file I was playing with when it decided not to play anymore!
here is a copy of the file...
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="Main" MasterPageFile="~/Skins/Kartris/Template.master" %> <asp:Content ID="cntMain" ContentPlaceHolderID="cntMain" runat="Server"> <div id="homepage"> <user opupMessage ID="UC_PopUpConfirmMail" runat="server" /> <% '--------Home page main feature---------- %> <user age ID="UC_Page" runat="server" PageName="default" EnableViewState="False" /> <div class="spacer"> </div> <% '--------Various highlighted products and info---------- %> <div class="chunks"> <div class="chunk"> <user:FeaturedProducts ID="UC_FeaturedProducts" runat="server" /> </div> <div class="chunk"> </div> <div class="chunk"> <user:SiteNews ID="UC_SiteNews" runat="server" TitleTagType="h2" EnableViewState="False" /> </div> </div> </div> </asp:Content>
|
By toomuchpresha - Tue 23 Jul 2013
|
Ok, can you access any other pages by going directly to them? yoursite.com/Customer.aspx for example.
|
By jaymer - Tue 23 Jul 2013
|
no, can't get into any pages...
|
By toomuchpresha - Tue 23 Jul 2013
|
Ok so it might be something in your template.master. Try backing the current one up and replacing with a new one from the zip file with the original Kartris you installed from.
|
By jaymer - Tue 23 Jul 2013
|
yes, tried that...
|
By toomuchpresha - Tue 23 Jul 2013
|
Can you access your admin area?
|
By jaymer - Tue 23 Jul 2013
|
mostly, but not all pages,for instance Admin/_Destinations.aspx no...
|
By Medz - Tue 23 Jul 2013
|
From the error it looks like your web_menu.sitemap file is messed up. Can you check if getting the stock one from the zip fixes the issue?
|
By jaymer - Tue 23 Jul 2013
|
sorry, that didn't work either,
I think it may be something to do with tax or countries... a member of staff here said the tax options disappeared earlier when creating products... and now this...
----------------------------------------------------------------------------- >> Version:2.0002 >> URL: http://www.brewbitz.com/Admin/_Destinations.aspx>> Page: ----------------------------------------------------------------------------- >> 23/07/2013 18:04:20 >> 86.162.57.146 >> DESCRIPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at TaxRegime.CalculateTaxRate(Double V_Tax, Double V_Tax2, Double D_Tax, Double D_Tax2, String D_TaxExtra) at KartrisClasses.Country..ctor(SqlDataReader reader) at KartrisClasses.Country.GetAll(Int16 LanguageID) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.ListControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() at System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ==================================================
|
By Medz - Tue 23 Jul 2013
|
That error's different from the one in your first post. This one looks like there's a problem with either the destination, taxrates or currencies table in your database. Can you remember modifying something in the db that might have triggered the error? If you have a backup, probably best to restore an earlier snapshot to a new database. You can then try to compare and see whats different. If backup's not present, comparing the contents of the 3 tables against a newly set up Kartris db might also help.
|
By jaymer - Tue 23 Jul 2013
|
I think you're right, but I've not gone into the database itself to change anything, all of these config setting I've been amending from the admin area,
looking at it, the only thing I can see which looks suspicious is in the TaxRates table, line 2, the 20% rate, field T_QBRefCode is empty, and all other lines are NULL.
|
By jaymer - Tue 23 Jul 2013
|
and I can't get into the Countries page of Admin,/Admin/_Destinations.aspx
|
By Paul - Wed 24 Jul 2013
|
Try reverting to a default skin. The menu control is giving the error, and that is in the skin. The way menus were handled was changed slightly from v1.4 to 2.0 - the type of menu is now embedded directly into the skin (this was done because skins are typically designed around the type of menu, e.g. horizontal, vertical accordion - now the skin effectively gets to set which type of menu is used).
|
By jaymer - Wed 24 Jul 2013
|
I've only got the Kartis theme installed, and whether it is selected or not, the site is still not working,
|
By jaymer - Wed 24 Jul 2013
|
I've copied the original Kartis theme from the download into the themes folder and installed that, and still no joy...
|
By Paul - Wed 24 Jul 2013
|
What happens if you restore the db backup? Or link the site to a clean db?
That would at least verify if the db is the problem, which i suspect, but it'd be nice to know.
|
By jaymer - Wed 24 Jul 2013
|
i'm completely lost here...
how do I create a clean database, bearing in mind the installation problems I was having last week.
|
By jaymer - Wed 24 Jul 2013
|
the problem I've got is that we've been working on this for a week and I don't want to loose the product data we have uploaded...
|
By Paul - Mon 29 Jul 2013
|
Just to confirm, this one should be sorted now.
The skin issue was related to the kb being off, and older v2.0 code parsing the wrong menu level to hide the kb link (this one is detailed in another thread).
The back end destinations issue was due to tax regime in the web.config being set to UK rather than EU.
Can you mark this reply as solved if you confirm the issues resolved.
|