Home Forums Attendee Mover Add-on Attendee Mover Search Functionality

Attendee Mover Search Functionality

Posted: May 7, 2019 at 5:53 am

Viewing 7 reply threads

Thomas Luke Owens

May 7, 2019 at 5:53 am

Hi, this is in relation to a closed topic HERE. The search functionality doesn’t seem to be working after adding the code snippet to show past events. No matter what I type in the search bar it displays every event, see screenshot below. We have hundreds of events so we really need this to work. Any ideas? Thanks!



  • Support Staff

May 7, 2019 at 8:12 am

Hi there,

I did some digging into this and you’re right, we’ll need to investigate this further to see what is happening.

For the time being, I’ve adjusted the code here:

That should include expired events and fix the problem whilst we dig into this further.

  • This reply was modified 5 years, 2 months ago by Tony.

Thomas Luke Owens

May 9, 2019 at 5:31 am

Great, that code worked!
Look forward to the result of that investigation

Thank you!

Thomas Luke Owens

May 10, 2019 at 8:48 am

I’ll have back step back on this one, after adding the code the search worked but step two in the move process broke. I get a ‘Can’t Handle this Request’ screen. I comment out the code and it works again.

Thomas Luke Owens

May 10, 2019 at 11:33 am

Specifically, this is the error that it through – retrieved from WP-Admin error log

[10-May-2019 13:14:37 UTC] PHP Fatal error: Uncaught EventEspresso\core\exceptions\InvalidFormSubmissionException: The "Select Event" form is invalid. Please correct the following errors and resubmit: <br /> EE_Validation_Error in /home/npdestr/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/strategies/validation/EE_Model_Matching_Query_Validation_Strategy.strategy.php:63
Stack trace:
#0 /home/npdestr/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/inputs/EE_Form_Input_Base.input.php(597): EE_Model_Matching_Query_Validation_Strategy->validate(2489)
#1 /home/npdestr/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/base/EE_Form_Section_Proper.form.php(960): EE_Form_Input_Base->_validate()
#2 /home/npdestr/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/base/EE_Form_Section_Proper.form.php(314): EE_Form_Section_Proper->_validate()
#3 /home/npdestr/public_html/wp-content/plugins/event-espresso-core-reg/cor in /home/npdestr/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/form_handlers/FormHandler.php on line 624


  • Support Staff

May 13, 2019 at 5:37 am

`Hmm, yeah ok, I see.

For some reason, I didn’t get that when testing the code snippet locally, I do on another site though.

So, backtrack, set the code back to return an empty array again (return array();)

Now patch the attendee mover add-on with a temporary fix…. note that we don’t usually recommend you modify core files, however, either way, we are going to include a fix for this in the next version of the attendee mover anyway so it won’t matter.

Open this file: \eea-attendee-mover\scripts\attendee-mover-event-selector.js

On line 29 should be:

if ( typeof new_params.where === 'undefined' ) {

Change that to:

if( typeof new_params.where === 'undefined' || new_params.where.length === 0 ) {

Now retest, note that you may need to hard refresh the attendee mover page to force your browser to clear any cached js files.

Again, that should fix it and as it only changes how an empty ‘where’ array is handled it shouldn’t cause issues, it may or may not be the fix we include the add-on.

Thomas Luke Owens

May 13, 2019 at 5:58 am

Done and it works once again!


  • Support Staff

May 13, 2019 at 7:09 am


I’m glad that worked for you.

Viewing 7 reply threads

The support post ‘Attendee Mover Search Functionality’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso