I’ve been playing around with Laravel a bit just to try it out and figured I would bundle this with a light weight WAMP solution. Went through the install and everything worked fine exept when it came time to migrate my database:
C:\UniServer\laravel1>php artisan migrate
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Call to undefined function Symfony\\Component\\Console\\mb_detect_encoding()","file":"C:\\UniServer\\laravel1\\vendor\\symfony\\console\\Symfony\\Component\\Console\\Application.php","line":721}}
Took some googling around, but the solution was pretty easy. Assuming you’re running a stock and fairly recent version of Uniform, all you have to do is modify your php-cli.ini file and add:
extension=php_mbstring.dll
Restart Apache and presto.
~david
Hi David,
I have the exact same error migrating database…
Y use “Uniserver Zero XI”, and extension=php_mbstring.dll is enabled in php.ini
If I try to add extension=php_mbstring.dll to php-cli.ini and run migrate I get this error:
[PDOException]
could not find driver
I’m a little desperate so any insight would be welcome :)
Thank you very much.
Can you check if you have php_mbstring.dll in your extensions folder for PHP? If it’s not there download it from here http://windows.php.net/download/.
~david
Ey, thanks for your quick reply!
Yes, the extension exists.
In fact, I code this in a blade.php and it works:
Any other ideas?
uops, no php in comments :)
The code was:
echo(mb_detect_encoding(‘a’));
The only thing I can think of is to try to use the same server I’m using. If you do find an answer please share it.