Uniform Server (WAMP) and Laravel

November 19, 2013

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

tags: , ,
posted in Writings by dmacias

Follow comments via the RSS Feed | Leave a comment | Trackback URL

5 Comments to "Uniform Server (WAMP) and Laravel"

  1. dani wrote:

    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.

  2. dmacias wrote:

    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

  3. dani wrote:

    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?

  4. dani wrote:

    uops, no php in comments :)

    The code was:
    echo(mb_detect_encoding(‘a’));

  5. dmacias wrote:

    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.

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org