magefan / module-google-tag-manager

Get Magento 2 Google Tag Manager to set up eCommerce tracking easily and track important eCommerce events in your Magento 2 store.
https://magefan.com/magento-2-google-tag-manager
Other
30 stars 9 forks source link

Class Magefan\Community\View\Helper\SecureHtmlRenderer not found #39

Closed KevinOxwork closed 4 months ago

KevinOxwork commented 5 months ago

Hi,

I just updated your module and got this error : [main.CRITICAL: Error: Class "Magefan\Community\View\Helper\SecureHtmlRenderer" not found in /var/www/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121]

Do you have an idea why ?

Regards Kévin

magefan commented 5 months ago

Please make sure that you are using the latest version of https://github.com/magefan/module-community

KevinOxwork commented 5 months ago

Thank you for your reply.

I updated the last version but still have issue.

First, i had updated Magefan_GoogleTagManager downloaded from my account on your website and the zip file contains the Magefan_Community v2.1.26

magefan commented 4 months ago

@KevinOxwork , just a note that this issues can be related https://github.com/magefan/module-community/issues/31

KevinOxwork commented 4 months ago

Hi @magefan Thank you for your help it was the origin of the problem your right.

But i'm asking myself a question. The Helper Directory should not be in the community repository ? Just like you do with Magefan_Blog for example ?

image

Because the view directory is suppose to contains frontend/admin files.

I try to put the Helper directory at the same level of Controller or Block directories and changing the files that ask SecureHtmlRenderer Class and it worked for me.

magefan commented 4 months ago

@KevinOxwork , could you please use this fix https://github.com/magefan/module-community/pull/32/files for the community extension? Let us know if it works well for you.

KevinOxwork commented 4 months ago

@magefan, i just test it and it works fine for me :) Thank you for your help and your time.