2012-09-05 25 views
12

Ich bekomme diesen Fehler, wenn Sie einen Quellcode aus dem Internet heruntergeladen. Wie man es repariert? Es scheint das PHP-Versionsproblem zu sein. Ich benutze PHP 5.3.Verwendung der undefinierten Konstante

[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 209 
[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 210 
[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 211 
[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_FAILONERROR - assumed 'CURLOPT_FAILONERROR' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 212 
[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function curl_init() in /home/hieugioi/Workspace/PHP/Couponic/framework/uniprogy/extensions/curl/CURL.php on line 22 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 209 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 210 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 211 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_FAILONERROR - assumed 'CURLOPT_FAILONERROR' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 212 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function curl_init() in /home/hieugioi/Workspace/PHP/Couponic/framework/uniprogy/extensions/curl/CURL.php on line 22 
+3

überprüfen, ob curl installiert ist mit phpinfo() – Nin

+0

Wie geht es über den Hinweis? – Emerald214

+0

diese Konstanten sind Teil der curl – Nin

Antwort

25

Installieren curl und alle Ihre Probleme werden :)

+3

Oder zumindest die Hinweise im Fehlerprotokoll: P –

+0

Ich habe Curl installiert und diese Nachricht erscheint. Mhh ... – kwoxer

+0

@kwoxer Überprüfen Sie, ob Curl wirklich installiert ist mit phpinfo() – Nin

21

installieren php5-curl verschwinden. Für Debian verwenden

$ apt-get install php5-curl 
Verwandte Themen