WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google AJAX Translation] jQuery(text_node).translate is not a function (3 posts)

  1. simosx
    Member
    Posted 4 years ago #

    I get this Javascript error on my blog,
    http://simos.info/blog/
    when I click to translate a blog post in a language.

    The full javascript error message is

    Error: jQuery(text_node).translate is not a function
    Source File: http://simos.info/blog/wp-content/plugins/google-ajax-translation/google-ajax-translation.js?ver=20090626
    Line: 19

    http://wordpress.org/extend/plugins/google-ajax-translation/

  2. monodistortion
    Member
    Posted 4 years ago #

    It looks like you're using this theme:
    http://students.info.uaic.ro/~andrei.luca/blog/lightword-theme

    Are you using a recent version? The current version is 1.8.6.

    The problem looks like your <head> section has jquery twice. My plugin uses the standard wp_enqueue_script to add jquery from the WordPress default files. Your <head> section also has jquery from http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js

    I looked at the current version of LightWord and in the header.php file there is the line:

    <?php wp_enqueue_script('jquery'); ?>
    

    If you use this instead of the google version it should work ok.

  3. simosx
    Member
    Posted 4 years ago #

    I upgraded the lightword theme to the latest version and this fixed the problem. There is now no reference to ajax.googleapis.com

    Many thanks monodistortion!

    This is a great WordPress plugin and helps tremendously when maintaining a multilingual blog.

Topic Closed

This topic has been closed to new replies.

About this Topic