Jump to content

construct() must be an instance of PrestaShopBundle\Translation\TranslatorComponent


Recommended Posts

Hello everyone, I recently downloaded a theme and encountered an error in the blog component where it returned an error related to translation [Symfony\Component\Debug\Exception\FatalThrowableError 0]. Everything else in the theme seems to be ok. If anyone knows how to connect the theme to Prestashop's translator component or knows if it may be be related to some other issue, any advice would be greatly appreciated. I attached a picture of the full error below. Thanks!!

Screenshot 2021-03-17 at 02.29.45.png

Link to comment
Share on other sites

  • 3 years later...

Hello,

This could be caused by a missing use statement relating to the translator compoment in the JXBlogCommentRepository file.

Meaning open this file JXBlogCommentRepository and check if there are missing use statements just above the class name.

Hope this helps!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...