2

After changing the version from 2.4.3 to 2.4.4, I'm getting the following error when trying to execute "php bin/magento setup:upgrade" or "php bin/magento setup:di:compile":

In ClassReader.php line 34:
Class Df\Framework\Logger\Handler does not exist

enter image description here

Any idea what causes this error?

2 Answers 2

1

Looks like you are installed Mage2Pro module(s) on your site and their modules does not compatible, so you should disable/remove these modules to upgrade to magento 2.4.4

After that, run the following commands:

rm -rf vendor
composer install
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
8
  • I uninstalled that module, but the error message remains. This error message persists even after removing all third party modules.
    – Michiel
    Commented Oct 14, 2022 at 14:00
  • I've updated my answer, please give it a try.
    – Tu Van
    Commented Oct 14, 2022 at 14:04
  • Tried the commands, but still got the same error.
    – Michiel
    Commented Oct 14, 2022 at 14:43
  • Could you confirm that you are installed M2ePro modules? How do you uninstall these modules?
    – Tu Van
    Commented Oct 14, 2022 at 14:50
  • I uninstalled the M2E Pro module with the command "composer removem2epro/magento2-extension"
    – Michiel
    Commented Oct 14, 2022 at 15:26
1

Run the below command and check if you got any files;

grep -r "Df.Framework.Logger.Handler" app/
grep -r "Df.Framework.Logger.Handler" vendor/

If file found then fixed it's namespace otherwise remove var/, vendor/ and generated/ folder using rm -rf command and run below commands

composer install
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento setup:di:compile
php bin/magento cache:clean
2
  • I get no results when useing the grep commands
    – Michiel
    Commented Oct 14, 2022 at 15:26
  • Okay, so I think you need to check are your on right folder location?
    – Msquare
    Commented Oct 15, 2022 at 2:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.