New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
M3: Refactor Deprecations - MauticFocusBundle #8089
M3: Refactor Deprecations - MauticFocusBundle #8089
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not working
When I try to go to Channels > Focus, I directly have this issue
[2019-11-04 15:39:53] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "setStandardParameters" of class "MauticPlugin\MauticFocusBundle\Controller\FocusController"." at /var/app/current/code/pulls/8089/plugins/MauticFocusBundle/Controller/FocusController.php line 29 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedMethodException(code: 0): Attempted to call an undefined method named \"setStandardParameters\" of class \"MauticPlugin\\MauticFocusBundle\\Controller\\FocusController\". at /var/app/current/code/pulls/8089/plugins/MauticFocusBundle/Controller/FocusController.php:29)
[stacktrace]
#0 /var/app/current/code/pulls/8089/vendor/symfony/http-kernel/Controller/ControllerResolver.php(187): MauticPlugin\\MauticFocusBundle\\Controller\\FocusController->__construct()
#1 /var/app/current/code/pulls/8089/vendor/symfony/framework-bundle/Controller/ControllerResolver.php(76): Symfony\\Component\\HttpKernel\\Controller\\ControllerResolver->instantiateController('MauticPlugin\\\\Ma...')
#2 /var/app/current/code/pulls/8089/vendor/symfony/http-kernel/Controller/ControllerResolver.php(175): Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerResolver->instantiateController('MauticPlugin\\\\Ma...')
#3 /var/app/current/code/pulls/8089/vendor/symfony/framework-bundle/Controller/ControllerResolver.php(64): Symfony\\Component\\HttpKernel\\Controller\\ControllerResolver->createController('MauticPlugin\\\\Ma...')
#4 /var/app/current/code/pulls/8089/vendor/symfony/http-kernel/Controller/ControllerResolver.php(88): Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerResolver->createController('MauticPlugin\\\\Ma...')
#5 /var/app/current/code/pulls/8089/vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php(38): Symfony\\Component\\HttpKernel\\Controller\\ControllerResolver->getController(Object(Symfony\\Component\\HttpFoundation\\Request))
#6 /var/app/current/code/pulls/8089/vendor/symfony/http-kernel/HttpKernel.php(123): Symfony\\Component\\HttpKernel\\Controller\\TraceableControllerResolver->getController(Object(Symfony\\Component\\HttpFoundation\\Request))
#7 /var/app/current/code/pulls/8089/vendor/symfony/http-kernel/HttpKernel.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)
#8 /var/app/current/code/pulls/8089/vendor/symfony/http-kernel/DependencyInjection/ContainerAwareHttpKernel.php(67): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#9 /var/app/current/code/pulls/8089/vendor/symfony/http-kernel/Kernel.php(183): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#10 /var/app/current/code/pulls/8089/app/AppKernel.php(141): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#11 /var/app/current/code/pulls/8089/app/middlewares/CORSMiddleware.php(93): AppKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#12 /var/app/current/code/pulls/8089/app/middlewares/CatchExceptionMiddleware.php(45): Mautic\\Middleware\\CORSMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#13 /var/app/current/code/pulls/8089/app/middlewares/Dev/IpRestrictMiddleware.php(55): Mautic\\Middleware\\CatchExceptionMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#14 /var/app/current/code/pulls/8089/app/middlewares/VersionCheckMiddleware.php(57): Mautic\\Middleware\\Dev\\IpRestrictMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#15 /var/app/current/code/pulls/8089/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Mautic\\Middleware\\VersionCheckMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#16 /var/app/current/code/pulls/8089/vendor/stack/run/src/Stack/run.php(13): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))
#17 /var/app/current/code/pulls/8089/index_dev.php(33): Stack\
un(Object(Stack\\StackedHttpKernel))
#18 /var/app/current/code/pulls/8089/index.php(6): require_once('/var/app/curren...')
#19 {main}
"}
@npracht can you re-test it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@florentpetitjean Did you put script on your local page? |
@kuzmany I changed the goal branch to m2-to-m3 as that's where we test the M3 changes. Could you resolve the conflicts? |
@kuzmany will you be able to finish this in a couple of days? We want to start testing on the 3.x branch which runs on Symfony 3.4 but all bundles must be refactored out of the deprecated code first. If not, we can take over. Just tell us so we don't duplicate the work. |
@escopecz please review now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed an issue with the choice types. Clicked through the focus forms and all seem to work as before 👍
Thanks Zdeno!
Please be sure you are submitting this against the staging branch.
Description:
Steps to test this PR: