cancel
Showing results for 
Search instead for 
Did you mean: 

"catalog:images:resize command has no args" / "Required parameter 'theme_dir' was not passed"

"catalog:images:resize command has no args" / "Required parameter 'theme_dir' was not passed"

The docs here 

http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-images.html

clearly state "This command has no arguments or options."

 

Yet

 

E:\www\magento\www.example.com>php bin\magento catalog:images:resize
Required parameter 'theme_dir' was not passed

How can I tell it the theme_dir it seems to be asking for?

 

3 REPLIES 3

Re: "catalog:images:resize command has no args" / "Required parameter 'theme_dir' was

Running into the same issue

Re: "catalog:images:resize command has no args" / "Required parameter 'theme_dir' was

It has been answered on stack Exchange:

https://magento.stackexchange.com/questions/100011/required-parameter-theme-dir-was-not-passed

 

Also my personal experience of this error was due to a registered theme no longer existing in the file system. In other words, I made a typing mistake in the theme's registration.php file. Deleting the non-existing/phantom/ghost theme eliminated the error.

Re: "catalog:images:resize command has no args" / "Required parameter 'theme_dir' was

The cause can be removed theme but you just remove directory not data in table theme. Please find unused them in table theme and remove it.

 

You can reference here for more detail.

 

https://mrvts.wordpress.com/2018/08/21/magento-2-required-parameter-theme_dir-was-not-passed-after-m...