Error fatal: llamar a la función indefinida curl_setopt ()
-
16-10-2019 - |
Pregunta
Tengo algunos problemas alojando mi sitio web de Magento. Siempre he ejecutado sitios web (Joomla, WordPress) en el alojamiento compartido. Sin embargo, para este sitio web de Magento aconsejaron a un VPS.
Después de bastante trabajo (el tamaño de la memoria de PHP era demasiado bajo, etc.) El sitio web se carga, pero no puedo acceder al área de administración:
Fatal error: Call to undefined function curl_setopt() in /var/www/elly/lib/Varien/Http/Adapter/Curl.php on line 87 Call Stack: 0.0001 637816 1. {main}() /var/www/elly/index.php:0 0.0014 708040 2. Mage::run() /var/www/elly/index.php:87 0.0032
¿Alguien puede ayudarme a resolver esto?
Tengo otra pregunta: después de agregar un artículo a mi lista de compras, las páginas ya no se cargarán. Busque un ejemplo en: http://bit.ly/1cvxgka
EG: Agregue un artículo de esta página (http://bit.ly/hlmnaz) flotarlo y hacer clic en 'In Winkelwagen'.
¿Alguien podría ayudarme con esto?
Solución
Seems there's no curl installed on your server. Check your phpinfo()
for curl.
If not present, you or your provider can enable it in the PHP config:
/etc/php5/apache2/php.ini
(or similar)
enable extension:
extension=curl.so
Otros consejos
I had same issue just install curl and restart your ngix or apache and php5
sudo apt-get install php5-curl
sudo service php5-fpm restart
You need to enable the curl
extension for PHP.