Plugin Author
Ajay
(@ajay)
Hi, I will look into this as those are two things I haven’t changed.
Can you tell me if you’re using seamless mode or not?
Also can you try to reset the settings and apply them again.
Are you able to run query monitor to see the outputs of the search results are?
https://webberzone.com/support/knowledgebase/debugging-with-query-monitor/
Hi,
I also get error with 4.0.
Not using seamless mode.
Error on search display page:
Fatal error: Uncaught Error: Call to undefined function switch_to_blog()
in /customers/d/b/8/mysite.com/httpd.www/111111111111111/wp-content/plugins/better-search/templates/better-search-template.php on line 216
Call stack:
include()
wp-includes/template-loader.php:106
require_once()
wp-blog-header.php:19
require()
index.php:17
Query Monitor
Rolling back to 3.3.1 and it work as it should.
Plugin Author
Ajay
(@ajay)
@treetex I’ve filed this as a bug here: https://github.com/WebberZone/better-search/issues/111
I should be able to get a fix out.
Thx for your quick reply!
Plugin Author
Ajay
(@ajay)
@treetex
Weirdly I can’t duplicate this error, but I think it would help wrapping it in a function call. Are you in a position to edit the plugin file. Open template/better-search-template.php and find the line 216 above and replace it with a function_exists check like this”
if ( function_exists( 'switch_to_blog' ) ) {
switch_to_blog( $current_blog_id );
}
Plugin Author
Ajay
(@ajay)
@keeslina
I’ve been able to replicate the Banned words issue. But, I’m not able to replicate the issue on post types. To confirm, have you only include product and everything shows? Are you using WooCommerce that creates the product post type or something else? And do you have seamless mode on or off?
Plugin Author
Ajay
(@ajay)
@keeslina @treetex
I have uploaded v4.0.1 that fixes these bugs.