• Ok so quite a few people have updated and noticed the warning error message in the wp admin (not displayed on the front end), so I did a little digging in the code and found it to be an easy fix that anyone could do if they want the warning messages gone before techotronic releases an update to fix it.

    Simply head to the file in the warning and change the following lines of code from:

    'frontendICO' => _('ICO',AIOFAVICON_TEXTDOMAIN),
            'frontendGIF' => _('GIF',AIOFAVICON_TEXTDOMAIN),
            'frontendPNG' => _('PNG',AIOFAVICON_TEXTDOMAIN),
            'frontendApple' => _('Apple Touch Icon',AIOFAVICON_TEXTDOMAIN)
          );
    
          //mapping of favicon types to translatable Strings
          $this->aioFaviconBackendMap = array(
            'backendICO' => _('ICO',AIOFAVICON_TEXTDOMAIN),
            'backendGIF' => _('GIF',AIOFAVICON_TEXTDOMAIN),
            'backendPNG' => _('PNG',AIOFAVICON_TEXTDOMAIN),
            'backendApple' => _('Apple Touch Icon',AIOFAVICON_TEXTDOMAIN)

    Change to:

    'frontendICO' => __('ICO',AIOFAVICON_TEXTDOMAIN),
            'frontendGIF' => __('GIF',AIOFAVICON_TEXTDOMAIN),
            'frontendPNG' => __('PNG',AIOFAVICON_TEXTDOMAIN),
            'frontendApple' => __('Apple Touch Icon',AIOFAVICON_TEXTDOMAIN)
          );
    
          //mapping of favicon types to translatable Strings
          $this->aioFaviconBackendMap = array(
            'backendICO' => __('ICO',AIOFAVICON_TEXTDOMAIN),
            'backendGIF' => __('GIF',AIOFAVICON_TEXTDOMAIN),
            'backendPNG' => __('PNG',AIOFAVICON_TEXTDOMAIN),
            'backendApple' => __('Apple Touch Icon',AIOFAVICON_TEXTDOMAIN)

    All that I have done is added an extra _ to each line (changing each _ to _e would also work, but I thought adding another _ looked easier to the eye when checking over the code in the future), which fixes the problem and will stop displaying the warnings 🙂

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor techotronic

    (@techotronic)

    Hi,

    I just released 4.2.1 where this is fixed.
    Weird, I didn’t have any errormessages on my WordPress installation…

    Cheers,
    Arne

    Thread Starter Nathaniel Bailey

    (@gslnathan)

    Thanks for the update Arne, my wp aint showing it in the updates area yet, any idea when this should be available to update via wp admin?

    It was the update that I just done that had the warnings in the admin area (the same with all the other threads), so I thought I would share the code I did to fix it and remove the warnings 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fix For Warning Errors In Update To 4.2’ is closed to new replies.