This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 17,581 through 17,595 (of 18,442 total)
  • Author
    Posts
  • in reply to: Pulling data from sub domain posts (not pages) #3887
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    in reply to: strange issue #3884
    Ernest MarcinkoErnest Marcinko
    Keymaster

    The filters should work if you configure it again, yesterday I fixed that.

    in reply to: strange issue #3882
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Sorry, 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.

    in reply to: one search for entire multisite #3881
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    in reply to: strange issue #3878
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I 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.

    in reply to: strange issue #3872
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I don’t know what the first issue was, but if it was related to the second, then it should not appear again.

    in reply to: Search Results Not displaying for specific keywords #3870
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Sure thing. This was intended to be changed in the current version.

    in reply to: strange issue #3869
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I don’t know, but it is possible I guess.

    in reply to: strange issue #3867
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    in reply to: Search Results Not displaying for specific keywords #3864
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thanks!

    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 😉

    in reply to: Search is Broken #3863
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yes, 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.

    in reply to: Search is Broken #3859
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    in reply to: Search Results Not displaying for specific keywords #3856
    Ernest MarcinkoErnest Marcinko
    Keymaster

    The log updates ever minute or so. That’s only a notice it does cannot issue a an error 500 on the server, fatal errors do that.

    The error is still there, look at the timestamp:
    [code]10-Feb-2015 19:05:18 UTC PHP Fatal error: Call to undefined function get_schools_list() in /var/www/vhosts/fairfieldschools.org/district-v2/themes/FPS_District-v2/templates/partials/parents-our-schools-v2.php on line 15[/code]

    in reply to: Search Results Not displaying for specific keywords #3854
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I can only see 1 fatal error repeating in the log

    [code]PHP Fatal error: Call to undefined function get_schools_list() in /var/www/vhosts/fairfieldschools.org/district-v2/themes/FPS_District-v2/templates/partials/parents-our-schools-v2.php on line 15[/code]

    It comes from the theme as you can see. Try to fix that issue in that file, it might fix the search issue as well if its related.

    in reply to: Server Crashed because of Plugin #3852
    Ernest MarcinkoErnest Marcinko
    Keymaster

    What size is the db (post count)?

    If there are like 10k post, then some tweaking might be needed. The 100% peak usage is not an issue, it can go up to 100% in search queries for a very short time. The issue is if it stays up on 100% for a long time, then the server might or might not crash.
    Do you have a swap file enabled? MySQL likes to use a lot of memory, and by lot I mean a hell of a LOT. When I moved this site I forgot to turn on the swap file, and after just installing a plain new empty WordPress it crashed after the 3rd refresh, and this server uses 1G memory.

    If the swap file is okay, then there are lots of other options to tweak:

    If you have a bigger database, like 10k posts you should consider turning off the content relevance as there is a very high chance that title relevance will match other titles. You can do that on the “Relevance Options” panel by turning off the “Look in content?” option.

    Plus another and possibly the most effective tweak is to reduce the keyword count, it exponentially affects the speed of the query. So again on the “Relevance Options” try to reduce the “Keywords maximum count” from 10 to 3. Depending on the database size this should improve the performance extremely.

    Or maybe your server doesn’t like the boolean mode search. What if you turn off the fulltext search. On the “Advanced Options” panel:

    • Turn OFF the “Use fulltext lookup if available?”
    • Turn ON the “Enable cache?”

    Altough fulltext search should be more effective in terms of performance, in some cases I found it’s exactly the other way around. There is no other way to know, but testing.

    You can try experimenting with these options, these control the most of the resources.

    Let me know which of these helped, I’m all in for feedback. I must close the office now, it’s getting too late here. Will get back to you tomorrow morning. Hopefully these suggestions will help.

Viewing 15 posts - 17,581 through 17,595 (of 18,442 total)