olegkoval / magento2-regenerate_url_rewrites

Magento 2 extension which add feature of regenerating a url rewrites of products/categories
Academic Free License v3.0
420 stars 117 forks source link

Cannot run command at all #147

Closed anatolij-p closed 3 years ago

anatolij-p commented 3 years ago

Describe the bug When you try to run command via terminal you get following error:

Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 4096 bytes) in /var/www/html/vendor/magento/framework/Serialize/Serializer/Json.php on line 37

No matter what this error always happens. Any ideas about how to solve it?

Expected behavior Command should work and not crash

To Reproduce Run command: bin/magento ok:urlrewrites:regenerate or bin/magento ok:urlrewrites:regenerate --entity-type=product --store-id=2

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Magento 2.3.5-p2 Warden box 4 Cores 6 GB RAM

anatolij-p commented 3 years ago

Solved, had some custom patch on Magento_Store module preventing the module from executing properly.