Hi everyone,
Your software
My PHP version is : 7.2.33
My MySQL version is (delete as applicable): MySQL version 5.7.12
Updating/Installing Errors
I am (delete as applicable): Updating
Upgrading via (delete as applicable) : Command Line
These errors are showing in the installer :
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:
The service “mautic.campaign.subscriber” has a dependency on a non-existent
service “mautic.core.service.flashbag”.
These errors are showing in the Mautic log :
mautic.WARNING: Command mautic:update:apply
exited with status code 1
Your problem
My problem is :
I just tried to update Mautic 3.0.2 to 3.1.0
i executed php bin/console mautic:update:apply , it arrived to step 5 and asked me to execute php bin/console mautic:update:apply --finish
but it fails plus i can’t use any console command
Try clearing the cache yourself, and give it a try again.
i still have the same error :
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:
The service “mautic.campaign.subscriber” has a dependency on a non-existent
service “mautic.core.service.flashbag”.
How are you clearing the cache?
i went to cache directory and did rm * since i can’t use php bin/console c:c
Hmm! Do this instead:
sudo -u username php /path/to/mautic/bin/console cache:clear
Change the username to the mautic directory user, and the /path/to/mautic to your mautic directory.
I still have the same error, i think the console is broken,
if i just do php bin/console, i get the same error…
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:
The service “mautic.campaign.subscriber” has a dependency on a non-existent
service “mautic.core.service.flashbag”.
If that is so, then you might want to update it manually. Steps are here https://docs.mautic.org/en/troubleshooting/update-failed
Okay thank you, i will try to update it manually