@anonymous-piwik-user opened this Issue on August 11th 2010

PiwikTracker not working on many shared hosting server, because external file_get_contents($url) not working with allow_url_fopen = false.

-> Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /xxxx/.xxxx/xxxx/index.php on line xx

Bugfix:
Now using Curl

Line 292....

        if(function_exists('curl_open')) {
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, $url);
            curl_setopt($ch, CURLOPT_TIMEOUT, 8);
            curl_setopt($ch, CURLOPT_HEADER, 0);
            $response = curl_exec ($ch);
        } else {
            $response = file_get_contents($url, 0, $ctx);
        }   

Keywords: tracker api

@anonymous-piwik-user commented on August 11th 2010

Attachment:
PiwikTracker.patch

@anonymous-piwik-user commented on August 11th 2010
@robocoder commented on August 11th 2010 Contributor

(In [2910]) fixes #1574

@robocoder commented on August 11th 2010 Contributor

(In [2911]) refs #1574

This Issue was closed on August 11th 2010
Powered by GitHub Issue Mirror