Matomo encountered an error: Call to undefined function Davaxi\Sparkline\mb_strlen() (which lead to: Zend_Session is currently marked as read-only.) - matomo

I'm getting this error on my Matomo installation:
Matomo encountered an error: Call to undefined function Davaxi\Sparkline\mb_strlen() (which lead to: Zend_Session is currently marked as read-only.)
This shows up when looking into the reason for dysfunctional images:
With such URLs:
/index.php?date=2019-02-05,2019-03-06&forceView=1&viewDataTable=sparkline&module=API&action=get&widget=1&idSite=1&period=day&columns=nb_visits%2Cnb_uniq_visitors&colors=%7B%22backgroundColor%22%3A%22%23ffffff%22%2C%22lineColor%22%3A%22%23162c4a%22%2C%22minPointColor%22%3A%22%23ff7f7f%22%2C%22maxPointColor%22%3A%22%2375bf7c%22%2C%22lastPointColor%22%3A%22%2355aaff%22%2C%22fillColor%22%3A%22%23ffffff%22%7D

The key to the problem is "undefined function … mb_strlen". This means that the PHP mbstring (multibyte string) extension is not installed. On Ubuntu Linux with PHP 7 I used the command:
sudo apt-get install php7.0-mbstring
It then started working fine immediately.
On different systems there’ll be different commands required. The PHP manual section on the multibyte string extension might be of some help.

Related

Getting Undefined subroutine utf8::SWASHNEW called at Bugzilla/Util.pm line 109

I am trying to install Bugzilla. For that Strawberry perl, Microsoft IIS, MySQL are installed with latest versions. Followed guidelines given on Bugzilla installation page for windows.
Whenever I run checksetup.pl, all necessary perl modules related to Bugzilla are installed correctly. Only three optional modules were not installed (perl-ldap, mod_perl and Apache-SizeLimit). And then it is showing an error:
Undefined subroutine utf8::SWASHNEW called at Bugzilla/Util.pm line 109.
Move back to Strawberry Perl 5.28.2.1 from 5.30.0.1
I had same problem. This fixed.
I managed to fix this by applying the first of the following patch
(use
locate Safe.pm
to find the offending file)
DISCLAIMER - AT YOUR OWN RISK
Perl on github, patch for bug 17291

Orafce install in postgresql 9.5

I am new to programmer world so i want to learn so many things, and about what i want to ask, can i install orafce in postgresql? I mean all the tutorial always show use BigSql but iam using from enterprise DB. I am already try take orafce.dll from bigsql but it can't read because not specified procedure.
ERROR: could not load library "C:/Program Files/PostgreSQL/9.5/lib/orafce.dll": The specified procedure could not be found.
and i already try from other source but still got some error
ERROR: could not find function "plvlex_tokens" in file "C:/Program Files/PostgreSQL/9.5/lib/orafce.dll"
It was a bug in Orafce windows build. Should be fixed by last build.

Compiling mod_tile

I wanted to build my own tile server as written on switch2osm site. In short: render is not happening (more details you can find here).
Seems that mod_tile is not installed correctly. First it gave some errors during installation and in the end error message was:
27 warnings and 4 errors generated.
apxs:Error: Command failed with rc=65536
I removed this source (original from openstreet) and downloaded new one from here. This time installation went without error, only some warnings. But rendering is still not happening (it's stuck on <Debug>: Using web mercator projection settings and doesn't move on).
Data about my system goes here:
OS: Mac OS 10.9.4
Python: 2.7.5
Mapnik: 3.0.1-pre
Server version: Apache/2.2.26 (Unix)
Installation logs are here.

Undefined reference for TLSv1_1_client_method though 'nm' says otherwise

In my SSL client code, on trying to compile I get an undefined reference error on using TLSv1_1_client_method(). If I don't have the TLS method, the linking is fine. On running ldd on the binary I see:
%ldd client_sim_ssl
libssl.so.10 => /usr/lib64/libssl.so.10
libcrypto.so.10 => /usr/lib64/libcrypto.so.10
Now, if I check nm for /usr/lib64/libssl.so.10 :
%nm /usr/lib64/libssl.so.10 | grep TLSv1_1_client_method
0000000000030d30 T TLSv1_1_client_method
OpenSSL version installed : OpenSSL 1.0.1g 7 Apr 2014
Why the undefined reference error when the library it links to has the definition? What is the missing piece?
EDIT 1:
I had logged off the system I was working on. In my experiment in upgrading the version - openSSL 1.0.1g, I think, I have messed with libraries. SSH connection is having problems. :-(
ssh root#10.200.2.197
ssh_exchange_identification: Connection closed by remote host
May be my original problem is also related to this?
I will update the post shortly on more details as I fix SSH connection issue.
EDIT 2:
My system is RHEL 6.1. For SSH issue had to re install OpenSSL rpm from CD for there was version mismatch error from ssh. With this OpenSSL reinstallation, libraries have been set right in /usr/lib/ and /usr/lib64/. Now I don't get to see TLSv1_1_client_method() with nm.
I must have put in libraries from 1.0.1g into /usr/lib64/' and thus resulted innm` showing TLS method. And while compiling it was using other versions? Not sure.

* ERROR: nrpe does not have a start function

I installed Nagios-NRPE on a Gentoo virtual machine.
When I tried to start nrpe using /etc/init.d/nrpe start I got the following error:
ERROR: nrpe does not have a start function.
However I do not get this error on other Gentoo virtual machines on which I have installed Nagios-NRPE.
What might be causing this error?
In my case it was a simple matter of installing openrc using emerge:
emerge -avq openrc
It seems that openrc provides a necessary service to interpret start for certain scripts including /etc/init.d/nrpe.

Resources