- Issue created by @cmlara
- 🇬🇧United Kingdom longwave UK
Can't reproduce this, with or without a database. I just get
Warning: file_get_contents(/dev/invalid): Failed to open stream: No such file or directory in require() (line 785 of sites/default/settings.php). require() (Line: 150) Drupal\Core\Site\Settings::initialize() (Line: 341) install_begin_request() (Line: 118) install_drupal() (Line: 53)
at the top of the page - note the path is sanitized correctly - and then the page continues to load showing either the installer or the "already installed" message.
- 🇺🇸United States cmlara
Looks like this also needs
error_reporting(0);
to be set first. - 🇬🇧United Kingdom longwave UK
Reproduced with
error_reporting(0); file_get_contents('/dev/invalid');
ie. it only works if error reporting is off.
MR!9743 hardens this, the fix is trivial and I don't believe worth testing.
- 🇺🇸United States DamienMcKenna NH, USA
The code change is minuscule and I don't see any possible downsides to it.
- 🇬🇧United Kingdom catch
Yes all looks fine.
Committed/pushed to 11.x and cherry-picked back through to 10.2.x, thanks!
- 🇮🇹Italy trickfun
Same error for me with drupal 10.3.6 and PHP 8.3
With Drupal 9 no error. - 🇬🇧United Kingdom catch
@trickfun this fix will be in 10.3.7, it's not in 10.3.6
Automatically closed - issue fixed for 2 weeks with no activity.