WPFix: Fix WordPress SlimStat Error 404 on missing Country Flag image

SlimStat is a great plugin to monitor the traffic on WordPress blog.

However, SlimStat does not include a generic image for non-existence country code such as A1.

In SlimStat Real-Time log, non-existence country code will show as no image and when refresh, 404 error logged in Real-Time log due a1.png flag image is not found.

Although this is not critical, unnecessary error 404 should not appear.

Problem

SlimStat will show no image for non-existence country code such as A1 and when Real-Time Log page is refreshed, it may logged error 404 on missing flag image (i.e. a1.png).

Based on MaxMind, A1 country code refers to Anonymous Proxy.

WPFix_SlimStat_FlagA1_0001

 WPFix_SlimStat_FlagA1_0002

Solution

I create an image country code for A1 (a1.png) and add in wp-slimstat flag image.

Download WP SlimStat Country Code Flags, extract and upload the image into

/<WP_ROOT>/<WP_CONTENT>/plugins/

WPFix_SlimStat_Flag_0001

Once Uploaded, refreshed Real-Time Log and the non-existence country code appear and there will be no unnecessary 404 error logged.

WPFix_SlimStat_FlagA1_0003

Downloads

  1. Download WP SlimStat Country Code Flags (37)

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × 5 =

YLNotes: Yunlong Notes © 2017 Frontier Theme