Category error

Posted By TheCalicoTree Thu 15 May 2014
Add to Favorites0
Author Message
TheCalicoTree
 Posted Thu 15 May 2014
Supreme Being

Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)

Group: Forum Members
Last Active: Thu 18 Jun 2015
Posts: 98, Visits: 1,382
Since we upgraded to 2.5009 we have been unable to edit categories. The following error is logged:

-----------------------------------------------------------------------------
>> CategoriesBLL._UpdateCategoryHierarchy
-----------------------------------------------------------------------------
>> System.NullReferenceException
>> 5/15/2014 10:00:42 AM
>> Version:2.5009
>> URL:http://www.hotel-buyer-store.co.uk/Admin/_ModifyCategory.aspx?CategoryID=80&strParent=19
>> 81.111.151.133
>> CUSTOM MESSAGE:
Error: An unknown error has occurred. Please check the error logs for any info.
>> MESSAGE:
Object reference not set to an instance of an object.
>> STACK:
at CategoriesBLL._UpdateCategoryHierarchy(Int32 pChildID, String pNewParents, SqlConnection sqlConn, SqlTransaction savePoint)

I can see a record in tblKartrisCategories, CAT_ID - 0 and it has NULL values. It is also in the CategoryHierarchy table as a parent of all top level categories.

I don't know whether this has always been there and am reluctant to delete it to see if the problem is removed.

Any suggestions?
BORNXenon
 Posted Thu 15 May 2014
Supreme Being

Supreme Being - (33,981 reputation)Supreme Being - (33,981 reputation)Supreme Being - (33,981 reputation)Supreme Being - (33,981 reputation)Supreme Being - (33,981 reputation)Supreme Being - (33,981 reputation)Supreme Being - (33,981 reputation)Supreme Being - (33,981 reputation)Supreme Being - (33,981 reputation)

Group: Forum Members
Last Active: Mon 23 Apr 2018
Posts: 59, Visits: 291
Not sure if this is the same problem or not, but I have noticed that if a Category has a parent category, then I am unable to edit the SEO fields and get a pop-up saying an unknown error has occurred.

If I remove the parent category, I can then edit the SEO fields successfully and then have to put the parent category back.
TheCalicoTree
 Posted Wed 21 May 2014
Supreme Being

Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)

Group: Forum Members
Last Active: Thu 18 Jun 2015
Posts: 98, Visits: 1,382
Thanks BornXenon, it looks like it is the same problem. It is not a problem for parent categories and with subcategories, if their parent is removed we are able to save.

This seems to be an error introduced in 2.5009. I have the same error on two separate sites.

Kartris - will this be resolved in next release?
TheCalicoTree Marked As Answer
 Posted Wed 11 Jun 2014
Supreme Being

Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)Supreme Being - (70,860 reputation)

Group: Forum Members
Last Active: Thu 18 Jun 2015
Posts: 98, Visits: 1,382
So it looks as though this was a bug that has now been resolved in 2.6003. We plan to upgrade soon so I will mark this as the resolution.
Wed 11 Jun 2014 by TheCalicoTree
Paul
 Posted Thu 12 Jun 2014
große Käse

große Käse - (509,786 reputation)große Käse - (509,786 reputation)große Käse - (509,786 reputation)große Käse - (509,786 reputation)große Käse - (509,786 reputation)große Käse - (509,786 reputation)große Käse - (509,786 reputation)große Käse - (509,786 reputation)große Käse - (509,786 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
Yes, just to clarify, it worked if you changed the parent categories (either by removing or adding one), but not if you left them the same (I think this was the case for top level cats too). It is fixed in 2.6003.

--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top