Results 1 to 4 of 4

Thread: Problem with sub-categories

  1. #1
    Thread Starter
    Member susie's Avatar
    Join Date
    Oct 2011
    Location
    London
    Posts
    62
    Thanks
    18
    Thanked 14 Times in 10 Posts

    Problem with sub-categories

    Hi All,

    I would like to ask your help. Has anyone met with the following message?
    I created a main category (eg: CARS) then a sub-category (eg: AUDI) and when I go to the main category to see the ads then I get this notice on the right side of the page.
    The program will create the sub-categories, but this notice is not nice on the page.

    Notice: Undefined index: 17 in /home/....../wp-includes/taxonomy.php on line 2806
    Notice: Trying to get property of non-object in /home/...../wp-includes/taxonomy.php on line 2806

    The code is:

    // Touch every ancestor's lookup row for each post in each term
    foreach ( $term_ids as $term_id ) {
    $child = $term_id;
    while ( $parent = $terms_by_id[$child]->parent ) { <-----THIS IS LINE 2806 ------>
    if ( !empty($term_items[$term_id]) )
    foreach ( $term_items[$term_id] as $item_id => $touches ) {
    $term_items[$parent][$item_id] = isset($term_items[$parent][$item_id]) ? ++$term_items[$parent][$item_id]: 1;
    }
    $child = $parent;

    Any idea what could be the problem?
    I already deleted all the categories and ads then re-created the categories, but I still have this issue.

    Many thanks!!!

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,693
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Member susie's Avatar
    Join Date
    Oct 2011
    Location
    London
    Posts
    62
    Thanks
    18
    Thanked 14 Times in 10 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Member susie's Avatar
    Join Date
    Oct 2011
    Location
    London
    Posts
    62
    Thanks
    18
    Thanked 14 Times in 10 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with depth categories
    By penev75 in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: August 6th, 2011, 01:09 PM
  2. Problem With Ad Categories..
    By amthomas in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: March 9th, 2011, 12:02 PM
  3. Problem with Ad Categories and Just Listed
    By shimabuku in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 9th, 2011, 08:59 PM
  4. Problem with Ads not going into Categories and Links
    By essej88 in forum Help Using ClassiPress
    Replies: 3
    Last Post: June 9th, 2010, 03:26 AM