forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: gum2me on November 23, 2004, 06:27:40 am

Title: I am getting mad problems
Post by: gum2me on November 23, 2004, 06:27:40 am
I deleted a category thru MySQL that existed before the upgrade, and ever since i have been having mad problems

Here is the first error i get:

A category has a non-existing parent, run the category manager to correct the problem!

File: /home/gum2me2/public_html/coppermine/include/functions.inc.php - Line: 971

No matter how many categories i create it doesnt work.
The albums work fine if i take them out of the categories.

what do i do?  (Below is debug info)

michel

http://pics.gum2me.com

Here is the debug info for Categories:
USER:
------------------
Array
(
    [ID] => 78ea266ba27e68ac9115b60a0c2dd554
    [am] => 1
    [liv] => Array
        (
            [uid] => 18
    [lap] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => gum2me
    [user_password] => ********
    [user_lastvisit] => 2004-11-22 21:14:19
    [user_regdate] => 2003-09-16 20:08:55
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Admin
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: I am getting mad problems
Post by: lamama on November 23, 2004, 08:01:07 am
Quote
A category has a non-existing parent, run the category manager to correct the problem!

File: /home/gum2me2/public_html/coppermine/include/functions.inc.php - Line: 971

No matter how many categories i create it doesnt work.
The albums work fine if i take them out of the categories.

I don't know if this advice is helpful or if you already tried it, but I'd try this:
- go to the album manager
- look if any album is in some category; set all albums to "No category"
- go to the categories manager
- set the all categories to root (the first and empty entry)
- delete the categories you don't need or that cause problems, maybe delete all categories
- test and hope that everything runs fine until now
- create new categories
- move your "Candids" album to that new category.

Title: Re: I am getting mad problems
Post by: Casper on November 23, 2004, 06:34:26 pm
This is another example of what happens when you use external means to delete items in the gallery.  The category you deleted must have had at least 1 child category, which now has no parent, but the database says it does.

You will probably have to go back into the database, find the orphan category, and change it to parent = 0.  Note there may be more than 1.

The other alternative, is the category you deleted was the user galleries, cat id 1.  Coppermine will not work without this category.
If you don't want it, just disallow users can have personal albums in the groups settings (all groups) and delete any albums that already exist in it.  Then it is hidden.

In future, ensure you use the built in delete functions of coppermine to delete anything you don't want.