Results 1 to 2 of 2

Thread: Page stop rendering on cp_breadcrumb

  1. #1
    Thread Starter
    Newbie ivanruiz's Avatar
    Join Date
    Dec 2010
    Location
    Spain
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page stop rendering on cp_breadcrumb

    Hi,

    I detected that some of my very old ads were not rendered when displaying on the webbrowser.

    I checked the code and the bug was in theme-functions.php in cp_breadcrumb function.

    In my case (v3.1.2) in the line 1520:

    $term = wp_get_object_terms($post->ID, APP_TAX_CAT);

    $term gets empty, if the code continues from this, it throws an error on the next loop stopping the rendering.

    I added this on the line 1521 to solve it:

    if ( empty($term) ) { break; }

    And now it works like a charm. Is this a right solution?

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    36,828
    Thanks
    159
    Thanked 2,966 Times in 2,842 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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to Stop Spam?
    By englandrm in forum ClassiPress General Discussion
    Replies: 11
    Last Post: August 26th, 2011, 06:05 PM
  2. [SOLVED] Image rendering in Classipress - not solved
    By clickron in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: April 24th, 2011, 03:25 PM
  3. [SOLVED] Problems with image rendering in Classipress
    By clickron in forum Report ClassiPress Bugs
    Replies: 9
    Last Post: April 23rd, 2011, 06:25 PM
  4. Stop a sub category showing up on home page !
    By danjo in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 13th, 2011, 05:04 AM
  5. Google Maps Not Rendering
    By hugo in forum ClassiPress General Discussion
    Replies: 2
    Last Post: September 18th, 2010, 03:06 PM