Missing mbstring in PHP 5.6 CentOS 6.8 - centos6

I got the following error from one of my PHP functions (PHP verion 5.6)
Fatal error: Call to undefined function mb_detect_encoding()
It is one of the mbstring package functions. So I checked in the phpinfo(). There is no "mbsting". I tried to install mbstring by using the following command in my CentOS 6.8 server.
yum install php56w-mbstring
But it returns:
No package php56w-mbstring available. Error: Nothing to do
I also tried: rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Ref: https://serverfault.com/questions/732468/how-to-install-php56-on-centos-6-x86-64
I have also tried: Cannot install mbstring php conflict
but still the same.

You should check your /etc/yum.conf
Just remove 'php*'

Same question I post over here: https://superuser.com/questions/1121176/installing-php-extension-mbstring-in-php-5-6-centos-6-8
All of these PHP configurations had done through EazyApache. There are some unusual changes because of installing/upgrades through EazyApache (rather installing/upgrades doing directly on the server). So have to follow EazyApache to install new modules. For how to install module through EazyApache, Ref: https://forums.cpanel.net/threads/enable-install-mbstring-module.158165/

Related

FOS/user-bundle ProxyManager\Configuration error

After installation of friendsofsymfony/user-bundle I getting this error
FatalThrowableError in Configuration.php line 124:
Type error: Return value of ProxyManager\Configuration::setGeneratorStrategy() must be an instance of ProxyManager\void, none returned
Using Symfony3.2 and PHP 7.1
Maybe have ideas why?
EDIT
I used This tut
https://symfony.com/doc/master/bundles/FOSUserBundle/index.html
And choose "Doctrine ORM User class" for user entity
This is because you are using the incorrect php version.
This might happen either because you updated your php version recently or your OS updated it.
Like #Ɓukasz D. Tulikowski mentioned void is a php7.1 keywork.
If you check in your cli php -v you will get probably the correct php version php7.1
Most likely if you add in your code phpinfo(); you will see that the php version is 7.0. This means that the php7.0 mod is still enabled and you need to deactivate that with sudo a2dismod php7.0 (and eventually enable 7.1 - sudo a2enmod php7.1 - but this is probably not the case.)
This mean maybe you are using php version 7.0, I had the same problem, I fix it removing php previous versions and then reinstall php 7.2 following thishttps://ayesh.me/Ubuntu-PHP-7.2

Intall MCrypt extension in nginx server with PHP 7

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.

WordPress 4.6 had problems with cURL error 23

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

Symfony Installation gives fatal error

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.

Error: Wrong export slider file format! This could be caused because the ZipArchive extension is not enabled

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-*

Resources