Install Lightings in Silius - Symfony2

After successfully installing and updating all the providers in the project folder for Sylius, I tried to run this code:

app / console sylius: install --ficments

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 the possible solutions given here

Installed intl extension in php (works successfully). Then this command was executed

php build-data.php 'your ICU version'

When executing the above command, I get the following:

'which is not recognized as an internal or external command, operating program or batch file. Svn command not installed

I want to know if there is another way around the problem. Please help and thanks in advance.

PS - SVN does not work on my system. And I use icu * 46.dll

Has anyone stumbled upon this?

+4
source share
1 answer

This error refers to the internal extension of PHP. Make sure it is turned on and you have the LAST version.

quick test:

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

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

 Control Panel - System - Advanced - ... 

Without this, ICU DLLs do not load PHP as an Apache module - an error message is not displayed, but the extension is not enabled.

Give up phpinfo () ! not with ...

 php -m 

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

 php -i | findstr intl 

check that the extension is included in your php.ini (I don’t know the path of the WAMP extension, so configure it)

 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 at http://windows.php.net/download/ contain the php_intl.dll file in the ext folder.

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

You are having trouble if ICU was compiled with VC10 and PHP with VC9 .

Although php -m and php -i detect INTL, it will not display in phpinfo ().

+1
source

Source: https://habr.com/ru/post/1482698/


All Articles