Closed Pebblo closed 2 years ago
Gives Fatal error when moving attendees to another event in master
Fatal error: Uncaught TypeError: Argument 6 passed to EventEspresso\core\libraries\form_sections\form_handlers\SequentialStepFormManager::__construct() must implement interface EventEspresso\core\services\request\RequestInterface or be null, instance of EE_Request given, called in /Applications/MAMP/htdocs/ee/wp-content/plugins/eea-attendee-mover/form/StepsManager.php on line 51 and defined in /Applications/MAMP/htdocs/ee/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/form_handlers/SequentialStepFormManager.php:103 Stack trace: #0 /Applications/MAMP/htdocs/ee/wp-content/plugins/eea-attendee-mover/form/StepsManager.php(51): EventEspresso\core\libraries\form_sections\form_handlers\SequentialStepFormManager->construct('http://localhos...', 'select_event', '', 'add_form_tags_a...', 'number_bubbles', Object(EE_Request)) #1 [internal function]: EventEspresso\AttendeeMover\form\StepsManager->construct('http://localhos...', 'select_event', '', 'add_form_tags_a...', 'number_bubbles', Object(EE_Request) in /Applications/MAMP/htdocs/ee/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/form_handlers/SequentialStepFormManager.php on line 103
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Fixed in #3572 https://prnt.sc/1x313ct
@harshadeventespresso
When reporting your findings, please provide more in-depth details of what you have tested. Right now that's almost the exact same error as the one I included in the original post (with the exception of line numbers) so we have no idea where to even start looking other than what has already been done.
For example, what branch are you on within the attendee mover add-on when you get that error? You're line numbers don't match mine so I assume you are not on master but with no details above we can only guess.
What branch are you on for EE4 core?
We'd also ask what steps you have taken during the test to get to the point of the error, in this example it's obvious as the step is literally to click the icon but with other tickets, there may be many more steps to work through a test so adding more details helps.
In short, add a lot more context than just the error, an error on its own doesn't always show what the problem is. The 1 or 2 sentences that go with the error showing what has been done helps every else troubleshoot this.
Also, you've posted this is fixed, but what is fixed specifically? There are 2 different fixes linked to this thread and right now it looks like only one has been tested (the fix in core).
With EE4 core master when using attendee mover add-on we get Fatal error as stated.
When tested with https://github.com/eventespresso/event-espresso-core/pull/3572 its fixed no more Fatal error
Spoke about this in slack a little to get some context, so I'll give an example of how providing more info here helps.
This is a better example of the above, its almost the same info but with much more context:
Tested using master branch on both EE4 core and Attendee mover add-on.
Confirmed the issue by clicking the attendee mover add-on icon which then threw this error:
Fatal error: Uncaught TypeError: Argument 6 passed to EventEspresso\core\libraries\form_sections\form_handlers\SequentialStepFormManager::__construct() must implement interface EventEspresso\core\services\request\RequestInterface or be null, instance of EE_Request given, called in /Applications/MAMP/htdocs/ee/wp-content/plugins/eea-attendee-mover/form/StepsManager.php on line 51 and defined in /Applications/MAMP/htdocs/ee/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/form_handlers/SequentialStepFormManager.php:103 Stack trace: #0 /Applications/MAMP/htdocs/ee/wp-content/plugins/eea-attendee-mover/form/StepsManager.php(51): EventEspresso\core\libraries\form_sections\form_handlers\SequentialStepFormManager->__construct('http://localhos...', 'select_event', '', 'add_form_tags_a...', 'number_bubbles', Object(EE_Request)) #1 [internal function]: EventEspresso\AttendeeMover\form\StepsManager->__construct('http://localhos...', 'select_event', '', 'add_form_tags_a...', 'number_bubbles', Object(EE_Request) in /Applications/MAMP/htdocs/ee/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/form_handlers/SequentialStepFormManager.php on line 103
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Switched EE4 core to use ease-off-request-interface
branch as per #3572
Tested moving an attendee, no error: https://prnt.sc/1x313ct
The reason this is better is we know what has been tested and how and can then double-check if anything was missed before it is merged in core without having to ask for more details if unsure.
Right now it looks like #17 has not been tested against the current version and/or master of EE4 Core (there's a change to what the add-on does, those need to be tested against what users are currently using and 'master' (what they soon will be using)).
Trying to use the attendee mover add-on with EE4 core master and I get this error:
Bug report or feature request?
Environment Data:
Version of EE core: Master
Version of this addon: Master
Steps to Reproduce (for bugs)
Just attempt to use the attendee mover add-on to move a registration.
In Event Espresso -> Registrations, click the icon on any registration: https://eventespresso.com/wiki/eea-attendee-mover/
The fatal should be thrown as soon as you click the icon.