Will give v3 a try.
Thanks!
Since upgrading to Drupal 10, re-surface the issue,
The only simple solution was to get the material_stable9
out of material_base
.
mv web/themes/contrib/material_base/themes/material_stable9 web/themes/contrib
in-addition.
there was a small issue with normalize library.
in web/themes/contrib/material_stable9/material_stable9.info.yml:92
it was:
core/normalize: stable/normalize
it should be:
core/normalize: stable9/normalize
When running drush cim
I got this error.
So I ran drush cr
and tried again, and it worked.
7 years later, the issue still exist.
Only this time this is in: \Drupal\Core\File\FileSystem::doScanDirectory
at web/core/lib/Drupal/Core/File/FileSystem.php:707
:
if ($handle = @opendir($dir)) {
while (FALSE !== ($filename = readdir($handle))) {
Can we work on this, so that in ext4
filesystems, this will not mess up themes?
More info about my situation are here: #3329810 🐛 Stable9 override the material_base templates Closed: works as designed , #3316641 (with full easy reproduce) →
Can we use scandir instead?
(scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING, ?resource $context = null): array|false
)
Just override the parameter from your own ServiceProvider
.
Instead of using symfony magic and replace the way the container is being built, use the drupal/symfony way to alter services/parameters in the container:
https://www.drupal.org/docs/drupal-apis/services-and-dependency-injectio... →
In essence what we did is to create file: my_module/src/MyModuleServiceProvider.php (the name matters) looks like this:
namespace Drupal\my_module;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
class MyModuleServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$cors_config = $container->getParameter('cors.config');
$cors_config['allowedOrigins'] = ['https://' . $_ENV['CONSUMER_HOST']];
$container->setParameter('cors.config', $cors_config);
}
}
Make sure clear cache (so container will be compiled fresh) - drush cr
/ drush cc container
Added command line option to change the server's default isolation level for all connections.