Web cron

Hello everybody

Since version 2.2 I get the following error using the web cron:

INFO [2014-05-04 10:14:38] [5cd78] ---------------------------
INFO [2014-05-04 10:14:38] [5cd78] INIT
INFO [2014-05-04 10:14:38] [5cd78] Piwik is installed at: http://domain.tld/piwik/index.php
INFO [2014-05-04 10:14:38] [5cd78] Running Piwik 2.2.0 as Super User
INFO [2014-05-04 10:14:46] [5cd78] ERROR: Got invalid response from API request: http://domain.tld/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'Fatal error: Directive ‘magic_quotes_gpc’ is no longer available in PHP in Unknown on line 0’
INFO Piwik\CronArchiveFatalException[2014-05-04 10:14:46] [5cd78] ERROR: The Piwik URL http://domain.tld/piwik/index.php does not seem to be pointing to a Piwik server. Response was ‘’.

The problem isn’t magic_quotes_gpc neither the PHP version 5.3.28 that I use. I have tested it and changing to PHP version 5.4 for a short time doesn’t help either.

I can’t use the command line and cron jobs on the hosting server but it wasn’t necessary before.

What can I do to fix this problem?

Thanks for your help.

On your server, your PHP CLI is configured with magic_quotes_gpc

so please ask webhost to remove magic_quotes_gpc from PHP cli

Hello Matt

As I wrote before the configuration of magic_quotes_gpc doesn’t solve the problem.

The following error appears with PHP 5.4 (without the possibility for magic_quotes_gpc):

INFO [2014-05-05 15:52:25] [4dba8] ---------------------------
INFO [2014-05-05 15:52:25] [4dba8] INIT
INFO [2014-05-05 15:52:25] [4dba8] Piwik is installed at: http://domain.tld/piwik/index.php
INFO [2014-05-05 15:52:25] [4dba8] Running Piwik 2.2.0 as Super User
INFO Piwik\CronArchiveFatalException[2014-05-05 15:52:33] [4dba8] ERROR: The Piwik URL http://domain.tld/piwik/index.php does not seem to be pointing to a Piwik server. Response was ‘Content-type: text/html

INFO [2014-05-05 15:52:25] [e981a] ---------------------------
INFO [2014-05-05 15:52:25] [e981a] INIT
INFO [2014-05-05 15:52:25] [e981a] Piwik is installed at: http://domain.tld/piwik/index.php
INFO [2014-05-05 15:52:25] [e981a] Running Piwik 2.2.0 as Super User
’.

What can I do to fix this problem?

@ndzh please upgrade to 2.2.1-rc3 from: Index of /

Then if you still have the problem (which should be the case), could you email me matt@piwik.org your server information (SSH) so I can connect + reproduce the issue on your server? This would be really helpful! thanks

I’m happy. My problem was solved with the version 2.2.1 (and also 2.2.2).

Matt, please remember me: I’m not able to use the command line nor SSH. My hosting doesn’t allow it.

Thank you