Author Topic: Problem with category create  (Read 7018 times)

0 Members and 1 Guest are viewing this topic.

Offline MRJEE

  • Newbie
  • *
  • Posts: 17
    • View Profile
Problem with category create
« on: October 10, 2005, 08:46:16 AM »
Hello

When i create some categories (12). Script creates a code for (cat_id = from 1 up to 12. When i delete all categories, script create "cat_id" for new category with the 13 number.

How i can create new categiry with the first number?
Iam clear cache, but this not help.

Where script saved latest "cat_id" number?

Sorry, my english very bad.

Offline Tiburon

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.hintergrundbilder.de
Re: Problem with category create
« Reply #1 on: October 10, 2005, 11:05:43 AM »
Hi,
I did not finde it and so I use phpmyadmin to change such things directly in the database.
But observe that you also have to change the names of the image folders in data/media and data/thumbnails.  :wink:
----------------------------------

Have a nice Day

Offline Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: Problem with category create
« Reply #2 on: June 29, 2006, 07:33:22 PM »
I have a similar problem.
I have a main and some subcategories. I deleted one subcategory and now have the problem that the following ones are counted as if it would exist.
Like
catid1 - main
catid2 --- sub1
catid3 --- sub2 ->deleted this one and added sub3 afterwards

The list now is:
catid1 - main
catid2 --- sub1
catid4 --- sub2
catid5--- sub3
etc.

I have searched here but couldn't find an answer.
I cleared the cache and I went to phpmyadmin, removing the entries.
However the id counting continues unchanged.
Is there a way to reset this (so if I start the add categories all over it starts counting with 1)  or do I have to remove the whole gallery?


Found it.
For all who are looking for the solution.
1. delete the category/ies
2. go to phpmyadmin, chose, cat-id, operations, change number in auth-increment
the next cat you create should start with the number you specified.

(terms might be a bit different, I am writing it as I remember).
« Last Edit: June 29, 2006, 08:46:21 PM by Gwydion »

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: Problem with category create
« Reply #3 on: December 23, 2010, 07:56:08 PM »
thanks Gwydion
Your tip worked :D