CMB2 / CMB2-Post-Search-field

Custom field for CMB2 which adds a post-search dialog for searching/attaching other post IDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not Working In Wordpress debug mode

hyyan opened this issue · comments

the popup fails to retrieve posts when wp debug mode is enabled

here the error :

`
[11-Jul-2015 17:40:25 UTC] PHP Notice: Undefined index: serafa-client in C:\wamp\www\subdomains\serafa\wp-admin\includes\ajax-actions.php on line 1698

[11-Jul-2015 17:40:25 UTC] PHP Stack trace:

[11-Jul-2015 17:40:25 UTC] PHP 1. {main}() C:\wamp\www\subdomains\serafa\wp-admin\admin-ajax.php:0

[11-Jul-2015 17:40:25 UTC] PHP 2. do_action() C:\wamp\www\subdomains\serafa\wp-admin\admin-ajax.php:86

[11-Jul-2015 17:40:25 UTC] PHP 3. call_user_func_array() C:\wamp\www\subdomains\serafa\wp-includes\plugin.php:496

[11-Jul-2015 17:40:25 UTC] PHP 4. wp_ajax_find_posts() C:\wamp\www\subdomains\serafa\wp-includes\plugin.php:496

[11-Jul-2015 17:40:25 UTC] PHP Notice: Trying to get property of non-object in C:\wamp\www\subdomains\serafa\wp-admin\includes\ajax-actions.php on line 1698

[11-Jul-2015 17:40:25 UTC] PHP Stack trace:

[11-Jul-2015 17:40:25 UTC] PHP 1. {main}() C:\wamp\www\subdomains\serafa\wp-admin\admin-ajax.php:0

[11-Jul-2015 17:40:25 UTC] PHP 2. do_action() C:\wamp\www\subdomains\serafa\wp-admin\admin-ajax.php:86

[11-Jul-2015 17:40:25 UTC] PHP 3. call_user_func_array() C:\wamp\www\subdomains\serafa\wp-includes\plugin.php:496

[11-Jul-2015 17:40:25 UTC] PHP 4. wp_ajax_find_posts() C:\wamp\www\subdomains\serafa\wp-includes\plugin.php:496

[11-Jul-2015 17:40:25 UTC] PHP Notice: Trying to get property of non-object in C:\wamp\www\subdomains\serafa\wp-admin\includes\ajax-actions.php on line 1698

[11-Jul-2015 17:40:25 UTC] PHP Stack trace:

[11-Jul-2015 17:40:25 UTC] PHP 1. {main}() C:\wamp\www\subdomains\serafa\wp-admin\admin-ajax.php:0

[11-Jul-2015 17:40:25 UTC] PHP 2. do_action() C:\wamp\www\subdomains\serafa\wp-admin\admin-ajax.php:86

[11-Jul-2015 17:40:25 UTC] PHP 3. call_user_func_array() C:\wamp\www\subdomains\serafa\wp-includes\plugin.php:496

[11-Jul-2015 17:40:25 UTC] PHP 4. wp_ajax_find_posts() C:\wamp\www\subdomains\serafa\wp-includes\plugin.php:496

`

This is a conflict/bug in another plugin or your theme. If you deactivate other plugins (besides this and CMB2), does the problem go away? If so, it's s a conflict with a plugin. If not, try using a default theme and see if the issue goes away.

I've got WP debug enabled and I can confirm it works. You'll probably have to check for other plugins to identify the conflict's origin.

It's been almost a year. Closing.