jandevries
Forum Replies Created
-
Got the same output when running a WordPress script through CLI. The issue is that
$_SERVERis not available when the script is run from the command line. I think an extra check is needed to see if$_SERVERis set or not before the preg_match done on line 48.Thank you very much for looking into this and finding the issue @tsteur!
Deactivating the Minify HTML plugins fixes the issue. Time to look for a different HTML minifier.
> could you maybe also post the output of the system report or email it to [email protected]
Sure thing! It’s on its way!
> BTW the last link (file io) doesn’t work anymore by the looks. Was it showing any image there?
Ah I didn’t expect that service to delete files so quickly. It’s a small file, I’ll attach it to the email with the system report.
Hi @tsteur,
Thank you for your reply! I created the following screenshots for you, and also uploaded what is outputted as the “png” image:
– Dev tools Network tab: https://i.imgur.com/2IpKIdb.jpg
– Dev tools Response tab: https://i.imgur.com/vB8nBEM.jpg
– Contents of the “png” file (as seen as raw text): https://pastebin.com/raw/9n0GKXiM
– The image how it’s downloaded: https://file.io/ljhIFkNtul28- This reply was modified 5 years, 1 month ago by jandevries.
I’m running into the same issue: the sparkline images are broken under “Visits Overview”. The only difference from @sergeyf1 is that this is an existing install where everything used to work. I can’t remember when the images broke 🙁
My setup is a VPS with:
– Ubuntu 20.04.2
– WordPress 5.7
– PHP 7.4.3 (including php7.4-gd)
– MariaDB 10.3.25
– nginx 1.18.0Browser developer tools on both Firefox and Chrome show the requests for the sparkline images with 200 OK. Nginx access logs also show the requests as “200”, nothing logged to nginx error log.
Screenshot: https://i.imgur.com/S1pzh2b.jpg
Running this on WP 5.5.1 with PHP 7.4.6 without any issues. Apparently there are some issues with older versions of PHP 7, see https://ww.wp.xz.cn/plugins/wp-statistics/#php%207%20support%3F