WordPress.org

Forums

Google Language Translator
[resolved] Problem with 3.8.1 (10 posts)

  1. antoniomoneo
    Member
    Posted 1 year ago #

    I tried to install the plugin on a Goodlayers theme on 3.8.1 and I got an error:
    Undefined index: title in /wp-content/plugins/google-translator/widget.php on line 17
    "Undefined variable: str in /home/.../wp-content/plugins/google-translator/plugins/google-language-translator.php on line 1853

    https://wordpress.org/plugins/google-language-translator/

  2. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

    Hi antoniomoneo, thanks for notifying me of this.

    Please navigate to "Plugins > Google Language Transltor > Edit", then go to googlelanguagetranslator.php on the line you mention above. It looks like this:

    $str.='<div id="flags">';

    Change it to this:

    $str='<div id="flags">';

    Then let me know if your error disappears. If not, I will continue to help out. I will take care of this in the next update as well. Thanks!

    Rob Myrick

  3. antoniomoneo
    Member
    Posted 1 year ago #

    Hi Rob,

    Thanks for this. That has solved one part of the problem. We still have an issue with line 17 in widget.php
    I have got the dropdown menu, but on top of it I get the error: "Undefined index: title in /wp-content/plugins/google-translator/widget.php on line 17"

  4. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

    Hi antoniomoneo, can you remove that entire line 17 in widget.php and let me know what happens.

    That is not such an important line of code.

    Try it and let me know.

    Thanks, Rob

  5. antoniomoneo
    Member
    Posted 1 year ago #

    I tried to remove the line but the number of errors multiplicated.

  6. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

    OK, I will likely need to take a look at your site. You are the first to come to me with a widget coding issue, which is interesting.

    I can diagnose the problem if you create a new user and password with admin rights to your site, then I can take a look and find a solution. I am 99% sure I can solve it.

    You can send the user and password name here to http://www.studio88design.com/get-in-touch/

    Thanks, Rob Myrick

  7. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

    antoniomoneo, I just updated the plugin to version 3.0.3, which I believe fixes the widget issue. It appears that a variable was not defined in the widget file, although even with debug I was never presented with any errors.

    Best of luck, and let me know if it helps you.

    Thanks! Rob

  8. antoniomoneo
    Member
    Posted 1 year ago #

    Thanks Rob!
    It looks like it is working now. However, I think I have lost the possibility of adding a title to the widget. Before I was able to put a title to the widget and that was very useful to let the user know what was the dropdown menu for. Hope you can include that again!

  9. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

    Hi antoniomoneo, I never remember a title field present there. But here's what to do, very easy. Just use text widget, and place [google-translator] inside of it. Then you can use the title provided in the text widget.

    Let me know if that works for you.

    Thanks!

  10. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

    I'm marking this as resolved. antoniomoneo, I will attempts to add a title to the widget title in upcoming updates.

    Thanks! Rob

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Language Translator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic