• Resolved sdaveCL

    (@sdavecl)


    WordPress 3.5. Version 4.2 of plugin displays following error message. Had to revert back to 4.1.

    Warning: _() expects exactly 1 parameter, 2 given in …/public_html/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 101

    Warning: _() expects exactly 1 parameter, 2 given in …/public_html/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 102

    Warning: _() expects exactly 1 parameter, 2 given in …/public_html/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 103

    Warning: _() expects exactly 1 parameter, 2 given in …/public_html/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 104

    Warning: _() expects exactly 1 parameter, 2 given in …/public_html/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 109

    Warning: _() expects exactly 1 parameter, 2 given in …/public_html/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 110

    Warning: _() expects exactly 1 parameter, 2 given in …/public_html/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 111

    Warning: _() expects exactly 1 parameter, 2 given in …/public_html/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 112

    https://www.ads-software.com/extend/plugins/all-in-one-favicon/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Having the same problems

    Me too. I’ve reverted back to the old version.

    I have the same issue, too.

    Me too. I’ve reverted back to the old version.

    Tami — or anyone — can you explain how to do that? Thanks!

    rmh625:

    If you have a backup of your site (before you updated the plugin). Just grab the “all-in-one-favicon” folder, and drag it into your plugins folder via FTP. This will override the new version you just updated to.

    OR, sometimes the developer keeps old version on their site. You could look here:
    https://www.techotronic.de/plugins/all-in-one-favicon/

    Thread Starter sdaveCL

    (@sdavecl)

    Old versions of the plugin are stored in the Developers tab in the WordPress Plugins Directory:

    https://www.ads-software.com/extend/plugins/all-in-one-favicon/developers/

    This plugin has so few settings that I just deleted and re-installed from scratch. Keep in mind the location of the icon file.

    I just update my all in one fav icon plugin too and had the same warnings, but its a simple fix and just a little mistake in the coding of that file.

    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 ??

    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 sdaveCL

    (@sdavecl)

    Thanks Arne! No more error messages.

    Yes, works great for me too. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Version 4.2 displays warning messages’ is closed to new replies.