netz98 / n98-magerun2

The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
https://magerun.net
Other
868 stars 220 forks source link

"Area code is not set" when creating a customer #695

Closed Nuranto closed 2 years ago

Nuranto commented 3 years ago

Describe the bug

Area code is not set when trying to create

Expected behaviour

creates the customer

Steps to reproduce the issue

bin/n98-magerun2.phar customer:create harry@poudlard.com Harry!P0ter Harry Potter base

Technical details

Docker (FROM php:7.4-apache) Magento 2.4.1 PHP 7.4

cmuench commented 3 years ago

@Nuranto Please add some information about the Magento Version.

Nuranto commented 3 years ago

@cmuench Sorry, added !

cmuench commented 3 years ago

@Nuranto I tested that in a fresh installed Magento OpenSource 2.4.1 and was able to create the user. BTW... we test the logic in an automated test for every release. Maybe there is some logic of external modules (observer, plugin) involved. If you start n98-magerun2.phar with -vvv option, then you should see the trace of the exception.

Nuranto commented 3 years ago

dev:/var/www/html# bin/n98-magerun2.phar customer:create harry@poudlard.com HarryP0ter Harry Potter base -vvv

returns

Load dist config
Search for Magento in folder pub
Search for Magento in folder /var/www/html
Found Magento  v2  in folder /var/www/html
Load dist config
[...]

[2021-01-09 12:34:00] main.DEBUG: #0 /var/www/html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(23): Magento\Framework\DB\Adapter\Pdo\Mysql->beginTransaction()
#1 /var/www/html/vendor/magento/framework/Model/ResourceModel/AbstractResource.php(67): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->beginTransaction()
#2 /var/www/html/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(437): Magento\Framework\Model\ResourceModel\AbstractResource->beginTransaction()
#3 /var/www/html/vendor/magento/module-customer/Model/Plugin/CustomerRepository/TransactionWrapper.php(41): Magento\Customer\Model\ResourceModel\Customer\Interceptor->beginTransaction()
#4 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Customer\Model\Plugin\CustomerRepository\TransactionWrapper->aroundSave(Object(Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor), Object(Closure), Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...')
#5 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...')
#6 /var/www/html/generated/code/Magento/Customer/Model/ResourceModel/CustomerRepository/Interceptor.php(23): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callPlugins('save', Array, Array)
#7 /var/www/html/vendor/magento/module-customer/Model/AccountManagement.php(906): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->save(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...')
#8 /var/www/html/generated/code/Magento/Customer/Model/AccountManagement/Interceptor.php(104): Magento\Customer\Model\AccountManagement->createAccountWithPasswordHash(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...', '')
#9 /var/www/html/vendor/magento/module-customer/Model/AccountManagement.php(853): Magento\Customer\Model\AccountManagement\Interceptor->createAccountWithPasswordHash(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...', '')
#10 /var/www/html/generated/code/Magento/Customer/Model/AccountManagement/Interceptor.php(95): Magento\Customer\Model\AccountManagement->createAccount(Object(Magento\Customer\Model\Data\Customer), 'HarryP0ter', '')
#11 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Command/Customer/CreateCommand.php(190): Magento\Customer\Model\AccountManagement\Interceptor->createAccount(Object(Magento\Customer\Model\Data\Customer), 'HarryP0ter')
#12 [internal function]: N98\Magento\Command\Customer\CreateCommand->createCustomer(Object(Magento\Customer\Model\Customer\Interceptor), 'HarryP0ter')
#13 /var/www/html/vendor/magento/framework/App/State.php(187): call_user_func_array(Array, Array)
#14 /var/www/html/generated/code/Magento/Framework/App/State/Interceptor.php(68): Magento\Framework\App\State->emulateAreaCode('frontend', Array, Array)
#15 /var/www/html/generated/code/Magento/Framework/App/State/Proxy.php(135): Magento\Framework\App\State\Interceptor->emulateAreaCode('frontend', Array, Array)
#16 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Command/Customer/CreateCommand.php(138): Magento\Framework\App\State\Proxy->emulateAreaCode('frontend', Array, Array)
#17 /var/www/html/vendor/symfony/console/Command/Command.php(255): N98\Magento\Command\Customer\CreateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Command/AbstractMagentoCommand.php(363): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 phar:///var/www/html/bin/n98-magerun2.phar/vendor/symfony/console/Application.php(1027): N98\Magento\Command\AbstractMagentoCommand->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 phar:///var/www/html/bin/n98-magerun2.phar/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(N98\Magento\Command\Customer\CreateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Application.php(226): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 phar:///var/www/html/bin/n98-magerun2.phar/vendor/symfony/console/Application.php(149): N98\Magento\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Application.php(329): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /var/www/html/bin/n98-magerun2.phar(8): N98\Magento\Application->run()
#25 {main} [] []
[2021-01-09 12:34:00] main.DEBUG: #0 /var/www/html/generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php(23): Magento\Framework\DB\Adapter\Pdo\Mysql->beginTransaction()
#1 /var/www/html/vendor/magento/framework/Model/ResourceModel/AbstractResource.php(67): Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->beginTransaction()
#2 /var/www/html/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(437): Magento\Framework\Model\ResourceModel\AbstractResource->beginTransaction()
#3 /var/www/html/vendor/magento/module-eav/Model/Entity/VersionControl/AbstractEntity.php(63): Magento\Customer\Model\ResourceModel\Customer\Interceptor->beginTransaction()
#4 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Eav\Model\Entity\VersionControl\AbstractEntity->save(Object(Magento\Customer\Model\Customer\Interceptor))
#5 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\ResourceModel\Customer\Interceptor->___callParent('save', Array)
#6 /var/www/html/vendor/magento/framework/App/Cache/FlushCacheByTags.php(69): Magento\Customer\Model\ResourceModel\Customer\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Customer\Model\Customer\Interceptor))
#7 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Cache\FlushCacheByTags->aroundSave(Object(Magento\Customer\Model\ResourceModel\Customer\Interceptor), Object(Closure), Object(Magento\Customer\Model\Customer\Interceptor))
#8 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\ResourceModel\Customer\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Customer\Model\Customer\Interceptor))
#9 /var/www/html/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(86): Magento\Customer\Model\ResourceModel\Customer\Interceptor->___callPlugins('save', Array, Array)
#10 /var/www/html/vendor/magento/framework/Model/AbstractModel.php(655): Magento\Customer\Model\ResourceModel\Customer\Interceptor->save(Object(Magento\Customer\Model\Customer\Interceptor))
#11 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Model\AbstractModel->save()
#12 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\Customer\Interceptor->___callParent('save', Array)
#13 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\Customer\Interceptor->Magento\Framework\Interception\{closure}()
#14 /var/www/html/generated/code/Magento/Customer/Model/Customer/Interceptor.php(779): Magento\Customer\Model\Customer\Interceptor->___callPlugins('save', Array, Array)
#15 /var/www/html/vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php(255): Magento\Customer\Model\Customer\Interceptor->save()
#16 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Model\ResourceModel\CustomerRepository->save(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...')
#17 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callParent('save', Array)
#18 /var/www/html/vendor/magento/module-customer/Model/Plugin/CustomerRepository/TransactionWrapper.php(44): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...')
#19 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Customer\Model\Plugin\CustomerRepository\TransactionWrapper->aroundSave(Object(Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor), Object(Closure), Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...')
#20 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...')
#21 /var/www/html/generated/code/Magento/Customer/Model/ResourceModel/CustomerRepository/Interceptor.php(23): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callPlugins('save', Array, Array)
#22 /var/www/html/vendor/magento/module-customer/Model/AccountManagement.php(906): Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->save(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...')
#23 /var/www/html/generated/code/Magento/Customer/Model/AccountManagement/Interceptor.php(104): Magento\Customer\Model\AccountManagement->createAccountWithPasswordHash(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...', '')
#24 /var/www/html/vendor/magento/module-customer/Model/AccountManagement.php(853): Magento\Customer\Model\AccountManagement\Interceptor->createAccountWithPasswordHash(Object(Magento\Customer\Model\Data\Customer), '42b9d9a8cf1e0e3...', '')
#25 /var/www/html/generated/code/Magento/Customer/Model/AccountManagement/Interceptor.php(95): Magento\Customer\Model\AccountManagement->createAccount(Object(Magento\Customer\Model\Data\Customer), 'HarryP0ter', '')
#26 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Command/Customer/CreateCommand.php(190): Magento\Customer\Model\AccountManagement\Interceptor->createAccount(Object(Magento\Customer\Model\Data\Customer), 'HarryP0ter')
#27 [internal function]: N98\Magento\Command\Customer\CreateCommand->createCustomer(Object(Magento\Customer\Model\Customer\Interceptor), 'HarryP0ter')
#28 /var/www/html/vendor/magento/framework/App/State.php(187): call_user_func_array(Array, Array)
#29 /var/www/html/generated/code/Magento/Framework/App/State/Interceptor.php(68): Magento\Framework\App\State->emulateAreaCode('frontend', Array, Array)
#30 /var/www/html/generated/code/Magento/Framework/App/State/Proxy.php(135): Magento\Framework\App\State\Interceptor->emulateAreaCode('frontend', Array, Array)
#31 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Command/Customer/CreateCommand.php(138): Magento\Framework\App\State\Proxy->emulateAreaCode('frontend', Array, Array)
#32 /var/www/html/vendor/symfony/console/Command/Command.php(255): N98\Magento\Command\Customer\CreateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#33 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Command/AbstractMagentoCommand.php(363): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#34 phar:///var/www/html/bin/n98-magerun2.phar/vendor/symfony/console/Application.php(1027): N98\Magento\Command\AbstractMagentoCommand->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35 phar:///var/www/html/bin/n98-magerun2.phar/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(N98\Magento\Command\Customer\CreateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Application.php(226): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 phar:///var/www/html/bin/n98-magerun2.phar/vendor/symfony/console/Application.php(149): N98\Magento\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38 phar:///var/www/html/bin/n98-magerun2.phar/src/N98/Magento/Application.php(329): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#39 /var/www/html/bin/n98-magerun2.phar(8): N98\Magento\Application->run()
#40 {main} [] []
Area code is not set

It seems not very helpful. If it works on a fresh install, then I will try to investigate on my side ! I'll keep you posted

cmuench commented 3 years ago

I tested in developer mode. Maybe it's only corrupt in production mode?

jg-development commented 3 years ago

I have the same problem, but with an other command. With the plain magento console command it works like a charm, but with n98magerun I get the same exception "area code not set". bin/magento ok:urlrewrites:regenerate --entity-type=category => works

bin/n98magerun2 ok:urlrewrites:regenerate --entity-type=category => does not work

  [Magento\Framework\Exception\LocalizedException]  
  Area code is not set                              

Exception trace:
  at /application/vendor/magento/framework/App/State.php:153
 Magento\Framework\App\State->getAreaCode() at /application/vendor/magento/module-theme/Model/Theme.php:272
 Magento\Theme\Model\Theme->getArea() at /application/vendor/magento/framework/View/File/Collector/Base.php:68
 Magento\Framework\View\File\Collector\Base->getFiles() at /application/vendor/magento/framework/View/File/Collector/Decorator/ModuleOutput.php:59
 Magento\Framework\View\File\Collector\Decorator\ModuleOutput->getFiles() at /application/vendor/magento/framework/View/File/Collector/Decorator/ModuleDependency.php:63
 Magento\Framework\View\File\Collector\Decorator\ModuleDependency->getFiles() at /application/vendor/magento/framework/View/Layout/File/Collector/Aggregated.php:88
 Magento\Framework\View\Layout\File\Collector\Aggregated->getFiles() at /application/vendor/magento/framework/View/Element/UiComponent/Config/FileCollector/AggregatedFileCollector.php:76
 Magento\Framework\View\Element\UiComponent\Config\FileCollector\AggregatedFileCollector->collectFiles() at /application/vendor/magento/module-ui/Config/Reader/FileResolver.php:43
 Magento\Ui\Config\Reader\FileResolver->get() at /application/vendor/magento/module-ui/Config/Reader/Definition.php:28
 Magento\Ui\Config\Reader\Definition->read() at /application/vendor/magento/module-ui/Config/Reader/Definition/Data.php:89
 Magento\Ui\Config\Reader\Definition\Data->initData() at /application/vendor/magento/module-ui/Config/Reader/Definition/Data.php:75
 Magento\Ui\Config\Reader\Definition\Data->__construct() at /application/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:108
 Magento\Framework\ObjectManager\Factory\Compiled->create() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:150
 Magento\Framework\ObjectManager\Factory\Compiled->get() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:79
 Magento\Framework\ObjectManager\Factory\Compiled->create() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:150
 Magento\Framework\ObjectManager\Factory\Compiled->get() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:79
 Magento\Framework\ObjectManager\Factory\Compiled->create() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:150
 Magento\Framework\ObjectManager\Factory\Compiled->get() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:125
 Magento\Framework\ObjectManager\Factory\Compiled->parseArray() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:86
 Magento\Framework\ObjectManager\Factory\Compiled->create() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:150
 Magento\Framework\ObjectManager\Factory\Compiled->get() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:79
 Magento\Framework\ObjectManager\Factory\Compiled->create() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:150
 Magento\Framework\ObjectManager\Factory\Compiled->get() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:79
 Magento\Framework\ObjectManager\Factory\Compiled->create() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:150
 Magento\Framework\ObjectManager\Factory\Compiled->get() at /application/vendor/magento/framework/ObjectManager/Factory/Compiled.php:79
 Magento\Framework\ObjectManager\Factory\Compiled->create() at /application/vendor/magento/framework/ObjectManager/ObjectManager.php:56
 Magento\Framework\ObjectManager\ObjectManager->create() at /application/generated/code/Smile/ElasticsuiteCatalogRule/Model/Rule/Condition/CombineFactory.php:43
 Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\CombineFactory->create() at /application/vendor/smile/elasticsuite/src/module-elasticsuite-catalog-rule/Model/Rule.php:73
 Smile\ElasticsuiteCatalogRule\Model\Rule->getConditionsInstance() at /application/vendor/magento/module-rule/Model/AbstractModel.php:272
 Magento\Rule\Model\AbstractModel->_resetConditions() at /application/vendor/magento/module-rule/Model/AbstractModel.php:207
 Magento\Rule\Model\AbstractModel->getConditions() at /application/vendor/smile/elasticsuite/src/module-elasticsuite-catalog-rule/Model/Rule.php:107
 Smile\ElasticsuiteCatalogRule\Model\Rule->getConditions() at /application/vendor/smile/elasticsuite/src/module-elasticsuite-virtual-category/Model/Category/Attribute/VirtualRule/ReadHandler.php:75
 Smile\ElasticsuiteVirtualCategory\Model\Category\Attribute\VirtualRule\ReadHandler->execute() at /application/vendor/magento/framework/EntityManager/Operation/Read/ReadExtensions.php:48
 Magento\Framework\EntityManager\Operation\Read\ReadExtensions->execute() at /application/vendor/magento/framework/EntityManager/Operation/Read.php:112
 Magento\Framework\EntityManager\Operation\Read->execute() at /application/vendor/magento/framework/EntityManager/EntityManager.php:70
 Magento\Framework\EntityManager\EntityManager->load() at /application/vendor/magento/module-catalog/Model/ResourceModel/Category.php:1092
 Magento\Catalog\Model\ResourceModel\Category->load() at /application/vendor/magento/framework/Model/AbstractModel.php:540
 Magento\Framework\Model\AbstractModel->load() at /application/vendor/magento/module-catalog/Model/CategoryRepository.php:157
 Magento\Catalog\Model\CategoryRepository->get() at /application/vendor/magento/module-catalog-url-rewrite/Model/CategoryUrlRewriteGenerator.php:171
 Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator->updateCategoryUrlForStore() at /application/vendor/magento/module-catalog-url-rewrite/Model/CategoryUrlRewriteGenerator.php:137
 Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator->generateForGlobalScope() at /application/vendor/magento/module-catalog-url-rewrite/Model/CategoryUrlRewriteGenerator.php:110
 Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator->generate() at /application/generated/code/Magento/CatalogUrlRewrite/Model/CategoryUrlRewriteGenerator/Interceptor.php:23
 Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator\Interceptor->generate() at /application/vendor/olegkoval/magento2-regenerate-url-rewrites/Model/RegenerateCategoryRewrites.php:221
 OlegKoval\RegenerateUrlRewrites\Model\RegenerateCategoryRewrites->categoryProcess() at /application/vendor/olegkoval/magento2-regenerate-url-rewrites/Model/RegenerateCategoryRewrites.php:185
 OlegKoval\RegenerateUrlRewrites\Model\RegenerateCategoryRewrites->regenerateCategoriesRangeUrlRewrites() at /application/vendor/olegkoval/magento2-regenerate-url-rewrites/Model/RegenerateCategoryRewrites.php:146
 OlegKoval\RegenerateUrlRewrites\Model\RegenerateCategoryRewrites->regenerateAllCategoriesUrlRewrites() at /application/vendor/olegkoval/magento2-regenerate-url-rewrites/Model/RegenerateCategoryRewrites.php:134
 OlegKoval\RegenerateUrlRewrites\Model\RegenerateCategoryRewrites->regenerate() at /application/vendor/olegkoval/magento2-regenerate-url-rewrites/Console/Command/RegenerateUrlRewrites.php:155
 OlegKoval\RegenerateUrlRewrites\Console\Command\RegenerateUrlRewrites->execute() at /application/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /application/vendor/magento/framework/Interception/Interceptor.php:58
 OlegKoval\RegenerateUrlRewrites\Console\Command\RegenerateUrlRewrites\Interceptor->___callParent() at /application/vendor/magento/framework/Interception/Interceptor.php:138
 OlegKoval\RegenerateUrlRewrites\Console\Command\RegenerateUrlRewrites\Interceptor->Magento\Framework\Interception\{closure}() at /application/vendor/magento/framework/Interception/Interceptor.php:153
 OlegKoval\RegenerateUrlRewrites\Console\Command\RegenerateUrlRewrites\Interceptor->___callPlugins() at /application/generated/code/OlegKoval/RegenerateUrlRewrites/Console/Command/RegenerateUrlRewrites/Interceptor.php:23
 OlegKoval\RegenerateUrlRewrites\Console\Command\RegenerateUrlRewrites\Interceptor->run() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Application.php:1027
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Application.php:226
 N98\Magento\Application->doRun() at phar:///usr/local/bin/n98-magerun2.phar/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/n98-magerun2.phar/src/N98/Magento/Application.php:329
 N98\Magento\Application->run() at /usr/local/bin/n98-magerun2.phar:8

Magento 2.4.1 PHP 7.4 MultiStore

cmuench commented 2 years ago

Just tested in v5.1.0. Seems to be fixed.

image