3223 comments found.
Hello, the last update has corrupted the CSS of my browser, now it doesn’t look good and it’s searching all the time, it doesn’t let me introduce changes.
REVERSE CHANGES!
Hi,
Thank you for the feedback, but we have not changed the CSS in the last release, it is the same as the previous releases. This is most likely a conflict regarding something else. If you want to, I am more than happy to check the issue, feel free to open a support ticket.
All the best Ernest M.
Hello how are you? My Ajax Search Pro is not finding the latest posts, the most recent ones no longer appear in the search
Hi,
Check your configuration, make sure the correct post types are selected, as well as the ordering is correct, and under the advanced option panel nothing is excluded. Also check your front-end filters configuration – date, custom field, taxonomy filters will all affect the results. If the search finds some results, that means there is only a configuration related issue.
In the plugin configuration page, all posts appear, but on the website page, the recent ones do not appear, it is 5 days late, even the cache is clean.
I understand, some cache problem, but the strange thing is that I duplicated 1 form, and the duplicated search, works normally and is updated.
Thank you very much, I will try to solve it here, great day
Hello, it would be possible to make the version prior to 4.24.1 available, I think the problem was this change in the update.
“Moved the aggregated asset location to the wp-content/cache/asp/ folder for better server compatibility”
I am sorry but no, that feature is definitely not the issue, it has no effect on the results page. The duplicate search instance working proves, that the issue is related to caching, soecifically the page cache. Once you clear it properly, it will be resolved.
Hello, I found the problem, it really is in update 4.24.1 – 2022.11.25 I installed version 4.23.3, everything is working perfectly again.
Can’t I change this: wp-content/cache/asp/ to the previous folder?
I use the site on VPS
But again, that does not explain why a duplicated search bar works on 4.24.1, that should not work then either. That folder only stores the javascript files, that does not affect the items on the results page.
The reason the previous seem to work is, because its cleared from the cache, it uses other query arguments.
I am more than happy to help you with this on the spot, feel free to open a support ticket and I will assist.
A new search bar works as soon as I put it in, but when I add new posts, they don’t show up anymore, it looks like the cache has been stuck since Nov 25th.
Of course, because when you make a search with the new search bar, it redirects to the results page with certain query arguments. If your page cache is aggressive, it will cache that exact url immediately (it should not). Now, you add new posts, make the same query, and instead of the fresh page, you get the old cached page without the new posts – that is the problem, based on your description.
I understand, at the moment I am unable to renew support, here in Brazil 13 usd is a lot of money in reais, as soon as I get it I will renew, thank you
Hello, I found the solution to my problem, I deleted the old folder where the caches were stored, it was in wp-content/upload/asp_upload, in fact I renamed it to asp_upload2, so the plugin does not find it anymore, everything is back to normal , I hope it can help someone who is facing this same old cache problem. I think I can delete this folder? Thanks for the attention.
Hello, the plugin is still creating the “asp_upload” folder inside the directory >> wp-content/upload/
Thank you for the feedback, I will check that, probably a leftover code we forgot to remove.
Hello, every plugin update, it creates the asp_upload folder inside wp-content/upload again, causing the same previous conflict
Hi,
Yes – we had to use a different approach unfortunately. The folder is still required for specific uploads (instance and synonyms exports), but no longer used for assets like stylesheets or scrips. If the issue reappears, then then check your cache configuration, you may have added a file from that folder previously, which no longer exists.
Best, Ernest
Good morning, I understand, but with these two folders (asp_upoload in wp-content/upoload and the “wp-content/cache/asp/” folder) the same conflict of not appearing new posts in the search bar continues, it just returns to normal when I delete the “wp-content/upoload/asp_upload” folder. Can I continue to delete this folder in future updates? is there any problem? Thank you very much
The main problem is, that changing or deleting the folder will not resolve the actual cause of the issue. It is very much possible, that even moving that folder will recreate this problem. I still recommend finding the core cause. Something must be triggering on the server side, when that folder is found. A permalink structure, firewall etc..
The folder is going to be needed (even if renamed), because the above mentioned files can’t be in the cache directory.
Anyways, you can try to circumvent this by changing this path via this custom code:
add_filter('asp_glob_upload_dir', 'change_asp_glob_upload_dir');
function change_asp_glob_upload_dir($dir) {
$dir['basedir'] = 'asp_upload1';
return $dir;
}
This will change that directory, and should create asp_upload1 istead of asp_upload. However I still strongly recommend finding out why a directory existence breaks the cache – because it can happen again in the future with any module.
I’m going to have to rename it for now, could you tell me where I put this code you made available?
I put the code inside my theme’s functions.php, but it didn’t create the asp_upload1 folder. And inside the asp_upload folder, I see the creation of several files like “xasp_01301d4d5804371bf1dff64b8438dade.wpd”
Okay, I thought it will be problematic, but worth a try. Those are text based pre-cache files, when the search cache is enabled. Those will be moved in a future patch to the cache folder, it is under testing yet.
You can open a bug report with site login and FTP details, I am genuenly interested on why the page breaks, just want to make sure it is not something with the plugin.
Hello, I disabled the cache option in the plugin settings, and I noticed that these ”.wpd” files are no longer being created, let’s wait for the next update to see if this conflict returns, it seems to be ok for now.
How can I move Search Box below Filters? Like this: https://i.imgur.com/00MPCdH.png
Hi,
Use the filters shortcode to do that. Place the filters shortcode first, then the search shortcode, and that’s it.
“Replacing the default theme search bar” not working by override. My knowledge of php is limited so not sure where to find and replace theme search bar with plugin code. Search bar is in header so widget directions not helpful. Any other helpful answers with this issue?
Hi,
Unfortunately there is no general guide for this, because every theme is completely differently coded. Usually themes include this automatic replacement hook to make it easy, but in rare cases (usually when the search is integrated to a very specific placement, or has a special output) it is not coded that way. Sometimes there is still hope by checking the theme settings if there is any option to replace it witht a widget or shortcode. I always recommend asking the theme author for the best course of action, they know everything about their theme, including the location for the code if needed.
Hello ,
Currently I have WPML with English & Arabic , Could the user while browsing in English search & got result in Arabic ?
Hello, is it possible to exclude related posts under content from indexing? Now the search finds even pages were keyword is present only in related pages. Which is not fine. Thx David
Hi,
Generally related posts are not stored as part of the post content field – at least I have not seen a plugin yet doing that, it is usually printed within the template or after the posts loop. If somehow the related posts are parts of the post content in your case, then there are only a several things you can do:- Not to search the posts content fields
- When using the index table engine, make negative keyword exceptions
- When using the index table engine, exclude the related posts module shortcode – that will eleminate the related content completely from the index
Thank you, I placed the related content via hook after the content and now it is OK David
Perfect!
Hi, i have a presale question: dose this plugin work with WP Job Manager plugin ? i mean can i customize WP Job Manager search filter with it and add new fields and taxonomies ? and dose it work similar to this plugin Search and Filtering for WP Job Manager https://plugins.smyl.es/wp-job-manager-search-and-filtering ?
Hi,
I am not very falmiliar with that plugin, but I assume it is using custom post types to store the Jobs – in that case it will work.
This plugin is not an extension to an existing search, but you can create separate search & filters with it. The filters work by custom fields, taxonomy terms (like categories), dates, content type and post type.
Feel free to try the back-end demo as well, where you can experiment with most of the plugin features.
H. there is a bug on latest version. I had to downgrade to make the search work again. The new version creates infinite loop on front end & debug shoed the plugin creates a js file into folder /uploads/asp_upload in my case asp-f50f5fd5asp-f50f5fd5. each time I deleted it. when trying to search it created this file again. Please fix it
But the search didn’t work & went into INFINITE LOOP!!! The Console wrote it CANNOT READ THIS FILE!!! After downgrade to previous version the search works fine.
So waiving me away claiming there is no bug is YOUR PROBLEM, which you choose to ignore!
We do not ignore anything. You did not specify, that your browser could not read that file. Based on your description I assumed you kept deleting the file, which caused the issue. If the file is not accessible for the browser, it signifies a server related problem – as it should be accessible, the plugin can’t make it unaccessible. It could be a firewall/.htaccess related problem, probably your server does not allow accessing the file. If the access runs into an infinite loop, then it is more likely a .htaccess issue.
You can open a support ticket or a bug report with specific details, so we can take a closer look if you want to.
I’m truly curious what makes you think it is server issue while the server handles it very well on with previous plugin version. To me personally, it makes no sense!
It actually does, and it is very likely the only explanation. See the file location has changed, and it is very much possible to have different mod_rewrite rules on different folders, it is quite common. The server can have a no-access rule setup for specific folders. It was not apparent, because this location was not yet used for the script assets. The plugin can’t detect that, it is only detectable from the client side. If the file exists on the system and it is not accessible, then the only thing that can stop it is access blocking. It can be a browser extension (or an addon) on the client side, or the server.
It is much easier to open a bug report or support ticket, we might be able to help you either way.
I’m sorry, but the page has no form or a button to report. only showing 2 reports, So I’m not able to open. There are no rules on the server to block this folder from access. It happens on different browsers & also on private pages. I believe the issue is on your plugin & since I’m not able to report a bug or open a support ticket, I’ll wait for next version in hope it will be fixed.
Here you can open a ticket. Also, here you can open a bug report. If you don’t have an account, you can quickly register one, no verification needed.
Sorry if I wasn’t clear enough. I’m logged into that page, however it doesn’t let me send. I tried a few times. I must do some other things as well in my life, so I can try again tomorrow, However I believe something is not user friendly on your system. Thanks anyway.
Thanks for trying to resolve it on today’s update. Unfortunately it doesn’t work. I get the following error: Uncaught TypeError: Cannot read properties of undefined (reading ‘infinite’)
I will retry to submit a ticket on your link
I sent yesterday & waiting for your check
Will check on monday as soon as I get back to the office, no worries. Make sure to include a relevant url, login and ftp details, so I can debug if needed.
Any updates? I didn’t hear back from you
Hi, the price is for 1 or unlimited sites? thanks!
Thank you Ernest!
Is it possible to show results only if the items are in a specific category or tag? In my testing it keeps showing everything within a post type no matter the category or tag
brilliant thank you
Dear Customers,
Ajax Search Pro version 4.24 has been just released!
Check this showcase blog post for more details about the new features and changes. You can also find all changes listed in the changelog.
I am using the ASP_Query (it’s awesome by the way!) and there is always a “0” at the end of my results. Is there any way to get rid of that?
Also, I specified in my $args ‘posts_per_page’ => 25, however it only shows 10 results. I am using a $search_id and that search instance has a limit of 10, but I thought the $args are supposed to have priority over the $search_id settings?
Thanks!
Hi,
I assume you are referring to the results page here. The plugin does not print anything to the results page, so that “0” might be coming from either the theme or maybe a custom code (an echo or a print statement left somewhere).
The issue with the ‘posts_per_page’ argument depends on what context do you use it. If you try to modify the search query arguments via the asp_query_args hook, then this does nothing, because at the end still wordpress decides how many posts will be displayed on the results page. It highly depends on the exact code and the case. Try changing that query argument in the pre_get_posts hook instead.
Hello, how can I exclude from search the widget content? Thx David
Hi,
Widgets are not part of the post/page contents so they are not searchable in the first place. If a widget is placed to the actual post content, then I’m afraid there is no way to exclude it, as it is stored in the post content field acting as the actual post content.
Hi, thank you for answer. So there is no way to put Last or Top searches to widgets without having it in search results? I mean, page was shown in results and the searched word was present only in Last search widget . Thx David
Btw, great plugin!
Hi there,
I have a pre-sale question. In your documentation, specifically the article called ‘Elementor Pro Posts Widget Live Filter’, it shows that adding a class (in this case asp_es_1) to a post widget makes it possible to use the live filter on it. Would it also work if I have two post widgets on the same page and add the same class to both? Would the live filter then filter both post widgets simultaneously?
Hi,
It will only work with the first widget in that case. The reason is, that even if that was “enabled”, both of the widgets would have the same exact contents, which is redundant. We can make that work if you want to, but I am not sure if you want to see the same items in the widgets.
I see, I thought that if I had two post widgets with different content queries (let’s say one showing category ‘travel’ only, and the other category ‘motorsport’ only), they would also show different filtered content, but this is not the case? Seeing that the search bar also searches by title and content, you can still have relevant keyword hits from posts in different categories. I hope this makes sense.
Alright, so the search overrides any filters already present in the query. Would there be a way to set it up so that it doesn’t, or does that require massive adjustments to the plugin?
My use case is that I want to create a Knowledge Base page with different post lists that are sorted by category. Like this:
https://blog-assets.freshworks.com/freshdesk/wp-content/uploads/2019/11/14141208/Spotify_knowledge-base-example.pngIdeally, I’d have one search bar that can filter all posts, so that only the relevant ones are shown.
To clarify, I mean the post lists at the bottom part of that image. The orange outlined part has nothing to do with it.
That would be very very problematic in general, custom coding the whole thing bottom-up to this specific requirement might be less work.
Instead of elementor widgets I would rather go with the vertical results, with results grouping feature enabled. Then apply some custom CSS as needed or even a bit of results templating.
Thanks for thinking along Ernest, I appreciate it. The results grouping looks good, I can make that work.
In my case, when initially loading the page, I already need to show all grouped queried content. Does the plugin allow this?
Yes – auto populating results on page load is possible, for example: https://ajaxsearchpro.com/property-search/
Thanks!
I have one more question. The delete button is not working for me, can you confirm that it is working on your end? When I press the button, a ’#’ appears at the end of the url, but nothing happens.
Hello, I am interested in your plugin, I have seen that it is a powerful search engine. I would like to know if I can use it with the theme https://themeforest.net/item/motors-automotive-cars-vehicle-boat-dealership-classifieds-wordpress-theme/13987211 to search for words that are in the description of each car for example. Thank you
Hi there,
I can make the Synonyms to work. I just added the synonym here https://tinyurl.com/27r48zw6 I make sure to reindex. I expect to get the same result for xxdd than for silla in my site but it does not work:. this is the site: https://latevabotiga.com/?s=xxdd&asp_active=1&p_asid=1&p_asp_data=1&customset[]=product&asp_gen[]=excerpt&asp_gen[]=content&asp_gen[]=title&filters_initial=1&filters_changed=0&wpml_lang=es&qtranslate_lang=0&woo_currency=EUR¤t_page_id=23
I already added ‘products’ in General tab: https://tinyurl.com/292u4usv
Hi,
Make sure the index table is indeed enabled, that is a common mistake.
Thanks!
After upgrade to last version i got this error but it’s working normally in /var/www/vhosts/..../httpdocs/wp-content/plugins/ajax-search-pro/includes/classes/etc/indextable.class.php on line 123
Fatal error: Uncaught Error: Failed opening required '/var/www/vhosts/.../httpdocs/wp-content/plugins/ajax-search-pro//includes/classes/etc/synonyms.class.php' (include_path='.:/opt/plesk/php/8.0/share/pear')
Hi, I love the power and flexibility of ASP and use it for several sites. One of my current projects must have WCAG AA compliance, and the scanner I’m using is flagging the “Generic Filters” area of ASP for missing form labels. Here’s a screenshot to show the errors it’s throwing: https://prnt.sc/Q4kFs1IuDTSA
It looks like the form in question is hidden and has to do with some filters that can help segment search results. I’m not using these filters, which I confirmed through the ASP UI at [Search] > Frontend Search Settings > Generic Filters as in this screenshot: https://prnt.sc/L9fYyqgYAayi
I’m not sure why these filters are showing as a hidden element in the page when I have them disabled, so can you tell me a way to make them go away for good so they don’t raise a red flag on the accessibility scan? Weirdly, I notice that when I disabled the filters and hit Save, they seem gone (as shown in the screenshot) but when I leave that screen and come back, they seem to have reappeared.
You can see the accessibility scan here: https://wave.webaim.org/report#/https://new.frcog.org
Thanks for looking at this. I’ll appreciate any insights you can provide.
Hi,
Those fields are required to pass some parameters to the search, but they should have an aria-label attributes as far as checking the source. I will check on this to add aria-hidden attributes as well so that the checker ignores them.
For now, you can deal with this via the filters templating feature. Make a template for the
wp-content/plugins/ajax-search-pro/includes/views/filters/generic/asp-generic-checkboxes.phpfile and replace it’s contents with this. This adds the “aria-hidden” label to the invisible checkboxes, and based on the WCAG AA that is compliant.
Hi and thanks for your fast reply. I have two things in response:
1. Your fix seems straightforward, but it’s not working for me. I’ve uploaded the file to this path /wp-content/themes/total-child/asp/filters/generic/asp-generic-checkboxes.php and also tried /new.frcog.org/public_html/wp-content/themes/total-child/asp/filters/asp-generic-checkboxes.php but to no avail. I also flushed the cache (SG Optimizer) and don’t believe there are any other caches active that could keep the override from running. Am I missing something obvious? Yep, I’m a designer, not a developer.
2. It sounds like a permanent fix for this issue will come in the next plugin update. If that’s true, and if you’ll be pushing the update soon, there’s no need to address #1 above, since this will be working by the time I need to launch the site 
Nevermind, that will not help, WCAG checker still does not like that, it won’t work. It will report no compliance, however invisible elements should not even be considered, so I don’t understand what it wants..
Anyways, you can put an end to this for now via making a change to a different file:
wp-content\plugins\ajax-search-pro\includes\views\asp.shortcode.general.phpChange it to this.
I will try to rework this to not use labels and such, but I have a feeling there is an issue with the checker tool as well, not considering aria-hidden and display: none styles.
Hi, I really appreciate your responsiveness! Unfortunately when I replaced asp.shortcode.general.php with the code provided, the page breaks :/ see screenshot https://prnt.sc/p2YZCnYWyjS_
Looks like it breaks right after the main Search box. . . maybe an unbalanced or something that’s not crashing the code, just not displaying right? I glanced at the PHP, but I didn’t see any obvious divs or spans or anything that made sense to me, so sorry I can’t try to make the spot fix.
I am all in favor of better solutions
and am happy to wait until the end of the week. Will this come as a plugin update, or will you drop some code into these comments for now?
Oh yeaaaaaah, I just saw the update notice, re-ran the accessibility scan, and it’s now a beautiful error-free page that complies with WCAG AA. I am really grateful for your fast responses, for taking the time to make a rigorous fix, and for your professionalism throughout. I will now leave one more glowing review for your phenomenal plugin! Take care.
Hi, I’m using Total -theme which has a very flexible way of creating views and grids for CPT:s called “Theme cards”. Do you think it would be possible to integrate this if creating a page simliar to this https://ajaxsearchpro.com/elementor-live-product-filter/ Thank you for a great plugin!
Hi,
Well – in that way probably won’t work.
If the grids are basically just a layout, you could still use the taxonomy/search archive filter with them.
I use Woocommerce membership, teams. Some data is team data only. Would it be possible to limit to only team members? I could add the team id to post meta and user meta.
