[OJS 3.1.0.1] unexpected error when try to delete a submission

An unexpected error has occurs when try to delete a submission.
Error in case of two different web host provider:

OJS3101_delete_error1

OJS3101_delete_error2

I think this causes the error:
[Thu Dec 28 20:09:31.286086 2017] [proxy_fcgi:error] [pid 6174:tid 140213753992960] [client 92.249.209.249:46035] AH01071: Got error ‘PHP message: PHP Fatal error: Cannot redeclare geoip_country_code_by_name_v6() in /home/jatesorg/domains/jates.org/public_html/OJS3101/lib/pkp/plugins/generic/usageStats/lib/geoIp/geoip.inc on line 430\n’, referer: http://jates.org/OJS3101/index.php/jatespath/submissions

Hi @kovariati,

Check your PHP error log to see if there’s something relevant there.

Regards,
Alec Smecher
Public Knowledge Project Team

I think this is the problem:
[Thu Dec 28 20:09:31.286086 2017] [proxy_fcgi:error] [pid 6174:tid 140213753992960] [client 92.249.209.249:46035] AH01071: Got error ‘PHP message: PHP Fatal error: Cannot redeclare geoip_country_code_by_name_v6() in /home/jatesorg/domains/jates.org/public_html/OJS3101/lib/pkp/plugins/generic/usageStats/lib/geoIp/geoip.inc on line 430\n’, referer: http://jates.org/OJS3101/index.php/jatespath/submissions

Hi @kovariati,

See e.g. this thread: OJS3: issues with usage statistics plugin with php7.0 - #6 by Vitaliy

Regards,
Alec Smecher
Public Knowledge Project Team

The web host provider not delete PHP GEOIP module it is global.
This problem is not occurs in 3.0.1.0 at the same host.

Hi @kovariati,

You could attempt to use the provider’s version of the library by editing lib/pkp/plugins/generic/usageStats/GeoLocationTool.inc.php and commenting out:

include('lib' . DIRECTORY_SEPARATOR . 'geoIp' . DIRECTORY_SEPARATOR . 'geoipcity.inc');

…and…

include('lib' . DIRECTORY_SEPARATOR . 'geoIp' . DIRECTORY_SEPARATOR . 'geoipregionvars.php');

This would prevent OJS from loading its own versions of these libraries, which conflict with the ones your provider already has installed. However, I can’t guarantee that the version on your host is compatible with the version OJS expects.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like