Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterInteresting. Themify builder then must use some other method to get the post titles and the content or something.
All you need to do is find out how, and I can help you put together a function which post-processes the search results and fills the missing fields.
Ernest Marcinko
KeymasterHi!
The preview indicates that some files are missing from the includes directory. (like includes/imagecache.class.php). The ftp connection might have failed during the upload process, or there might have been a tiny server outage.
Please re-install the plugin, that might solve this issue as well.
Also, could you point me to a page where the search is active so I can test the priority settings?
Ernest Marcinko
KeymasterNot yet, I just got to your ticket. You can use the email address you get the notifications for replies. It’s forwarded to my mailbox. You can also edit your first post to add the details, or upload a txt file. Attachements are private in threads, only visible for the ticket owner and administrator.
March 18, 2015 at 10:29 am in reply to: Ajax Search Pro crashes Safari when viewport is minimized #4244Ernest Marcinko
KeymasterHi!
Sorry about that. I tried the ftp again, but I couldn’t make changes, I got a permission denied. I guess I didn’t see that the last time, and one “return” statement was left in the code.
It should work now.
Ernest Marcinko
KeymasterWell, the good news is that the ajax search is working.
Are you using any kind of content builder plugin, or theme builder plugin or antyhing similar?
Have you changed the title and the content fields to something else on the advanced options panel?If you turn on the debug mode in the wp-config.php file it should show some error messages. That “0” before the three dots tells me that something returned with a false value due to an error.
What’s more interesting, that the title is completely missing. Unless you are using different title and content fields, this should definitely show the post title – because it’s retrieved with the post ID with a wordpress core function, which works, unless the post ID is incorrect.Ernest Marcinko
KeymasterI didn’t get the picture, the upload might not work on the forum form. Could you please try it again? The reply form file upload should work. (maybe not on all mobile devices, I’m not sure)
Well, it can be, I haven’t tried on MAMP to be honest, I’m a XAMPP user myself. I don’t know what are the differences though. They should be very similar.
But if you get the results, but the fields (title, content) are missing, then it might be something else. I’ve never seen a similar issue, so all I can do is guess.
Ernest Marcinko
KeymasterHi!
I was just about to merge your code with this account, but I’m glad you worked it out. I have no Idea why it didn’t work there, it’s essentially the same form.
This sound like that the ajax request is halted somewhere or denied completely. Do you have any kind of .htaccess login or similar authentication activated? It can block the ajax request as it cannot authenticate itself on server level.
Do you have an url where I can see this in action?
Ernest Marcinko
KeymasterThat’s very weird. Is the category/term logic set to “AND” on the General options -> Category/Term logic panel? https://i.imgur.com/IPdFBKK.png If it’s set to OR, then if the product is in multiple categories, then it will show up unless all the container categories are excluded.
If that option is set to AND, then this must be an unknown issue yet. I’m unable to replicate it on my test servers unfortunately.
Can you provide temporary admin and ftp access to your site? I would like to do some debugging on the search code to find out why that product still shows up.
Could you also tell me what to look for, and which product should not show up?
Ernest Marcinko
KeymasterInteresting. I might have found a bug, but I can’t confirm yet. Could you please open up the wp-content/plugins/ajax-search-pro/includes/search_content.class.php file and go to line 302, where you should see this code:
[code]CONCAT(‘–‘, GROUP_CONCAT(DISTINCT $wpdb->terms.term_id SEPARATOR ‘—-‘), ‘–‘) as ttid,[/code]
Replace that line with this:
[code](SELECT DISTINCT CONCAT(‘–‘, GROUP_CONCAT( $wpdb->term_taxonomy.term_id SEPARATOR ‘—-‘ ), ‘–‘) FROM $wpdb->term_taxonomy
LEFT JOIN $wpdb->term_relationships ON $wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id
WHERE ($wpdb->term_relationships.object_id = $wpdb->posts.ID) ) as ttid,[/code]That will possibly solve this issue, at least I hope so.
Ernest Marcinko
KeymasterAre you excluding it on the advanced options panel?
Ernest Marcinko
KeymasterHi!
It looks like you are using an outdated version of the plugin. You can download the newer from codecanyon. Please follow the safe update steps described in the first chapter of the documentation.
Ernest Marcinko
KeymasterThat would have been my first suggestion. Have a nice day!
Ernest Marcinko
KeymasterHi!
In your case I think the optimal solution would be to create 2 different search instances, one for visitors, one for subs.
On the advanced options panel within the search settings, there is a field on the almost bottom of the page where you can add post/page IDs to exclude from the search results. If you don’t have like hundreds of restricted pages, then you can enter the page ids to restrict from the visitors.
Ernest Marcinko
KeymasterHi!
Thank you for the correct details, it made my work much easier.
This was indeed an unknown bug, the step was not passed correctly to the search. I’ve corrected the mistake via FTP and I’m also including this bugfix in the upcoming version, so you don’t have to worry about it.
March 13, 2015 at 4:48 pm in reply to: Ajax Search Pro crashes Safari when viewport is minimized #4210Ernest Marcinko
KeymasterHi!
After a few hours of experimenting I might have found the cause, but I’m not able to fix it per se.
When resizing, the menu script physically moves the nodes around the node tree. I have no idea why the theme author choose this solution, but he must have had his reasons.
The problem is, I found, that safari fails when moving SVG nodes from one position to another. I have no idea why, this shouldn’t happen, just like in the other browsers. The search unfortunately uses high resolution SVG icons (magnifier, loading, settings).
When I disabled these icons in the code, the page didn’t fail.Luckily there is a solution I guess. You will have to upload custom icons for magnifier, settings and loading. The good thing is, that you can do that on the backend under the Theme Options panel for each icon.
There are a few unused (non svg) icons available in the plugins /img/ folder, you can use those if you want to.
-
AuthorPosts