MauticBeefreeBundle icon indicating copy to clipboard operation
MauticBeefreeBundle copied to clipboard

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

Open grgfo opened this issue 4 years ago • 15 comments

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".

grgfo avatar Jul 21 '20 09:07 grgfo

Not tested yet with mautic 3 sry

enguerr avatar Jul 23 '20 11:07 enguerr

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

Regards,

cesaroito avatar Sep 04 '20 14:09 cesaroito

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

filbertlimena avatar Oct 16 '20 11:10 filbertlimena

Mautic 3 removed CommonSubscriber. See https://github.com/mautic/mautic/issues/8094 I think the code needs to be updated to support Mautic 3.

moerazem avatar Oct 20 '20 07:10 moerazem

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.

filbertlimena avatar Oct 20 '20 09:10 filbertlimena

Any news on Mautic 3 compatibility?

RobMSBand86 avatar Nov 02 '20 11:11 RobMSBand86

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

dl-lim avatar Jan 14 '21 02:01 dl-lim

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.

Shaz3e avatar Jan 24 '21 15:01 Shaz3e

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.

cesaroito avatar Mar 17 '21 12:03 cesaroito

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

RobMSBand avatar Apr 20 '21 13:04 RobMSBand

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 https://github.com/TheDMSGroup/mautic-extended-field/commit/53e9c495282d6561c44f5b852d643417cfc82f3f

marcocianci avatar Oct 04 '21 21:10 marcocianci

@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?

surajvantage avatar Jun 02 '22 14:06 surajvantage

@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

marcocianci avatar Jun 02 '22 15:06 marcocianci

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

surajvantage avatar Jun 03 '22 04:06 surajvantage

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

marcocianci avatar Jun 03 '22 16:06 marcocianci