sivaschenko / magento2-clean-media

Magento 2 media information and cleanup
92 stars 32 forks source link

Class Sivaschenko\CleanMedia\Model\RemoveDuplicates does not exist #13

Open 2EyeTec opened 3 years ago

2EyeTec commented 3 years ago

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

ghost commented 3 years ago

Hello,

I have same issue.

javierenciso commented 3 years ago

same here ! magento 2.3.6 EE developer mode on mac localhost

peterjaap commented 3 years ago

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?

sivaschenko commented 3 years ago

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 commented 3 years ago

@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?

anapaulafrancisco commented 3 years ago

Its work fine! Thanks!

peterjaap commented 2 years ago

@sivaschenko this can be closed now