mattweber / solr-for-wordpress

A WordPress plugin that replaces the default WordPress search with Solr
85 stars 36 forks source link

Solr options page not being loaded #29

Open danfischer87 opened 12 years ago

danfischer87 commented 12 years ago

Hi, I installed the plugin following your directions. I had a couple deprecation warnings that I fixed related to is_super_admin() and using roles and capabilities instead of levels, but I'm still not seeing any solr for wordpress settings page.

Im still getting an error from when s4w_options_init() is called: Notice: Undefined index: method in /Library/WebServer/Documents/complex/wordpress/wp-content/plugins/solr-for-wordpress/solr-for-wordpress.php on line 933 Method is:

It appears s4w_add_pages() is never being called, which I see is what adds the options page that I need to get to.

I am using wordpress 3.2.1. Any idea what is going on? Thanks, Dan

danfischer87 commented 12 years ago

I was able to find the solr options page but I now have two problems, which are probably related.

  1. I cannot save changes on the solr options page.
  2. I cannot load posts and pages except from the default site.

When I click 'save changes' after checking 'index all sites' then everything gets unchecked except for 'index all sites' and 'taxonomy as facet', but when go to the page again all the checkboxes are set back to default. I assume because I can't save the option 'index all sites' that would explain why it is only loading the default site's posts and pages into solr and not the multisites.

This is how I currently have it set up: I currently have it installed as a network plugin. I also installed and activated it on the other 2 sites in the network, but I did not see any solr options pages for them. So I assume it only needs to be controlled from the default site where it is installed as a network plugin.

So is my problem only related to not being able to save the 'index all sites' on the options page? If it is not I was hoping someone could give me step by step instructions for a multisite install. I want to be able to do a global search across all my sites on any of the sites.

Any help would be appreciated. Thanks, Dan

foodnavorg commented 12 years ago

sounds weird but there was something about doing the Load All Pages and Load All Posts from Chrome (or a non Firefox) browser. which is really weird, but might be an issue with loading the pages and posts. For the Save I would suggest looking at the permissions in the plugin folder. I think I finally set mine to 777 because some of the stuff is "written" to that folder which is somewhat of a no-no because some plugin developers might try to load some nasty stuff in there. But, if you trust all of your plugins then you should be ok, but be careful of the ones in the future.

Hope this helps. The only problem then is going to be the multiple listings when you do a load all pages/posts and then when you do an update or add a new one. I have an open issue on that one as well, but for now at least since I know about it I've figured out how to work around it.

Jerry Craig Cupbearer

dustinrue commented 12 years ago

danfischer87 you are right, the solr options is only available to the network admin, not the sub blogs. I seem to remember having a similar issue where solr options weren't actually being saved and I thought I had fixed that. I haven't had a chance to use the plugin in awhile so I'm not sure if it has been broken again or not, I can look...