Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    have you tried:

    -deactivating ALL plugins temporarily to narrow down and possibly fix the problem. If the problem goes away, activate them individually (one-by-one) to find the culprit.

    -switching to the default theme (“twentyten”) for a moment by renaming your current theme’s folder in wp-content/themes. The idea is to force WordPress to fall back to the default theme to rule out any theme-specific issue.

    Thread Starter yoni y

    (@yoni-y)

    The problem is that if I’ll deactivate the wpml theme.
    I don’t think this section of the site will work at all because
    there won’t be any multilangual support any more.

    I will try to deactivate all the other plugins.
    but I find it hard to belive they have anything
    to do with it since I have nothing relevant to the tag cloud.

    Thread Starter yoni y

    (@yoni-y)

    Ok.
    so of course disabeling the plugins didn’t work.
    (the bug stays when all other plugins are but the wpml are desabled
    and desabling the wpml plugin make the entire translated blog in accessible).

    but for some reason disabling other plugins got wordpress spit out a bunch of notices related to the tag data.
    so after about two hours of hacking at the code I figuerd out whats going wrong.

    apperantly WPML calls it’s “tax_permalink_filter” twice on tags.
    this adds the /en/en.

    the reason for it is that WPML add the filter both for tag_link and term_link, and I guess some thing has changed in wordpress 3.1 since looking at the taxonomy.php you can see that now (I’m not sure about before but since this bug is new I guess it was diffrent) all links get the term_filter and there own filter line 2867 – 2872->
    if ( ‘post_tag’ == $taxonomy )
    $termlink = apply_filters( ‘tag_link’, $termlink, $term->term_id );
    elseif ( ‘category’ == $taxonomy )
    $termlink = apply_filters( ‘category_link’, $termlink, $term->term_id );
    return apply_filters(‘term_link’, $termlink, $term, $taxonomy);

    so what I did for now is comment out line 105 which adding the filter to the tag link in wpml file sitepress.class.php line 105-106 ->
    //add_filter(‘tag_link’, array($this, ‘tax_permalink_filter’),1,2);
    add_filter(‘term_link’, array($this, ‘tax_permalink_filter’),1,2);

    I don’t think this will cause any other problems, but I don’t understand how nobody else using the wpml doesn’t have the same problem as I am

    Thread Starter yoni y

    (@yoni-y)

    sorry just noticed the lines are actually 106-107 and not 105-106

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘tag clouds with wrong urls’ is closed to new replies.