4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: MRJEE on October 10, 2005, 08:46:16 AM

Title: Problem with category create
Post by: MRJEE 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.
Title: Re: Problem with category create
Post by: Tiburon 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:
Title: Re: Problem with category create
Post by: Gwydion 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).
Title: Re: Problem with category create
Post by: khansahib on December 23, 2010, 07:56:08 PM
thanks Gwydion
Your tip worked :D