Hi,
I’ve installed version 1.0.1 and this has the same problem. Now I’m down to 0.10.0.9 and that one seems to work fine.
I then upgraded to the latest version again, and changed one setting. When I hit “save” I had the server error again.
Can you please check your server log files? The “Internal Server Error” should cause an entry in your error log, which should help us to get behind this issue. Thank you!
Hi,
The log-file shows:
[Mon Jun 22 11:37:37 2015] [error] [client 217.121.224.171] mod_security: Access denied with code 500. Pattern match "(cmd|command)=.*(cd|\\\\;|perl |python |rpm |yum |apt-get |emerge |lynx |links |mkdir |elinks |cmd|pwd|wget |id|uname|cvs |svn |(s|r)(cp|sh) |net(stat|cat) |rexec |smbclient |t?ftp |ncftp |curl |telnet |gcc |cc |g\\\\+\\\\+ |whoami|\\\\./|killall |rm \\\\-[a-z|A-Z])" at POST_PAYLOAD [severity "EMERGENCY"] [hostname "www.erwinodendaal.nl"] [uri "/wp/wp-admin/options-general.php?page=wp-piwik/classes/WP_Piwik.php"] [unique_id "VYfXYVOstOYAAFXRKUsAAAAC"]
[Mon Jun 22 11:37:37 2015] [error] (13)Permission denied: mod_security: apr_global_mutex_lock(modsec_auditlog_lock) failed
[Mon Jun 22 11:37:37 2015] [error] (13)Permission denied: mod_security: apr_global_mutex_unlock(modsec_auditlog_lock) failed
Hm, looks like something is blocked on your system. By checking the list provided in your log, it seems to be POST via cURL.
Please check the expert settings:
- try HTTP connection cURL with HTTP mode GET
- or HTTP connection fopen with HTTP mode POST
If I understand the log entry, both configurations should work.
In version 0.10.0.9 the “expert settings” tab, doesn’t have the option to set the http connection. In version 1.0.2 I can change these settings, but cannot save them. Server error.
(By the way, this tab is wrongly translated in Dutch. It’s translated as “Exporteer instellingen” (Export settings), where it has to be “Expert instellingen”)
WP-Piwik 1.0.2 n’a pas pu se connecter à Piwik à partir de votre configuration ?
Another plugin that is not working !
I am thinking to get rid of WordPress.
So complicated CMS !
PIWIK – How to configure piwik ?
Here is the error message I am getting since an hour :
WP-Piwik 1.0.2 n’a pas pu se connecter à Piwik à partir de votre configuration.
In english, it means : WordPress can’t connect to Piwik !
Imagine the world without WordPress ? Yes I can !
Erwin, can you try to add the option value to your database table?
This should work (if you changed your database prefix, you have to change the table name, of course):
UPDATE <code>wp_options</code> SET option_value = 'get' WHERE option_name = 'http_method'
If this works, we can be sure it’s about mod_security, and I can try to find a real solution to fix this. Thank you!
mariegendron: Your posts are not related to this issue. Please create your own thread and provide further information (e.g., what’s your WordPress version? What’s your Piwik version? Please try to run the test script, Settings -> WP-Piwik -> Support -> Run test script, and post the results). If the connection to Piwik does not work, I’m quite sure this is not caused by WordPress itself.
I presume you’re talking about the field name: “wp-piwik_global-http_method”?
I’ve changed the value from “post” to “get” and this gives me a 404 page not found error after saving the settings in the admin settings.
Yes, I’m sorry. “wp-piwik_global-http_method” is the right one.
I’ll try to configure a virtual machine running your mod_security settings to try it on my own… no idea what may cause this 404 issue :-/ You can also try to set wp-piwik_global-http_connection to fopen (instead of curl), but I’m afraid the 404 error is caused by an additional problem.
Hi,
I noticed just yet that WP-Piwik 1.0.2. renders Gravity Forms useless. It’s no longer possible to create or edit forms.
So I think I’ll be switching to WP-Piwik 0.10.0.9 on all my sites using GF.
I can’t test Gravity Forms so I need further information.
What does “no longer possible to create or edit” mean? Do JavaScript errors appear? Did you try to enable WP debugging and checked for PHP errors?
Related to your mod_security issue: Is there a way to just whitelist WP-Piwik/Piwik to avoid this block? Or can you just disable mod_security once and test again, so we can be sure the issue is related to mod_security (or not)?
Hi,
Yes there was a javascript error. I’ve updated WP-Piwik to the latest version and now Gravity Forms is usable and no error anymore. Weird.
My provider is in holiday mode right now, and I would like to figure out the mod-security issue with them. They’ll be back on 26 july.
Hi,
My provider asked me to add this code to my .htaccess file. And that helps. I can now safe settings.
<Files options-general.php>
SecFilterEngine Off
SecFilterScanPOST Off
</files>
But,
When I tick “Auto config:” the plugin picks the first added website to Piwik and not the website as it’s supposed to do, namely based on the id in the tracking code. There is no pull down available to correct this.
When I untick ‘Auto config:’ the pulldown shows and I can set the correct website to track.
Standard tracking option is working also, before I had to add the code manually.
Ok, great the plugin basically works.
Can you just try to run the test script? It should give a hint which URL is used to determine the site ID, and what Piwik answers (see Test 3/3 in test script results). Thank you!