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

  1. simosx
    Posted 6 years ago #

    I get this Javascript error on my 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


  2. monodistortion
    Posted 6 years ago #

    It looks like you're using this 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
    Posted 6 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