Can't configure Usage Statistics OJS 3.1.1.0

Hello guys, i have installed OJS 3.1.1.0 and I’m trying to enable the Usage Statistics plugin, but when i try to save the configuration on the apache2 log show me an error:

[Tue Jul 24 11:36:50.134307 2018] [:error] [pid 10779] [client 172.] PHP Notice: Use of undefined constant bool - assumed ‘bool’ in /var/www/html/ojs/lib/pkp/plugins/generic/usageStats/UsageStatsSettingsForm.inc.php on line 102, referer: http://x/ojs/index.php/index/admin/settings
[Tue Jul 24 11:36:50.136700 2018] [:error] [pid 10779] [client 172.] PHP Notice: Use of undefined constant bool - assumed ‘bool’ in /var/www/html/ojs/lib/pkp/plugins/generic/usageStats/UsageStatsSettingsForm.inc.php on line 104, referer: http://revistas-dev.unibague.edu.co/ojs/index.php/index/admin/settings
[Tue Jul 24 11:36:50.144773 2018] [:error] [pid 10779] [client 172.] PHP Notice: Use of undefined constant bool - assumed ‘bool’ in /var/www/html/ojs/lib/pkp/plugins/generic/usageStats/UsageStatsSettingsForm.inc.php on line 105, referer: http://x/ojs/index.php/index/admin/settings
[Tue Jul 24 11:36:50.146848 2018] [:error] [pid 10779] [client 172.] PHP Notice: Use of undefined constant bool - assumed ‘bool’ in /var/www/html/ojs/lib/pkp/plugins/generic/usageStats/UsageStatsSettingsForm.inc.php on line 110, referer: http://x/ojs/index.php/index/admin/settings

Can anyone help me to fix this error an can use this plugin?

Tnx for the time

Hi @Marlon_Ramirez,

Those warnings are cosmetic, but can be resolved by changing bool to 'bool' on the lines referenced. This has already been fixed for the next release of OJS.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher Thanks for the help, i’ll be update the version i have.

Hi @Marlon_Ramirez,

Those warnings will be corrected in the next release, not the current one. Meanwhile you can tweak those lines of code yourself by my suggestion above, or just make sure that your error/warning messages are directed to the PHP log instead of the browser. OJS will continue working fine as long as the warning messages don’t get in your way.

Regards,
Alec Smecher
Public Knowledge Project Team