Cannot Delete empty categories

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
AbdRahim
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Thu Aug 12, 2010 1:52 am

Cannot Delete empty categories

Postby AbdRahim » Fri Oct 14, 2011 5:15 am

Cannot Delete empty categories. I get the following message:
Delete not allowed for category junk. 1 item is assigned to this category.
However I see nothing listed in the category. There is nothing else in the trashed. I have emptied it of all other content.

theborg72
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Jul 25, 2011 1:03 pm

Re: Cannot Delete empty categories

Postby theborg72 » Fri Oct 14, 2011 5:22 am

hello.. look in trach and see iff the objent is there first.. then after emty trach then you can delete catagory

User avatar
RCheesley
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 180
Joined: Tue Apr 24, 2007 11:53 am
Location: Ipswich, Suffolk, UK
Contact:

Re: Cannot Delete empty categories

Postby RCheesley » Fri Oct 14, 2011 9:19 am

As theborg72 suggests, when you delete items from article manager, they are set to trashed and not fully deleted until you purge the trash. Go into your article manager and using the 'state' dropdown, change it to 'trashed' and you should see the offending article!

Ruth
Ruth Cheesley
CEO & Co-Founder, Virya Group - http://www.viryagroup.com

imaginarynumber
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Tue Dec 30, 2008 4:57 pm

Re: Cannot Delete empty categories

Postby imaginarynumber » Tue Jan 01, 2013 3:52 pm

For the benefit of others. I installed the sample data. Then decided I wanted to delete the categories (I had already trashed the sample articles).

I found that I was able to trash the categories and then following RCheesley's advice I tried to delete them, only to be told that there were objects associated with them.

I then went back to articles and realised that although I had trashed the atricles I had not deleted them. One they were deleted i was now able to delete the categories.

ruchika
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Dec 29, 2014 10:19 am

Re: Cannot Delete empty categories

Postby ruchika » Wed Jul 08, 2015 6:42 am

Hi,

I am getting the same message when I try to delete a category. PLease can i know from where this message comes?

I want to integrate this same feature in my component that when a user tries to delete an item he gets this error message of foreign key

Thanks and Regards,
Ruchika

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 11376
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Cannot Delete empty categories

Postby brian » Wed Jul 08, 2015 9:18 am

@ruchika please start your own post - this one is not related to your question
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

stumbleaadi
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jul 08, 2015 10:42 am
Location: Ohio
Contact:

Re: Cannot Delete empty categories

Postby stumbleaadi » Wed Jul 08, 2015 10:53 am

until or unless you clear the trash box, which contains the deleted content you can not delete.

please follow - go to the admin panel ===> article manager =====. trash ====> select delete and apply
Last edited by toivo on Wed Jul 08, 2015 11:25 am, edited 1 time in total.
Reason: mod note: manual signature/advertising not allowed

jcm69
Joomla! Intern
Joomla! Intern
Posts: 50
Joined: Mon Jun 01, 2015 2:26 pm

Re: Cannot Delete empty categories

Postby jcm69 » Fri Oct 30, 2015 4:52 pm

Hi,
I've got the same problem and found the explication :
the category is in the trash, so if you use the article manager, you won't find the article belonging to this trashed category simply because the category doesn't appear in the category list !
But if you if you restore the category, then you will be able to find the article by simply using the Article Manager and choosing the newly restored category in the Select Category drop-down menu.
Delete the article (move to Trash, empty Trash), then delete the category (move to Trash, empty Trash). Cool ! 8)
HTH,
jc


Return to “Administration Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 11 guests