After a recent upgrade to WordPress 4.6 had problems with cURL (eg when updating plug-ins that use cURL):
cURL error 23: Failed writing body (373 = 449!)
Judging by the forum, to 4.6 cURL broke, and 4.6.1 are still not rolled out the fix.
The decision to fix the line:
if (!function_exists('curl_init') || !function_exists('curl_exec')) {
to
if (true || !function_exists('curl_init') || !function_exists('curl_exec')) {
in ./wp-includes/Requests/Transport/cURL.php file
I don't recommend to edit Wordpress core files but Wordpress Developer have to fix that in next update.
the problem is that PHP was built without curl, not with the source code. if you're compiling PHP yourself make sure to compile with --with-curl as described here http://php.net/manual/en/curl.installation.php
if you're not compiling yourself, and you're on 1 of those linuxes with package managers, it's probably available through your package manager, for instance, with Ubuntu and Debian: apt-get install php5-curl or more recently (debian 9 testing, ubuntu 16.04 for instance) apt-get install php7.0-curl
if you're on windows, it's probably available in a DLL that you haven't loaded, add extension=php_curl.dll to php.ini
Related
Trying a fresh install of Silverstripe 4.0.1 but only gets this far -
Installing SilverStripe...
I am now running through the installation steps (this should take about 30 seconds)
If you receive a fatal error, refresh this page to continue the installation
Setting up /var/www/duonsdev/public_html/index.php
Setting up /var/www/duonsdev/public_html/mysite/_config.php
Setting up /var/www/duonsdev/public_html/mysite/_config/theme.yml
Setting up /var/www/duonsdev/public_html/.env
Setting up /var/www/duonsdev/public_html/.htaccess
Building database schema...
ERROR [Emergency]: Uncaught TypeError: Return value of Symfony\Component\Filesystem\Filesystem::toIterable() must be an instance of Symfony\Component\Filesystem\iterable, array returned IN POST /install.php Line 729 in /var/www/duonsdev/public_html/vendor/symfony/filesystem/Filesystem.php Source ====== 720: } 721: 722
And the error goes on and on. I tried refresh, but same error.
If I try a dev/build instead then it always dies at the point of -
Index File_Versions.OwnerID: created as index ("OwnerID")
Website Error
There has been an error
The website server has not been able to respond to your request
Trying to setup on Ubuntu 16 on local dev machine running Apache virtual host.
Never had this problem before and setup fine with ss4.0.
Any ideas?
I ran into the same issue, and after checking in the official SilverStripe Community's slack channel, they mentioned this is because I was not running PHP 7.1.
Apparently, the official SilverStripe tarball offered in their website was built with PHP 7.1, so Composer added newer Symfony dependencies. They mentioned this would be fixed in newer releases.
Therefore, there are 2 ways you can fix this issue:
Download SilverStripe with Composer:
$ curl -sS https://getcomposer.org/installer | php
$ ./composer.phar create-project silverstripe/installer /var/www/duonsdev/public_html/
Update your PHP version to 7.1.
After doing any of those steps, you will be able to access the web wizard for installing SilverStripe.
NOTE: If you're on a shared hosting, you will need to download SilverStripe on your local machine (ensuring the PHP version matches, at least in the major version, e.g. 7.0), and upload the files that were generated to your public_html directory.
Make sure the module php version of apache in the same version as the cli php version.
Looks like the error was to do with the php version.
I was installing silverstripe through the cli using composer, but running a different version of php in apache.
So in the cli the php version was php 7.1
But in apache the php version was php 7.0.
After changing the apache php to match the cli (because silverstripe was installed using composer in the cli) it worked!
I got a server with Ubuntu 16.04. I've installed nginx and PHP 7 with fpm. I need to install MCrypt extension but I cannot find how to do it, I found some information for PHP 5.6 and I'm not sure if the process is the same. How can I do it?
You may have to download the latest version of phpmyadmin 4.6.6
Fixes for PHP 7.1
Problems with MySQL servers running with lower_case_names=2
Fixes for several PHP notices/warnings being shown
they've fixed this bug
by the way , to install mcrypt in unbutu for PHP 7:
apt-get install php7.0-mcrypt
which again is DEPRECATED in PHP 7.1.x
Warning
This extension has been deprecated as of PHP 7.1.0 and moved to PECL
as of PHP 7.2.0.
I'm getting "No package zend-server-nginx-php-5.4 available." after running yum install zend-server-nginx-php-5.4, setting the repo accordingly (see below) and I have no other idea rather then updating php to solve this problem (something which may cause some problems on my app).
As mentioned on the question title i'm trying to install Zend-Server 6.1 on CentOS 6.5 wtih PHP 5.4 and nginx.
Any Ideas?
I have tried:
https://www.digitalocean.com/community/tutorials/how-to-install-zend-server-6-on-a-centos-6-4-vps
and
http://blog.petermcdonald.co.uk/2013/07/11/installing-zend-server-6-1-using-nginx-and-php-5-4/
Repo file is:
[Zend]
name=Zend Server
baseurl=http://repos.zend.com/zend-server/6.1/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
[Zend_noarch]
name=Zend Server - noarch
baseurl=http://repos.zend.com/zend-server/6.1/rpm/noarch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
Tried with this url and locally installing as well but it misses
"zend-server-php-5.4-common = 6.1.0-98"
and I'm not sure where to get that package. Help please!!
Wow, weird, turned out I just had to clean packages cache before installing to ensure retrieval of updates from the web. Just run:
yum clean all
and then
yum install zend-server-nginx-php-5.4
installation runs fine.
I'm new to the symfony2 and I was following http://symfony.com/doc/current/book/installation.html for installation using Composer now
It gives me a Fatal Error after some time:
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
Writing lock file
Generating autoload files
Fatal error: Call to undefined method Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::defineDirectoryStructure() in /Users/app/SymfonyStandard/RootPackageInstallSubscriber.php on line 28
#hap absolutely right on Debian/Ubuntu
sudo apt-get install php5-curl
is solving this issue. I think on another platform php5-curl will help too.
RESOLVED:
Got the same problem. Deleted the file composer.phar, installed again via curl -s https://getcomposer.org/installer | php - problem persists
/path/to/webroot/project/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/ScriptHandler.php file does not have the method defineDirectoryStructure() in it
symfony/framework-standard-edition (v2.6.1)
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
problem here
sensio/distribution-bundle (v3.0.11)
Thanks #hap, this helped
sudo apt-get install php5-curl
Just had this problem on Debian. For me the problem was that sensio/distribution-bundle in its last version (v3.0.12, the one introducing the defineDirectoryStructure function) requires the cURL PHP extension, which was not installed, so it installed v3.0.11 (which don't contain the required method).
After installing php5-curl, Composer finaly installed the last version of sensio/distribution-bundle and everything was fine.
Got the same problem too ... Works on a debian distrib, but doesn't work on my wamp on windows 7 !
So tried to update my wamp, to get PHP5.5, reconfigure composer to use this PHP, still didn't work ..
Then I tried to launch the Console in Administrator mode, and launch :
"composer create-project symfony/framework-standard-edition sfproject/"
And guess what .... That finally worked !! With administrator rights ... Just give it a try ;)
I have same problem. I just added in composer.json string "symfony/symfony": "2.3.*", And its working for me.
Also, i deleted my composer.phar and composer.lock files.
The problem, if you have in your project symfony 2.3 it installing dependencies for v 2.7 .
I got this error from a install into a new vagrant VM, it would appear that something done recently has broken this as I managed to install a 2.6.0 version last week whilst testing, now it doesn't work.
After a bit of trial and error, it appears that the 2.6x and 2.5x branches are both affected and will not install, but 2.3x and 2.4x do install without the error.
incase anyone doesn't know how to install a specific version, just add it onto the end of the composer command, i.e.
composer create-project symfony/framework-standard-edition . 2.4.x
VM: Ubuntu 14.01 / PHP 5.5.9
I had the same problem in an Ubuntu 14.04 VM set up with PuPHPet and Vagrant/VirtualBox.
I've noticed that when I had the same problem, the DistributionBundle was severely out of date. Trying to upgrade it manually from composer.json (changing the version to 3.0.12, which was the las one available at the time I had the problem) produced a more verbose error, stating I hadn't installed php5-curl.
After updating the PuPHPet config file to include the cURL module for PHP and reprovisioning my VM, Symfony installed just fine, having installed the last version of Sensio Distribution Bundle, which contained the defineDirectoryStructure() method.
I'm getting this error while trying to import sliders in Revolution Slider Wordpress plugin:
Error: Wrong export slider file format! This could be caused because the ZipArchive extension is not enabled.
In my case the ZipArchive extension is installed and active (check: http://www.digitpro.it/tools/info.php) so none of other replies on the web applies.
Looks like the ZipArchive PHP extension is not installed on your server.
You can see there for more info: http://portfoliotheme.org/support/forums/topic/error-importing-sample-revolution-sliders/
When upgrading to PHP 7, you should make sure to install the PHP 7 versions of you libraries as well. The PPA providing PHP 7 also provides a php7.0-zip package. You can install it with:
sudo apt-get install php7.0-zip
To see additional PHP 7 libraries that are available, run:
sudo apt-cache search php7.0-*