enguerr/MauticBeefreeBundle

Class "Mautic\CoreBundle\EventListener\CommonSubscriber" not found

Opened this issue · 15 comments

grgfo commented

When install in Mautic 3, I have this error.

In ClassExistenceResource.php line 181:

Class "Mautic\CoreBundle\EventListener\CommonSubscriber" not found while lo
ading "MauticPlugin\MauticBeefreeBundle\EventListener\EventSubscriber".

Not tested yet with mautic 3 sry

Hello,
Is there a prevision when this great plugin will be tested with Mautic 3?

Regards,

I have the same problem here. Can not install at Mautic 3. It will be wonderful if it can.

Mautic 3 removed CommonSubscriber. See mautic/mautic#8094
I think the code needs to be updated to support Mautic 3.

Thank you @moerazem for your response.
I tried to change the CommonSubscriber to EventSubscriberInterface and successfully install the plugin to Mautic.
But when I tried to run the Mautic it returns a 500 error.
I deleted the plugin, clear the cache, and the Mautic run again.
The plugin still not compatible even we change the CommonSubscriber.

Any news on Mautic 3 compatibility?

+1 on making it Mautic 3 compatible. Not a dev, but let me know how I can help test things :)

Anyone found a solution for this so far, I just explore this repository and wanted to check it out but getting the same error I thought to report the issue but it's already reported.

I don't find any solution for this. After I've updated to Mautic 3.3.0 the new LP and Email template come with GrapeJS. It's awesome and easy to use.

Bumping this up to see if there is any chance of movement on this?

for those that still getting error, follow steps below.
go to mautic directory:

cd plugins
wget https://github.com/TheDMSGroup/mautic-extended-field/archive/refs/tags/3.0.0.zip
unzip 3.0.0.zip
mv MauticExtendedFieldBundle ../../plugin_bkp_MauticExtendedFieldBundle
mv mautic-extended-field-3.0.0 MauticExtendedFieldBundle


check what was made by @heathdutton
TheDMSGroup/mautic-extended-field@53e9c49

@marcocianci Still facing the same issue after following the steps mentioned above.
Mautic version is 3.2.2
Any other work around for this issue?

@marcocianci Still facing the same issue after following the steps mentioned above. Mautic version is 3.2.2 Any other work around for this issue?

could you please post your trace error here. (if u can use "tail -f var/logs/mautic.(...).php" pointing to log file.
and what php version are you using?
I will check the version that we are using, then I reply again.
here are:
php version 7.3.31
mautic version: v3.3.4

Hi @marcocianci
When I try to clear the cache after cloning the MauticBeefreeBundle plugin I'm getting an error:
Class "Mautic\CoreBundle\EventListener\CommonSubscriber" not found while loading "MauticPlugin\MauticBeefreeBundle\EventListener\EventSubscriber".
This particular plugin is not even showing up in the plugins list even after refreshing the plugins.
There are no logs also logging for this.
I followed the steps you mentioned above but still the same issue goes..
Below are my configs:
PHP version is: v7.4.23
Mautic version: 3.2.2

Tried with another setup also with the below configs, still facing the same issue:
PHP version is: v7.3.29
Mautic version: 3.3.5

Hi @marcocianci When I try to clear the cache after cloning the MauticBeefreeBundle plugin I'm getting an error: Class "Mautic\CoreBundle\EventListener\CommonSubscriber" not found while loading "MauticPlugin\MauticBeefreeBundle\EventListener\EventSubscriber". This particular plugin is not even showing up in the plugins list even after refreshing the plugins. There are no logs also logging for this. I followed the steps you mentioned above but still the same issue goes.. Below are my configs: PHP version is: v7.4.23 Mautic version: 3.2.2

Tried with another setup also with the below configs, still facing the same issue: PHP version is: v7.3.29 Mautic version: 3.3.5


Hi @surajvantage

sorry for no solution yet, what steps are you running to upgrade your mautic?
sudo php bin/console mautic:update:find sudo php bin/console mautic:update:apply --finish sudo php bin/console cache:clear
maybe exist a reference in any php (inside plugins) file pointing to this class "CommonSubscriber", could u find this file, using this command "sudo find ./ -type f -exec grep -H "CommonSubscriber" {} ;" plz. Then post here the lines that are calling this class.

please run
php bin/console cache:clear --verbose
Then open the file "vim ./vendor/autoload.php" and look for a line that exist referer to "Mautic\CoreBundle\EventListener\CommonSubscriber", then remove if exist.

make sure that u completely remove the folder ./plugins/MauticExtendedFieldBundle (do bkp first), my bkp was here =)

I remember that the error was occurring, because in one of these files inside the plugins folder a class that no longer exists was called (the line in this file was about 2600), I try to find here, but nothing.

And was error (php 7.4) in how class was called, so keep php 7.3
https://www.php.net/manual/en/migration74.php