HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Broken catalogues

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#68759 (In Topic #14602)
Avatar

Community saint

While logged in as a super mod, I created a catalogue with three sub categories.

I then went back to edit the catalogue. I unchecked the "Is tree" option, expecting that all that it would do is simply flatten the catalogue (i.e. roll all the records in the sub categories so that they simply appear directly under the catalogue).

While trying to save the changes, instead of just getting a friendly "You must have at least one field in your catalogue " error, it also crashed:
Attachment
» Download: cat1.doc (92 Kb, 108 downloads so far)


This resulted in the three categories being disassociates from the catalogue, and inaccessible (using "Edit catalogue category") with a "'TestSupMod' does not have access to this category" error:
Attachment
» Download: cat2.doc (54 Kb, 72 downloads so far)

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#68791
Avatar

Ah. The fields error was straddling the flattening of the catalogue and saving it as a non-tree catalogue. I will rearrange the code.

I believe you can fix by going into the database, finding the catalogues row and setting c_is_tree back to 1.

I'm not sure why you deleted all the fields whilst doing that, which is throwing me a bit. Seems an odd thing to do, so let me know if you in fact had not done this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#68794
Avatar

Community saint

Chris Graham said

I'm not sure why you deleted all the fields whilst doing that, which is throwing me a bit.

I didn't delete anything, all I did was toggle "Is tree". That action orphaned the sub-catagories.

I have toggled "Is tree" back and have now reunite the sub-categories with the category.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: