WordPress.org

Ready to get started?Download WordPress

Forums

All In One Favicon
[resolved] Notice: use of undefined constant AIOFAVICON_TEXTDOMAIN (3 posts)

  1. Eric McNiece
    Member
    Posted 2 years ago #

    Notice: Use of undefined constant AIOFAVICON_TEXTDOMAIN - assumed 'AIOFAVICON_TEXTDOMAIN' in /hsphere/local/home/c254298/site.com/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 37

    This just started popping up after a recent update of WP and a few plugins. It appears with 2 other errors from different plugins, so I'm not convinced that it's actually a bug yet - could be a conflict with something totally unrelated.

    Just posting this here in case somebody else stumbles across it.

    http://wordpress.org/extend/plugins/all-in-one-favicon/

  2. Eric McNiece
    Member
    Posted 2 years ago #

    Hmm...

    all-in-one-favicon.php, Existing lines 36-41:

    if (!defined('AIOFAVICON_NAME')) {
      define('AIOFAVICON_NAME', __('All in one Favicon',AIOFAVICON_TEXTDOMAIN));
    }
    if (!defined('AIOFAVICON_TEXTDOMAIN')) {
      define('AIOFAVICON_TEXTDOMAIN', 'aio-favicon');
    }

    New lines 36-41:

    if (!defined('AIOFAVICON_TEXTDOMAIN')) {
      define('AIOFAVICON_TEXTDOMAIN', 'aio-favicon');
    }
    if (!defined('AIOFAVICON_NAME')) {
      define('AIOFAVICON_NAME', __('All in one Favicon',AIOFAVICON_TEXTDOMAIN));
    }

    ... right? Removes the error at least. By the way, I'm running in WP_DEBUG, maybe that's why this is popping up.

  3. techotronic
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    yeah, you're right, this will be fixed in the next version.
    Cheers,
    Arne

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic