The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Issue with multisite
Tagged: multisite
- This topic has 12 replies, 2 voices, and was last updated 6 years, 9 months ago by patrice coacolo.
-
patrice coacolo(Private) December 5, 2017 at 11:36 am #145699
Hi,
is there a specific configuration for using your plugin in multisite?
I’ve created a custom post type that is used on all the sites but with differents posts in each sites.
The plugin works fine with the first site ( blog_id=1) but with the others site the search filter give the results from the custom post site n° 1.How can I have the plugin filter giving results from his own site.
Sorry if i’m not really clear , i’m french
Best regardsPatrice Coaoclo
Trevor Moderator(Private) December 5, 2017 at 1:07 pm #145733Is our plugin activated at Network level or at site level?
If you look at the database, does it appear to have one set of cache tables, or one set per site it is activated on?
patrice coacolo(Private) December 5, 2017 at 1:29 pm #145741It’s actived at Network level and there’s one set cache tables per site
When I print the $searchfilter in search-filter-pro/public/class-search-filter.php i get this
[WP_FILTER] =>
[post_updated_count:Search_Filter_Post_Cache:private] => 0
[cycle_error_amount:Search_Filter_Post_Cache:private] => 120
[cache_table_name] => solidarauto_25_search_filter_cache
[term_results_table_name] => solidarauto_25_search_filter_term_results
[table_name_options] => solidarauto_25_options
[option_name] => search-filter-cache
)but when I print $this->cache in search-filter-pro/public/includes/class-search-filter-query.php
I get this wich are params from the blog_id( 1)
[table_name] => solidarauto_search_filter_cache
[results_url] => http://solidarauto.org/nos-voitures-a-vendre/patrice coacolo(Private) December 5, 2017 at 1:42 pm #145744When I create a new Search form in a site and copy the shortcode in the page results it doesn’t work, I get a blank page. There’s only the seacrh form created in the site id= 1 that works.
When I use the shortcode from site id=1 and copy it in a page of an another site I get results but there are not the results I want obviously.Trevor Moderator(Private) December 5, 2017 at 2:21 pm #145754do you have any plugins associated with multisite, for example one that shares taxonomies or posts across sites? This is likely to be the issue.
Trevor Moderator(Private) December 5, 2017 at 2:38 pm #145760Are you able to test something for me? A simple test. Have a couple of posts in Site 1 and the other site and add some categories to them. Make a simple search, using the shortcode display results method, make two pages, one in each site, for the form and results shortcodes. Does that keep the posts in each site’s results correctly?
patrice coacolo(Private) December 5, 2017 at 2:52 pm #145764I created two new posts in a new site wich has been cloned. I created two new categories for each post. I created a new search form and a new page for the form and results and I get a blank page.
I did the same for the site 1 and all is right.The new sites are cloned with the plugin NS Cloner – Site Copier
Trevor Moderator(Private) December 5, 2017 at 2:54 pm #145768This reply has been marked as private. -
AuthorPosts
The topic ‘Issue with multisite’ is closed to new replies.