Sparklines Not Displaying (GD Installed)

Ever since I moved to a new server the Sparklines (small graphs) haven’t been displaying.

The troubleshooting says to make sure GD is installed and after rebuilding WHM/Cpanel and double checking with phpinfo that indeed GD is installed, what do I do next, what else can it be?

It is similar to my situation.

Installation is as follows.
(1) Windows Server 2012 / IIS 8
(2) Windows 7 / IIS 7.5

I tested with the following versions of Piwik.
Piwik 2.4.1 / 2.9.1 / 2.14.3

Then I tested in the following versions of PHP, sparklines are missing.
PHP 5.4.33 / 5.5.22 / 5.6.6

However, in the following versions of PHP, Piwik displays sparklines.
PHP 5.3.5

How do I view sparklines in PHP version 5.4 or later?

Check Administration > System Check

you need to setup GD library for your PHP version

Of course, I use the GD library for PHP version.
In the Windows version of PHP, PHP and GD libraries are provided together.
“Administration > System Check” is no problem.

If using a combination of different versions of PHP and the GD library, Piwiik will be a 500 Server error. And Piwik screen does not appear.
So the version of the GD library is correct.

When you get 500 error, check in your server error log for an error message, what is it?

I know cause of 500 Server error.
Cause is using the wrong version of the GD library.

Wanted to know Piwik behavior. So, I was using the wrong version of the GD library.

If I use wrong version GD library, then it comes to a 500 Server error.
If I use correct version GD library, then Piwik is displaied. But sparklines is not displaied.

How do I view sparklines in PHP version 5.4 or later?

Any news about this eror? Did anyone solved it? I have the same problem and i’m getting crazy with it…

See: The sparklines (small graphs) are not showing in my Piwik. - Analytics Platform - Matomo

GD library instaled and running. Other sites on same hosting are running fine. Freetype TTF is also installed…

I don’t know if it is related but piwik stopped recording visits at the same time.

Changed hosting account, diferent server but same PHP version.

For this issue please see: http://developer.piwik.org/api-reference/tracking-api#debugging-the-tracker if you want to troubleshoot the tracker issue

Developer tools in chrome shows me this errors in console when accessing piwik server:

(1 error) Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.

(21 errors) Mixed Content: The page at ‘Sign in - Piwik’ was loaded over HTTPS, but requested an insecure image ‘http://stats.oestedesign.pt/’. This content should also be served over HTTPS.

Developer tools in chrome shows me this errors in console when accessing a site monitored by piwik:

(1 error) Mixed Content: The page at ‘https://oestedesign.pt/servicos’ was loaded over HTTPS, but requested an insecure image ‘http://stats.oestedesign.pt/’. This content should also be served over HTTPS.

can you try if you have this problem with our latest RC version? I would like to test early beta and RC releases, how do I enable automatic updates to use these development versions? - Analytics Platform - Matomo

if you have an issue please create a bug report with error message: Issues · matomo-org/piwik · GitHub

The problem was resolved disabling “mod_security” on the server. Now the sparklines appear and is recording visits.

If mod security needs to be disabled why isn’t there a check when starting to install Piwik?

Thanks for the tip. I added mention of mod_security in the sparklines FAQ: The sparklines (small graphs) are not showing in my Piwik. - Analytics Platform - Matomo

I tested in the following environments.

(1) Windows Server 2012 / IIS 8 / PHP 5.5.22
(2) Windows 7 / IIS 7.5 / PHP 5.6.6

Piwik 2.15.0 does not display the sparkline.
However, Piwik 2.16.0 / 2.16.1 displays the sparkline.
Thank you.