We’ve recently been getting a lot of 500 Internal Errors. We really thought it was a programming error or something but speaking to my hosting company, it seems that Piwik is causing some visitors to receive a 500 Internal Error.
On the error_log file under the piwik subdomain we get this error about once a minute:
PHP Warning: Module ‘pcntl’ already loaded in Unknown on line 0
but sometimes in the same file it also says:
Error in Piwik (tracker): The Piwik URL https://analytics.****.com/index.php does not seem to be pointing to a Piwik server. Response was ‘’.
I’m having a pretty hard time figuring out what the issue is.
I had an htaccess file setup to disallow visitors from the Piwik login page. Could that possibly be what’s causing this.
The .htaccess file is:
<Files “*”>
order deny,allow
deny from all
allow from MY IP
allow from MY IP
<Files ~ “^piwik.(js|php)|robots.txt$”>
Allow from all
Satisfy any
Guys these 500 Internal errors are continuing, I’m just about to give up on Piwik after using it for about 3 years. I would really hate to do that but it’s making our site unusable for some visitors.
Nothing is showing up with the Apache error_log file.
The only thing visible is on the access_log file and it shows the 500 Internal errors Piwik is throwing. Here’s another one today:
GET /piwik.php?action_name=500%20Internal%20Error%20-%DOMAIN%DOMAIN&idsite=1&rec=1&r=055105&h=12&m=24&s=5&url=https%3A%2F%2Fwww.DOMAIN.com%URL$s=2874 HTTP/1.1" 204 -
Another one:
GET /piwik.php?action_name=500%20Internal%20Error%20-%DOMAIN%DOMAIN&idsite=1&rec=1&r=776316&h=9&m=38&s=5&url=https%3A%2F%2Fwww.DOMAIN.com%$1&java=0&gears=0&ag=0&cookie=1&res=1440x900>_ms=1230 HTTP/1.1" 204 -
Could this possibly be because we have “ecommerce” set to enabled with Piwik and we’re using a custom ecommerce platform?
I’ve noticed that the 500 Internal Errors mainly start when visitors register or add items to their cart and the cart functionality starts on our site. After that it’s pretty much 500 Internal Errors the rest of the way for visitors.
I’ve currently disabled “ecommerce” on Piwik and evaluating the results.
Hi there
if your server / Piwik creates 500 errors, then for sure you should get errors in your server error log. if you don’t it’s a server configuration issue, you need to fix it before we can help, because to help you we need this error log message?