WordPress.org

Support

Support » Plugins and Hacks » Google Language Translator » [Resolved] Fatal Error when activating GLT

[Resolved] Fatal Error when activating GLT

  • Greetings,

    Whenever I try to activate the plugin, I get the follow error:

    Fatal error: Cannot redeclare scripts() (previously declared in /home/content/44/11172244/html/mysite/wp-content/themes/promotion/functions.php:29) in /home/content/44/11172244/html/mysite/wp-content/plugins/google-language-translator/glt_scripts.php on line 15

    When I go to those items it seems that is a jquery call.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rob Myrick

    @rm2773

    Hi eaglebane, I think there is another function in your WordPress theme named scripts().

    Let’s try this:

    Locate the file glt_scripts.php in the plugin, then locate line 3, it should look like this:

    function scripts($hook_suffix) {

    Change it to another name, such as function glt_scripts($hook_suffix) {

    Then on line 34 there is this code:

    add_action( 'admin_enqueue_scripts', 'scripts');

    Change it to this:

    add_action( 'admin_enqueue_scripts', 'glt_scripts');

    That’s it! Let me know if it works!

    Well now everything is off…you can check it out at grayroadchurchofchrist.org

    I fixed it! You are the man! Thanks!

    Plugin Author Rob Myrick

    @rm2773

    Thanks for updating us here. Enjoy!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Fatal Error when activating GLT’ is closed to new replies.
Skip to toolbar