mb_convert_case undefined function (Symfony2 FOS/UserBundle) - php

On my Symfony2 application, I am receiving an error:
Fatal error: Call to undefined function FOS\UserBundle\Util\mb_convert_case() in /Applications/MAMP/htdocs/application/vendor/bundles/FOS/UserBundle/Util/Canonicalizer.php on line 18
I am using PHP 5.3.6.
Here is my PHPInfo showing that mbstring is enabled:
http://i.stack.imgur.com/FCMDv.png
If mbstring is enabled then why is mb_convert_case not being found?

I found this:
Under Windows you must uncomment the line with php_mbstring.dll in your php.ini
I don't know if you're running a windows box or not.

Related

Call to undefined function imagewebp()

I am wondering why i get this error. I updated my php from 5.6.22 to 5.6.40 and now i get this error. This was working fine in previous version but suddenly it turns out like this.
Fatal error: Call to undefined function imagewebp()
Also if try var_dump(function_exists('imagewebp')); it gives false now.
This is my current PHP version
This is the GD Module
So what has to be done to re-enable it in my server.
I have a Cent-OS instance in AWS.
The WBMP Support => enabled is not enough)
You have to add --with-vpx-dir= to your configure line or --with-webp-dir for PHP 7.0+
For me
PHP: 8
I simply uncommented the extension gd and the function worked
extension=gd
in my php.ini file

mcrypt installed and enabled but magento checkout throwing undefined function mcrypt_module_open()

I have a Magento 1.9 site installed and all necessary php extensions. The site works, but when I get to checkout/onepage I get the error:
Fatal error: Call to undefined function mcrypt_module_open() in /path/lib/Varien/Crypt/Mcrypt.php on line 63
I understand this typically means that mcrypt is not installed, but looking at the contents of phpinfo(); reveal that it is installed and enabled
portion of phpinfo
I am running on php 5.3.29 using apache on a mac. I used homebrew to install php53 and php53-mcrypt. I am curious to know why the mcrypt_module_open() function cannot be found if I have mcrypt enabled.

Laravel 5.1 : FatalErrorException in Encrypter.php line 48: Call to undefined function Illuminate\Encryption\mb_strlen()

I installed laravel 5.1 in my server.
I am getting fatal error like in laravel 5.1 Call to undefined function Illuminate\Foundation\Bootstrap\mb_internal_encoding()
then i commented the line mb_internal_encoding('UTF-8'); in LoadConfiguration.php..
again i am getting one more fatal error
Laravel 5.1 : FatalErrorException in Encrypter.php line 48: Call to undefined function Illuminate\Encryption\mb_strlen()
can anybody tell me how to resolve this?
The problem is either your PHP installation lacks multibyte extension, either it has not been enabled.
If you installed PHP by yourself make sure you compile it with the --enable-mbstring option.
If you used your package manager to install PHP then check your php.ini file to enable the mbstring extension.
It may be also possible to install an extra package that contains the extension, depending on your platform

How to fix this error? Fatal error: Call to undefined function ctype_alnum() in .../magento18/lib/Zend/Uri.php on line X?

How to fix this error:
Fatal error: Call to undefined function ctype_alnum() in /Applications/AMPPS/www/farhom.com/magento18/lib/Zend/Uri.php on line 109
I was trying to run Magento on Ampps on Mac OS X.
Open Ampps Application -> PHP Tab -> PHP Extension -> Select "ctype" -> Apply.
Restart Apache server.
Forum with answer posts
Check to make sure the ctype package is installed; It's typically installed by default but some distros exclude it.
For Alpine:
apk add php7-ctype

MongoDB - Wampserver : Class 'Mongo' not found

I am trying to install MongoDb on windows platform. I'm using PHP with WampServer.
But while executing the PHP program it gives the following error:
Fatal error: Class 'Mongo' not found in C:\wamp\www\test\index.php on line 19
So is there any way to check whether MongoDB is running with PHP or not ?
Please check php loaded extensions using phpinfo() function whether mongoDB extension is loaded or not.
Do check these as well.
Fatal Error - 'Mongo' class not found
Fatal error: Class 'Mongo' not found in xampp
Add the following line to your php.ini file:
extension=php_mongo.dll
Docs Link: http://php.net/manual/en/mongo.installation.php
Check this possible solution
Copy c:\wamp\bin\php\php-5.3.x\ext\
Edit c:\wamp\bin\apache\Apache2.2.xx\bin\php.ini and add the line where the extensions are loaded.
Why run WAMP on 32bit Windows 7 64bit?
The Mongo PHP driver does not have a 64bit binary win32, if you are running the 64bit version of WAMP, PHP will refuse to load the 32-bit version of php_mongo.dll.

Categories