PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old January 5th, 2009, 12:17 AM   #1 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
MySql queries for Deleting categories.

I have some categories that I can't get to edit after upgrade. Except for the member category.

I've managed to mass move all images to that one working category. Now how can I manually remove those trouble tables using mysql queries?

Thanks,
hydn is offline   Reply With Quote
Old January 5th, 2009, 11:52 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Well what do you mean you can not edit them we may need to look at that to see maybe did you miss an upgrade etc.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 5th, 2009, 02:50 PM   #3 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
Didn't miss an upgrade. Simply went from 4.2 (first install) to 4.3. Moved servers and possibly the backup isn't working 100%. Every last thing works except for categories.

Is there a query? Or its your way or no way?

We cannot give ftp or admin access. Many companies such as vbseo etc provide great support without requesting admin access as a quick fix. We got a query from them last week which resolved an issue.

Support involves time yes. If not willing to meet my needs let me know.

kind regards,

hydn
hydn is offline   Reply With Quote
Old January 5th, 2009, 03:09 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
The way in the program is to hit the delete option to delete a category.

DELETE FROM ppgal_categories WHERE catid=8

replace with the proper catid your deleting and if your forum tables have a prefix add it to the query but that will work.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 5th, 2009, 05:54 PM   #5 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
Thanks that works.

One of the categories has sub-category.

If the category id is 1 and it's sub category ID is 4

Will DELETE FROM ppgal_categories WHERE catid=1 only delete category 1 or will it remove sub category 4 also?

Thanks

Last edited by hydn; January 5th, 2009 at 09:12 PM.
hydn is offline   Reply With Quote
Old January 5th, 2009, 08:26 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
You can do that

DELETE FROM ppgal_categories WHERE catid=4
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 5th, 2009, 09:12 PM   #7 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
Quote:
Originally Posted by Chuck S View Post
You can do that

DELETE FROM ppgal_categories WHERE catid=4
Sorry about type. The red 4. should have been 1

Don't want to delete 4. Its the only cat that works.

Would like to delete id 1 without loosing category 4
hydn is offline   Reply With Quote
Old January 5th, 2009, 09:21 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
deleting 1 should not delete 4
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 5th, 2009, 09:39 PM   #9 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
The categories are gone from the admin panel but still visible from main gallery. Is there another query to run to remove from main gallery?

When clicked i get:

"No Category specified. If you followed a valid link, please notify the administrator"

So they are def gone. But just still listed.
hydn is offline   Reply With Quote
Old January 5th, 2009, 09:41 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Have you tried running your maintenance script to update things? Your cache is not updated I would suspect.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 5th, 2009, 09:43 PM   #11 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
I tried to run: Update Category Cache

But still get:
Quote:
MySQL Error : Unknown column 'title_clean' in 'field list'
Manual way to clear cache? Maybe via query?
hydn is offline   Reply With Quote
Old January 5th, 2009, 10:01 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Thats the heart of your issue your missing an upgrade.

I would need more info on this site to assist hands on.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 5th, 2009, 10:38 PM   #13 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
Can i zip and send you the DB files from the mysql data folder?
hydn is offline   Reply With Quote
Old January 5th, 2009, 10:38 PM   #14 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
Plugin manager says "PhotoPost vBGallery 2.4.3 PhotoPost vBGallery 2.4.3"
hydn is offline   Reply With Quote
Old January 6th, 2009, 10:55 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
I hear what your saying about your version. No thats not going to help I would need to actually have access to the files and database on your server and try and get the actual upgrade to process as this is the only way your going to get over your issue.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 7th, 2009, 05:17 AM   #16 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 24
easier to just remove it. Thanks anyway.
hydn is offline   Reply With Quote
Old January 7th, 2009, 09:21 AM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Okay but your still going to have issues if you dont actually fix your gallery I was offering to help not quite sure why you are persistant about not actually obtaining support.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting a categories: Cache not update [added 2.4] tintin74 Bugs - vBulletin 3.6x 4 November 10th, 2007 06:06 AM
Bulk Move using MySql Statements/Queries Directly mihirp Photopost Pro How Do I...? 2 March 4th, 2007 02:12 PM
Path issue with RP after deleting categories(FIXED) Jeremy ReviewPost Bug Reports 11 November 23rd, 2005 01:49 PM
Deleting Categories - File Not Found(FIXED) InterFX ReviewPost Bug Reports 1 November 5th, 2005 05:38 AM
Getting a error when deleting categories redtailboa Classifieds Bug Reports 2 October 4th, 2004 12:03 PM


All times are GMT -5. The time now is 10:29 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0