Fatal error: Call to undefined function import() in /home/u796555399/public_html/lib/pkp/plugins/generic/usageStats/UsageStatsHandler.inc.php on line 16
Fatal error: Call to undefined function import() in /home/u796555399/public_html/lib/pkp/plugins/generic/usageStats/PKPUsageStatsPlugin.inc.php on line 16
Fatal error: Call to undefined function import() in /home/u796555399/public_html/lib/pkp/plugins/generic/usageStats/PKPUsageStatsReportPlugin.inc.php on line 17
Can you clarify where you are seeing the error messages, for example “Fatal error: Call to undefined function import() in /home/u796555399/public_html/lib/pkp/plugins/generic/usageStats/UsageStatsHandler.inc.php on line 16” ?
It sounds like your file manager is trying to lint the PHP files when opened for editing. These errors can be ignored.
I don’t see any relevant Fatal errors in the PHP error log file you linked. (There is a fatal error for a different bug, and a lot of warnings which could be suppressed by turning off strict standards).
Can you also post your latest Usagestatisticsfileloadertask*.log from the scheduledTaskLogs folder?
[2017-01-19 20:26:17] http://pkp.sfu.ca/ojs
[2017-01-19 20:26:17] [Notice] Task process started.
This is one from 19th Jan. Before it, there is from 8th Jan. I guess, I must have deleted them from the administration. The log file from the same timings is in the next post.
Also when I ran cron - this error came
Parse error: syntax error, unexpected ‘version’ (T_STRING) in /home/u796555399/public_html/lib/pkp/plugins/generic/usageStats/scheduledTasks.xml on line 1
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of LensGalleyPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/u796555399/public_html/plugins/generic/lensGalley/LensGalleyPlugin.inc.php on line 18
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of GoogleAnalyticsPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/u796555399/public_html/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.inc.php on line 147
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of OrcidProfilePlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/u796555399/public_html/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 413
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of BrowsePlugin::manage() should be compatible with Plugin::manage($args, $request) in /home/u796555399/public_html/plugins/generic/browse/BrowsePlugin.inc.php on line 151
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of BrowsePlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/u796555399/public_html/plugins/generic/browse/BrowsePlugin.inc.php on line 151
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of RecommendByAuthorPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/u796555399/public_html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 156
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of PdfJsViewerPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/u796555399/public_html/plugins/generic/pdfJsViewer/PdfJsViewerPlugin.inc.php on line 141
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of WebFeedPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/u796555399/public_html/plugins/generic/webFeed/WebFeedPlugin.inc.php on line 190
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 372
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/classes/core/Request.inc.php on line 68
[19-Jan-2017 20:26:17 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_en_US.js) is not within the allowed path(s): (/home/u796555399:/tmp:/var/tmp:/opt/php-5.6/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u796555399/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 568
[19-Jan-2017 20:26:17 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_en.js) is not within the allowed path(s): (/home/u796555399:/tmp:/var/tmp:/opt/php-5.6/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u796555399/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 568
[19-Jan-2017 20:26:17 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/lib/vendor/moxiecode/plupload/js/i18n/en_US.js) is not within the allowed path(s): (/home/u796555399:/tmp:/var/tmp:/opt/php-5.6/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u796555399/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 585
[19-Jan-2017 20:26:17 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/lib/pkp/lib/vendor/moxiecode/plupload/js/i18n/en.js) is not within the allowed path(s): (/home/u796555399:/tmp:/var/tmp:/opt/php-5.6/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u796555399/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 585
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home/u796555399/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 130
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of WebFeedBlockPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/u796555399/public_html/plugins/generic/webFeed/WebFeedBlockPlugin.inc.php on line 105
[19-Jan-2017 20:26:17 UTC] PHP Strict Standards: Declaration of ManagementHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/u796555399/public_html/lib/pkp/pages/management/ManagementHandler.inc.php on line 19
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method Core::removeBaseUrl() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php on line 508
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method Core::_getBaseUrlAndPath() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/core/Core.inc.php on line 256
[19-Jan-2017 20:26:17 UTC] PHP Deprecated: Non-static method Config::getContextBaseUrls() should not be called statically, assuming $this from incompatible context in /home/u796555399/public_html/lib/pkp/classes/core/Core.inc.php on line 313
[19-Jan-2017 20:26:17 UTC] ojs2: DB Error: Duplicate entry ‘1’ for key ‘PRIMARY’
Maybe here as well, for the others to know: Your DB table usage_stats_temporary_records has some wrong indexes/primary key defined, which leads to the DB error duplicate primary key, so that statistics can not be inserted. You should remove the indexes and then move the unprocessed log files into the folder usageEventLogs, so that they can be processed again.
We have upgraded from 2.4.6 to 3.0.1. In the old version below code used to work for PDF download count before the statistics framework change in some earlier 2.X:
Hi! The issues with not displaying downloads stats are gone now after the upgrade to 3.0.2. But the problem with not displaying any data for the current year is still there. Recently I’ve found the following in the logs:
[2017-02-04 22:05:40] [Notice] Task process started.
[2017-02-04 22:05:40] [Warning] Usage statistics plugin is disabled. No log files processed.
[2017-02-04 22:05:40] [Notice] Task process stopped.
I had to enable the plugin again for each journal one by one. But I am still not sure if it works at all. Since we do not have any statistics in the metrics table since the end of 2016 (see above)
Now I am experimenting by enabling the Acron plugin for one of our journals. But I still do not see any changes. Please, help!
It will take a day for statistics to be calculated and stored in the database table metrics. You could double check if the current access is correctly logged in the usage statistics log file (the file with the current date in the name, in files folder > usageStats/usageEventLogs/). If so, see tomorrow if there are appropriate entries in the DB table metrics.
Something mysterious is happening here. Two days have passed after I activated the Acron plugin. We do have usage statistics log files with current dates in usageStats/usageEventLogs. But we still do not have anything of that sort in the metrics table
All the appropriate plugins seem to be activated and functional. Do you have any suggestions?
Below is an excerpt from our current log. Notice, that the IP always stays the same. May that cause such problems?
[details=log]> 10.0.8.1 administrative 22 “2017-02-08 00:17:35” http://ojs.hse.ru/index.php/ecsoc/index 200 “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:51.0) Gecko/20100101 Firefox/51.0”