• I’m using my site with WP_DEBUG constant defined, and I’m getting some notices from this plugin:

    Notice: Undefined variable: plugin_text_domain in /var/www/includes/WordPress/wp-content/plugins/arit-login-email-sync.php on line 48
    Notice: Undefined variable: plugin_dir in /var/www/includes/WordPress/wp-content/plugins/arit-login-email-sync.php on line 48
    Notice: Undefined variable: plugin_dir in /var/www/includes/WordPress/wp-content/plugins/arit-login-email-sync.php on line 48

    https://www.ads-software.com/extend/plugins/login-email-sync/

Viewing 1 replies (of 1 total)
  • Thread Starter ilarrain

    (@ilarrain)

    Fix:

    ignacio@ignacio-laptop:/var/www/includes/WordPress/wp-content/plugins$ diff -c arit-login-email-sync.orig.php arit-login-email-sync.php
    *** arit-login-email-sync.orig.php	2011-12-15 21:40:27.000000000 -0300
    --- arit-login-email-sync.php	2011-12-15 22:47:04.871233495 -0300
    ***************
    *** 45,50 ****
    --- 45,52 ----
    
      function arit_login_email_sync_init() {
      	if (function_exists('load_plugin_textdomain')) {
    + 		global $plugin_dir, $plugin_text_domain;
    +
      		load_plugin_textdomain( $plugin_text_domain, 'wp-content/plugins/' . $plugin_dir . '/languages', $plugin_dir . '/languages' );
      	}
      }
    ***************
    *** 54,59 ****
    --- 56,62 ----
      }
    
      function arit_login_email_sync_options_page() {
    + 		global $plugin_text_domain;
    
      ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Login Email Sync] Notice: Undefined variable’ is closed to new replies.