Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterIn that case I think I need temporary admin and ftp access to do some debugging, because I think there is something else interfeering.
The default search setup should work regardless the multisite setup. (subdir or subdomain)
Ernest Marcinko
KeymasterYou should do that on one of the sub-sites.
You should create an ajax search pro isntance just like if it was a single site installation.
You can check the documentation in order to see where the php shortcode is: http://wp-dreams.com/demo/wp-ajax-search-pro3/docs/#getting_started_placing_the_shortcode_to_the_theme
Ernest Marcinko
KeymasterYou are right. After excessive testing I found that the thing I did yesterday was not right.
There was an entirely new bug, that I was unaware of. It would be hard to explain, but it took me 3 hours to fix it.
Please test the search now, I think it should work correctly with the filters.
Ernest Marcinko
KeymasterHi!
A few questions first:
- Are there any categories excluded?
- Are there any category filters selected on the frontend?
- Are there any other filters, like custom field or taxonomy visible?
- Is there anything else excluded in the configuration?
- Are the posts statuses published?
Excluding things along multisite is usually not a good idea, because terms unfortunately are not shared along multisite installs, thus have different id’s. So two posts on separate multisites under the same category name are not actually under the same category and are not possible to filter because of that. Same goes for custom fields, taxonomies etc.. I’m hoping version 5 of wordpress will provide an interface for this.
Ernest Marcinko
KeymasterThe filters should work if you configure it again, yesterday I fixed that.
Ernest Marcinko
KeymasterSorry, it was a syntax error I did by mistake when editing yesterday, I was very tired. It should return the results again for the tags.
Ernest Marcinko
KeymasterHi!
The ajax search pro databases are global along the multisite blogs. If you create an engine, it will be visible in each multisite instance.
All you need to do is to put the php shortcode to the header.php file to the position where you want it.
Ernest Marcinko
KeymasterI can check again if you want, but I don’t see the settings box active anymore. I’m pretty sure it was working, it took me a long time to figure out that bug, which was not even related to the plugin.
Why isn’t the plugin folder visible in ftp? http://i.imgur.com/44F8mJH.png
It took me very long time to make changes via the plugin editor. It’s visible in plugin editor, but not in ftp.
Ernest Marcinko
KeymasterI don’t know what the first issue was, but if it was related to the second, then it should not appear again.
February 10, 2015 at 11:50 pm in reply to: Search Results Not displaying for specific keywords #3870Ernest Marcinko
KeymasterSure thing. This was intended to be changed in the current version.
Ernest Marcinko
KeymasterHi!
I don’t know, but it is possible I guess.
Ernest Marcinko
KeymasterHi!
Yes. There is something wrong with the ftp, I could not see the ajax-search-pro directory within the mappure.com/wp-content/plugins directory, but I managed to make changes via the admin panel.
The problem should be fixed now, however I have no idea what have caused it. There was apparently a PHP bug unrelated to the plugin, I will need to ask the PHP support about that.
In the meantime I replaced a bit of code in the search, it should work as expected now.
February 10, 2015 at 10:42 pm in reply to: Search Results Not displaying for specific keywords #3864Ernest Marcinko
KeymasterThanks!
It was a backup code in cases if the user selects custom field content, but the custom field is not accessible or doesn’t exist. I must have made forgot to re-factor the function. It should have look something like this:
[code]if (!function_exists("get_content_w")) {
function get_content_w($content)
{
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
return $content;
}
}[/code]Thanks for going through it 😉
Ernest Marcinko
KeymasterYes, it means that file is missing. It probably wasn’t uploaded.
Instead of uploading the ajax search directory, I recommend rather deactivating and deleting the plugin, then uploading it again. The settings table and the options will remain there. That should solve the problem instantly. You should save the settings again once uploaded, just to make sure that everything is consistent.
Ernest Marcinko
KeymasterHi!
The error message suggests that there is no ajax response due to a fatal error somewhere along the way. Turning on the error reporting in the wp-config.php might print something into the request.
As long as the wordpress paths are correct the search paths should be correct as well. You haven’t changed the domain, so everything should be ok.
Try to open op every settings page from the ajax search pro submenu and save them again. Maybe some of the options were lost along the way – I would say most likely the caching options.
Also deactivating/activating the plugin sometimes helps.If nothing helps you can provide temporary ftp and amdin access and I can try to debug through the ajax handler to see where the error comes from.
-
AuthorPosts