How can I fix Fatal error after installing?

Modified on Mon, 13 Mar 2023 at 05:41 PM

Q: After installing Mageplaza’s extension I’m encountering this error Fatal error: Uncaught TypeError: Argument 1 passed to Mageplaza\Core\Helper\AbstractData::__construct() must be an instance Could you show me a quick way to fix this?

error

A: Don’t worry, this is a common glitch that you might be faced unexpectly. Please follow this step:

  • Removing folders: var/generation/* var/di/* var/cache/*by running the following command line at Magento root folder:
    rm -rf var/generation/* var/di/* var/cache/*
    
  • Check the result.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article