CMB2-Post-Search-field icon indicating copy to clipboard operation
CMB2-Post-Search-field copied to clipboard

ajax response returns undefined

Open pidgypost opened this issue 11 years ago • 1 comments

I have the latest CMB2 beta build installed through wordpress plugin directory. I uploaded your plugin through SFTP and network activated. I added your input type to my test file. The input shows up fine. I get an error when trying to search. Line 143 throws console error saying response.data is undefined. response var outputs -1

Code screenshot http://screencast.com/t/9gSp0wljwMm Replicate: http://screencast.com/t/5eCp9ZsB

pidgypost avatar Oct 15 '14 21:10 pidgypost

I am getting the exact same error and my steps are just like pidgypost's.

My code is like this:

$custom_page->add_field( array( 'name' => __( 'Find an article', 'cmb2' ), 'id' => $prefix . '_articles', 'type' => 'post_search_text', 'show_option_none' => false ) );

I am thinking there should be some options passed, but I am not sure in what format.

steacha avatar Jun 18 '15 16:06 steacha