2012-09-05 11 views
12

Otrzymuję ten błąd podczas uruchamiania kodu źródłowego pobranego z Internetu. Jak to naprawić? Wydaje się, że jest to problem z wersją PHP. Używam PHP 5.3.Używanie niezdefiniowanej stałej

[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

sprawdzić, czy curl jest instalowany przy użyciu phpinfo() – Nin

+0

Jak chodzi o zawiadomieniu? – Emerald214

+0

te stałe są częścią curl – Nin

Odpowiedz

25

Install zwijania i wszystkie problemy znikną :)

+3

Lub przynajmniej zawiadomienia w dzienniku błędów: P –

+0

Mam curl zainstalowany i ten komunikat pojawia się. Mhh ... – kwoxer

+0

@kwoxer Sprawdź czy curl jest naprawdę zainstalowany z phpinfo() – Nin

21

Install php5-curl. Dla Debiana używać

$ apt-get install php5-curl 
Powiązane problemy