magento2-clean-media icon indicating copy to clipboard operation
magento2-clean-media copied to clipboard

Class Sivaschenko\CleanMedia\Model\RemoveDuplicates does not exist

Open 2EyeTec opened this issue 4 years ago • 7 comments

I can't run setup:di:compile anymore. I get this error:

In Generator.php line 139:

Class Sivaschenko\CleanMedia\Model\RemoveDuplicates does not exist
Class Sivaschenko\CleanMedia\Command\Duplicates\Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:co
mpile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only.

the directory is writeable

2EyeTec avatar Jun 20 '21 11:06 2EyeTec

Hello,

I have same issue.

ghost avatar Jun 20 '21 12:06 ghost

same here ! magento 2.3.6 EE developer mode on mac localhost

javierenciso avatar Jun 20 '21 23:06 javierenciso

You're right, it appears @sivaschenko refactored my PR but forgot to add the RemoveDuplicates file after extracting the logic. @sivaschenko do you still have that file somewhere?

peterjaap avatar Jun 24 '21 09:06 peterjaap

You are right @peterjaap I forgot to remove the extra Duplicates command (as the duplicates functionality is included in the CleanMedia command) PR to handle this https://github.com/sivaschenko/magento2-clean-media/pull/14

sivaschenko avatar Jul 04 '21 18:07 sivaschenko

@2EyeTec @achatpc @javierenciso @peterjaap thank you for your feedback. The issue was fixed in version 1.1.1.

https://github.com/sivaschenko/magento2-clean-media/releases/tag/1.1.1

Can you please try it?

sivaschenko avatar Jul 04 '21 18:07 sivaschenko

Its work fine! Thanks!

anapaulafrancisco avatar Jul 06 '21 14:07 anapaulafrancisco

@sivaschenko this can be closed now

peterjaap avatar Oct 27 '22 19:10 peterjaap