Incorrect parameter count in the call to native function 'FIELD' for query
-
I installed v1.5.4.9 on my WP 4.1 site.
I then deleted all the fields except email.
When I put the shortcode on my page, I got the error in the log:[31-Dec-2014 00:06:48 America/Chicago] WordPress database error Incorrect parameter count in the call to native function 'FIELD' for query SELECT f.id FROM wp_participants_database_fields f WHERE f.name IN ("email") ORDER BY FIELD("email") made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/twentyfifteen/page.php'), get_template_part, locate_template, load_template, require('/themes/twentyfifteen/content-page.php'), the_content, apply_filters('the_content'), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, wpmem_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Participants_Db::print_signup_form, Participants_Db::print_signup_class_form, PDb_Signup::print_form, PDb_Signup->__construct, PDb_Shortcode->_print_from_template, PDb_Signup->_include_template, include('/plugins/participants-database/templates/pdb-signup-default.php'), PDb_Signup->print_form_head, PDb_Shortcode->_print_form_head, PDb_Base::get_field_indices
When I submit the form, I get an error:
[31-Dec-2014 06:11:28 UTC] WordPress database error Incorrect parameter count in the call to native function 'FIELD' for query SELECT f.name FROM wp_participants_database_fields f WHERE f.id IN ("") ORDER BY FIELD("") made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, Participants_Db::init, Participants_Db::process_page_request, PDb_Base::get_shortcode_columns, PDb_Base::get_field_indices
and the email is not saved to the db.
This is on a vagrantpress VM.
- The topic ‘Incorrect parameter count in the call to native function 'FIELD' for query’ is closed to new replies.