Question

After having successfully installed and updated all vendors in my project folder for Sylius i tried running this code :

app/console sylius:install --fixtures

I get this error :

PHP Fatal error: Class 'ResourceBundle' not found in C:\wamp\www\sylius\vendor\ symfony\symfony\src\Symfony\Component\Locale\Locale.php on line 51

Then i tried all possible solutions given here

Installed intl extension in php (working successfully).Then ran this command

php build-data.php 'your ICU version'

On running the above command i get this:

'which' is not recognized as an internal or external command, operable program or batch file. The command "svn" is not installed

I want to know if there is another workaround to this issue. Please help and thanks in advance.

P.S. - No SVN runs on my system. And i'm using icu*46.dll

Anyone came across this??

Was it helpful?

Solution

This error relates to be PHP intl-extension. Make sure it is enabled and you have the LATEST version.

quick test:

<?php
    var_dump(extension_loaded('intl'));

Make sure your PHP folder is correctly registered in your %PATH% environment variable.

Control Panel - System - Advanced - ...

Without that, the ICU dlls are not loaded by PHP as Apache module - no error message is displayed, but the extension is not enabled.

Check aswell from phpinfo() ! not with ...

php -m

... or ( windows = findstr, linux/cygwin = grep )

php -i | findstr intl

check that the extension is enabled in your php.ini ( dont know WAMP's extenion path so adjust it please )

extension=php_intl.dll

As i can see you are on Windows and using WAMP you will have to get a precompiled version of the extension.

The packages on http://windows.php.net/download/ all contain the php_intl.dll in the ext folder.

Make sure that the ICU is compiled with the same version of MSVC that PHP is.

You run into problems if the ICU was compiled with VC10 and PHP was with VC9.

Although php -m and php -i detect the INTL it wouldn't show up in phpinfo().

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top