Submitting Test Page Unexpectedly Schedules Mailing

  • strict warning: Non-static method view::load() should not be called statically in /home/tomkaname/jan.tomka.name/sites/all/modules/views/views.module on line 906.
  • strict warning: Declaration of views_handler_field_comment::init() should be compatible with views_handler_field::init(&$view, $options) in /home/tomkaname/jan.tomka.name/sites/all/modules/views/modules/comment/views_handler_field_comment.inc on line 49.
  • strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /home/tomkaname/jan.tomka.name/sites/all/modules/views/handlers/views_handler_filter.inc on line 607.
  • strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /home/tomkaname/jan.tomka.name/sites/all/modules/views/handlers/views_handler_filter.inc on line 607.
  • strict warning: Declaration of views_handler_filter_node_status::operator_form() should be compatible with views_handler_filter::operator_form(&$form, &$form_state) in /home/tomkaname/jan.tomka.name/sites/all/modules/views/modules/node/views_handler_filter_node_status.inc on line 13.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/tomkaname/jan.tomka.name/sites/all/modules/views/plugins/views_plugin_row.inc on line 134.
  • strict warning: Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/tomkaname/jan.tomka.name/sites/all/modules/views/plugins/views_plugin_row.inc on line 134.
  • strict warning: Non-static method view::load() should not be called statically in /home/tomkaname/jan.tomka.name/sites/all/modules/views/views.module on line 906.
  • strict warning: Declaration of views_handler_argument::init() should be compatible with views_handler::init(&$view, $options) in /home/tomkaname/jan.tomka.name/sites/all/modules/views/handlers/views_handler_argument.inc on line 744.
  • strict warning: Declaration of views_handler_filter_boolean_operator::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/tomkaname/jan.tomka.name/sites/all/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 159.
  • strict warning: Non-static method view::load() should not be called statically in /home/tomkaname/jan.tomka.name/sites/all/modules/views/views.module on line 906.
  • strict warning: Non-static method view::load() should not be called statically in /home/tomkaname/jan.tomka.name/sites/all/modules/views/views.module on line 906.
  • strict warning: Declaration of calendar_plugin_display_page::options_submit() should be compatible with views_plugin_display_page::options_submit(&$form, &$form_state) in /home/tomkaname/jan.tomka.name/sites/all/modules/calendar/includes/calendar_plugin_display_page.inc on line 297.
  • strict warning: Declaration of calendar_plugin_display_page::options() should be compatible with views_object::options() in /home/tomkaname/jan.tomka.name/sites/all/modules/calendar/includes/calendar_plugin_display_page.inc on line 297.
  • strict warning: Declaration of calendar_plugin_display_block::options() should be compatible with views_object::options() in /home/tomkaname/jan.tomka.name/sites/all/modules/calendar/includes/calendar_plugin_display_block.inc on line 78.
  • strict warning: Declaration of calendar_plugin_display_attachment::options_submit() should be compatible with views_plugin_display_attachment::options_submit(&$form, &$form_state) in /home/tomkaname/jan.tomka.name/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc on line 242.
  • strict warning: Declaration of calendar_plugin_display_attachment::options() should be compatible with views_object::options() in /home/tomkaname/jan.tomka.name/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc on line 242.
  • strict warning: Declaration of date_api_argument_handler::init() should be compatible with views_handler_argument::init(&$view, &$options) in /home/tomkaname/jan.tomka.name/sites/all/modules/date/includes/date_api_argument_handler.inc on line 398.
  • strict warning: Declaration of calendar_view_plugin_style::options() should be compatible with views_object::options() in /home/tomkaname/jan.tomka.name/sites/all/modules/calendar/includes/calendar_view_plugin_style.inc on line 173.

After a year's use without an issue, all of a sudden, CiviMail started behaving odd. When creating a new mailing, whenever I submit the Test page, the mailing gets unexpectedly and prematurely scheduled for an immediate delivery. This is true for both the "Send test" and "Next>>" buttons on that page. I haven't tried the "Save & Continue Later" one.

It baffled me I was unable to find any, even remotely related issue in the CiviCRM's forums. Then, while gathering information for a bug report, I managed to work out that the Firefox's Auto Pager add-on was responsible for this behavior.

The Auto Pager add-on is a pretty cool one. Whenever viewing a "pager-ed" page, like Google results, or a Drupal view with pager enabled, it automagically loads content of the next page right at the bottom of the current one. Thus, it saves you a heap of clicks and time spent waiting for all those next pages.

The Auto Pager tries hard to be smart about figuring out how to get to the content of that next page. Most of time this is pretty easy as the pager interface has a fairly common format and more often than not it is just a matter of following the Next link.

CiviCRM Send Mail

However, in cases like mine, Autopager has hit the wall and goes wild submitting forms as it sees fit. Not cool. It easily gets confused by the "Next>>" buttons in the CiviMail interface and emulates clicks on them in order to access content of next page. And since the Test page is previous to the Schedule Mailing one, Autopager even manages to click the Submit button, most probably because of word next in the button element's id and name attributes.

I've learned the hard way, having had to cancel an unfinished mailing twice, unintentionally sending it to the first ten recepients on the list. To prevent this behaviour, make sure to disable Auto Pager on your site, or at least disable its Smart Paging feature.

Comments

Paiguebeize <a

Paiguebeize <a href=http://vikaswieier.com>xaikalitag</a> Dessstink http://usillumaror.com - iziananatt SIPHAGANNUAGO http://gussannghor.com SonStypeJen