Hey, after

composer require  drupal/[module] ...
drush en [module]

I get 'The website encountered an unexpected error. Please try again later.' blank screen on my browser ...

Thx !

Comments

jordilopezamat created an issue. See original summary.

mahmoud-zayed’s picture

Hi jordilopezamat,

This can be happening for many reasons

Would you open the error logs and report the exact error?

Thanks

jordilopezamat’s picture

 	php 	05/09/2020 - 18:55 	Error: Class 'NumberFormatter' not found in Drupal… 	admin 	
	php 	05/09/2020 - 18:55 	Error: Class 'NumberFormatter' not found in Drupal… 	admin 	
	php 	05/09/2020 - 18:54 	Error: Class 'NumberFormatter' not found in Drupal… 	admin 	
	php 	05/09/2020 - 18:54 	Error: Class 'NumberFormatter' not found in Drupal… 	admin 	
	system 	05/09/2020 - 18:52 	bootstrap_layout_builder module installed. 	Anonymous (not verified)

Where the given Error: Class 'Number ...

extends as

Error: Class 'NumberFormatter' not found in Drupal\bootstrap_layout_builder\Plugin\Deriver\BootstrapLayoutDeriver->formatNumberInLetters() (line 49 of /run/media/jordi/USB32Gb/uhtml/d8iii/web/modules/contrib/bootstrap_layout_builder/src/Plugin/Deriver/BootstrapLayoutDeriver.php)

Hope to fix it while installing in my dev setup. --> Apparently i'm missing the given PHP extension.

So it should be my environment 's failure ... ( PHP ' intl ' extension lack of).

EDIT: apparently the problem disappeared after installed the needed ^^ extension

issue, as such... should be 'Closed' , i guess

Thanks, anyway

jordilopezamat’s picture

Title: Cannot use : error after installing module » Dev. Environment (PHP) error pops up ( after installing module )
mahmoud-zayed’s picture

Hi Jordilopezama,

Yes, you may miss php-intl extension at your environment.

Thanks

mahmoud-zayed’s picture

Status: Active » Closed (cannot reproduce)
mahmoud-zayed’s picture

Status: Closed (cannot reproduce) » Needs work

Removing NumberFormatter dependency since we are just mapping 12 numbers, so no need for additional libraries.

  • mahmoud-zayed committed 24480b8 on 1.x
    Issue #3133144 by mahmoud-zayed: Remove NumberFormatter dependency.
    
mahmoud-zayed’s picture

Status: Needs work » Needs review
mahmoud-zayed’s picture

Status: Needs review » Fixed
mahmoud-zayed’s picture

Status: Fixed » Closed (fixed)
mahmoud-zayed’s picture

Title: Dev. Environment (PHP) error pops up ( after installing module ) » Remove NumberFormatter dependency and use simple mapping instead