splitbrain / dokuwiki-plugin-statistics

Gather usage/view statistics of a DokuWiki
http://www.dokuwiki.org/plugin:statistics
6 stars 17 forks source link

Dashboard pulls no data #39

Closed Sultan-of-Swing closed 8 years ago

Sultan-of-Swing commented 8 years ago

After updating my DokuWiki, statistics plugin and CentOS the dashboard doesn't pull any data and thus only gives me zeros or no graph (it seems to draw the x- and y- axis but that's it...).

The backend seems to be fine since it still logs everything nicely within the MariaDB. That should also rule out connectivity issues between the plugin and the DB.

I suspect that PHP is the culprit since the apache error log is full of those error messages:

[root@wiki-test httpd]# [Thu Aug 11 16:43:19.447663 2016] [:error] [pid 2836] [client 10.21.50.112:55961] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 66, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=internalsearchwords&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token(' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692485 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token (' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692509 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token(' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692516 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token (' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692522 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token(' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692537 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token (' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692543 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token(' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692548 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token (' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692554 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token(' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692559 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 60, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token (' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692566 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 66, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token(' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692571 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 66, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token (' [root@wiki-test httpd]# [Thu Aug 11 16:43:21.692577 2016] [:error] [pid 2846] [client 10.21.50.112:55966] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/www/dokuwiki/inc/search.php on line 66, referer: http://wiki-test/doku.php?do=admin&page=statistics&opt=dashboard&f=2016-07-12&t=2016-08-11 -bash: syntax error near unexpected token(' `

I am not a prgrammer but to me the error either looks like there is an error in the script or the new PHP-Version fails to handle the script properly (The vulcan way of stating the obvious... :D ).

My wiki runs on CentOS 7.2.1511 Core and as a DB I am using MariaDBs latest iteration for the statistics. My PHP-Version is 5.4.16. I have also disabled all non-essential/3rd-party plugins.

How do I get rid of this? I do have a snapshot of the VM just before the updates but I have invested a bit of time tinkering with the machine since (also other plugins). I am also eger to learn why the dashboard falls on its face instead of finding a way to "ignore" the problem.

Anyway, thanks in advance!!!

Regards

Fabian