Forums

[resolved] google-ajax-translation javascript error (10 posts)

  1. bseidner
    Member
    Posted 2 months ago #

    Version: 0.4.6 of the plugin I get this error in IE 8:
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Timestamp: Sat, 12 Sep 2009 01:06:58 UTC

    Message: Object doesn't support this property or method
    Line: 10
    Char: 902
    Code: 0
    URI: http://blog.seidnershouse.com/wp-content/plugins/google-ajax-translation/jquery.translate-1.3.9.min.js?ver=1.3.9

    In Firefox:
    Error: b.outerHeight is not a function
    Source File: http://blog.seidnershouse.com/wp-content/plugins/google-ajax-translation/jquery.translate-1.3.9.min.js?ver=1.3.9
    Line: 10

  2. monodistortion
    Member
    Posted 2 months ago #

    I looked at your site and it looks like the problem is the combination of this plugin with the Thickbox plugin.
    http://wordpress.org/extend/plugins/thickbox/

    The Google Ajax Translation plugin uses jQuery from the default WordPress location, which is version 1.3.2. The Thickbox plugin is using its own jQuery from /wp-content/plugins/thickbox/thickbox/jquery.js which is version 1.2.3. These two different versions are conflicting.

    It looks like you can disable including jQuery in the Thickbox plugin administration panel so I would try that.

    Nick

  3. bseidner
    Member
    Posted 2 months ago #

    Ok Nick solved that problem now the when you click the flag or text links it does nothing I am using basic simplicity as the theme

  4. monodistortion
    Member
    Posted 2 months ago #

    I looked at the basic simplicity theme from here:
    http://wordpress.org/extend/themes/basic-simplicity

    There are just a couple changes needed in the index.php file.

    On line 17 change

    <div class="entry entry-<?php echo $postCount ;?>">
    

    to

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>"><div class="entry entry-<?php echo $postCount ;?>">
    

    And on line 46 change

    </div><!--end entry-->
    

    to

    </div></div><!--end entry-->
    
  5. bseidner
    Member
    Posted 2 months ago #

    This does not work because the sidebar goes to the bottom of the page. any other suggestions on changes.

  6. monodistortion
    Member
    Posted 2 months ago #

    Did you edit line 17 and line 46?

    It sounds like there's some other problem but I tried the theme with those two edits and it worked fine on my computer. Without seeing your blog with the changes I can't tell what the problem it.

  7. bseidner
    Member
    Posted 2 months ago #

    Yes it works now. THANK YOU. My line 46 is 47 I look at the line number wrong had a brain fart was looking for 64 not 46. The </div><!--end entry--> code is also in line 70. Thank you again.

  8. beesofts
    Member
    Posted 2 months ago #

    I tried to downgrade to 0.4.6 and Translator link ok but in IE 7.0 it can't translate. I tested it on Firefox Ok.
    http://blog.beesofts.info/suy-ngam/chi-so-hanh-phuc/

  9. monodistortion
    Member
    Posted 2 months ago #

    Beesofts,
    Can you start a new thread with your problem?

    I looked at your page briefly and it looks like you have two copies of jQuery in your <head> section.

    http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
    and
    http://blog.beesofts.info/wp-includes/js/jquery/jquery.js?ver=1.3.2

    This plugin uses the default jQuery that comes with WordPress (the second one).

  10. beesofts
    Member
    Posted 2 months ago #

    Monodistortion,
    I started a new thread but now you can tell me how to fix it?

Reply

You must log in to post.

About this Topic