ojstat flag error fixed

Several times ago, we launched OJStat version 1.3. This version has been tested in different OJS-based journals both in upgrading and fresh install. However, as time goes by, we found that the flags of the countries did not show up. In this short post, we address the issue and provide you with a patch to fix it.

The Cause

We learned the database record and we found that the country code (the identifier of each flag image) has number 2 in it. Therefore, the country code name (e.g ID for Indonesia) has a suffix 2 (e.g ID2). Therefore, the flags could not be rendered since the page cannot find the corresponding image file. We have investigated that the country code changes from the Geolocation Service Provider used by OJStat.

The Patch

To fix this issue, we provide you with flag patch that can be downloaded here.

Download OJStat Flag Patch

Instruction

After downloading the Flag Patch (.zip), upload the zip file into your OJStat folder. The path is ojstat/assets/img/flags. Then, extract the zip file in this folder. Do not delete the existing flag images and make sure that the new flags are not located in any subfolder.