2

I installed Magento 2.0.2, via installatron service (automated on Direct Admin), but I cannot access admin area. CSS/JS looks ok, but admin cannot login on php 7.0.6. When I switched to php 5.6 I'm getting

Fatal error: Class 'Locale' not found in /vendor/magento/framework/Locale/Bundle/DataBundle.php on line 64

Where to fix it? Since any other options are not working so far. Thanks

asked Apr 30, 2016 at 15:35

2 Answers 2

1

You php do not have intl extension. You can verify it by run php -i.

In many cases this problem appear when you have different php version/configurations for apache and cli. For example if use install MAMP on MacOsX that you will have different version. To use php in this case you need specify full path to php like /Applications/MAMP/bin/php/php7.0.0/bin/php

To change it you need to do folowing steps:

Edit ~/.bash_profile and add

export PATH=/Applications/MAMP/bin/php/php7.x.x/bin:$PATH

where /Applications/MAMP/bin/php/php7.x.x should be patch to your latest wersion

In Terminal, run source ~/.bash_profile

In Terminal, type in which php and look for the updated patch. If everything was successful, It should output the new path to MAMP PHP install.

In case it doesn't output the correct path, try closing the terminal window (exit fully) and open again, it should apply the changes (Restart in short).

answered Apr 30, 2016 at 17:46
1
  • I have intl installed. I checked. I even did test before I install Magento manually from zip - and it shows that all requirements are met Commented Apr 30, 2016 at 18:20
1

I had a similar problem, running the cron / indexer:reindex The sollution I found was to run xampp's shell and there write the code. Otherwise, on command prompt ( Windows ) it would give me the same error.

answered Mar 15, 2017 at 9:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.