enguerr / MauticBeefreeBundle

FreeBee.io plugin editor for mautic
17 stars 10 forks source link

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

Open grgfo opened 4 years ago

grgfo commented 4 years ago

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

enguerr commented 4 years ago

Not tested yet with mautic 3 sry

cesaroito commented 4 years ago

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

Regards,

filbertlimena commented 3 years ago

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

moerazem commented 3 years ago

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

filbertlimena commented 3 years ago

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.

RobMSBand86 commented 3 years ago

Any news on Mautic 3 compatibility?

dl-lim commented 3 years ago

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

Shaz3e commented 3 years ago

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.

cesaroito commented 3 years ago

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.

RobMSBand commented 3 years ago

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

marcocianci commented 3 years ago

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

surajvantage commented 2 years ago

@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 commented 2 years ago

@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

surajvantage commented 2 years ago

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

marcocianci commented 2 years ago

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