Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Error does not work the search filter, the search result shows a day later
This topic contains 10 replies, has 2 voices, and was last updated by nescali 3 years, 11 months ago.
- AuthorPosts
- June 21, 2019 at 6:45 pm #23239
Error does not work the search filter, the search result shows the publication a day later.
URL filter
https://www.contabilidad.webbogota.com/prueba-filtro/
URL Post
https://www.contabilidad.webbogota.com/dddd/Screenshots
https://www.contabilidad.webbogota.com/1.jpg
https://www.contabilidad.webbogota.com/2.jpg
https://www.contabilidad.webbogota.com/3.jpg
https://www.contabilidad.webbogota.com/4.jpg
https://www.contabilidad.webbogota.com/5.jpgCustom Fields Code
<?php /* Plugin Name: Demo MetaBox Plugin URI: http://en.bainternet.info Description: My Meta Box Class usage demo Version: 3.1.1 Author: Bainternet, Ohad Raz Author URI: http://en.bainternet.info /
//include the main class file require_once(“meta-box-class/my-meta-box-class.php”); if (is_admin()){ / * prefix of meta keys, optional * use underscore () at the beginning to make keys hidden, for example $prefix = ‘_ba’; * you also can make prefix empty to disable it * / $prefix = ‘ba_’; / * configure your meta box /
/*
* Create a metabox
/
/
* configure your meta box
/
$config2 = array(
‘id’ => ‘demo_meta_box2’, // meta box id, unique per meta box
‘title’ => ‘Advanced Meta Box fields’, // meta box title
‘pages’ => array(‘post’, ‘page’), // post types, accept custom post types as well, default is array(‘post’); optional
‘context’ => ‘normal’, // where the meta box appear: normal (default), advanced, side; optional
‘priority’ => ‘high’, // order of meta box: high (default), low; optional
‘fields’ => array(), // list of meta fields (can be added by field arrays)
‘local_images’ => false, // Use local or hosted images (meta box images for add/remove)
‘use_with_theme’ => false //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false).
);/
* Initiate your 2nd meta box
/
$my_meta2 = new AT_Meta_Box($config2);/
* Add fields to your 2nd meta box
*///date field
$my_meta2->addDate($prefix.’date_field_id’,array(‘name’=> ‘Date ‘,’format’ => ‘yymmdd’));
//$my_meta2->addDate($prefix.’date_field_id’,array(‘name’=> ‘My Date ‘));
//text field
$my_meta2->addText($prefix.’text_field_id’,array(‘name’=> ‘Text ‘,’group’ => ‘start’));}
June 24, 2019 at 7:42 am #23246Hi,
The issue was, that the wrong custom field was used. The date field name is ‘ba_date_field_id’. I have changed it, and now it seems to work correctly: https://i.imgur.com/N7x71LQ.png
I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 25, 2019 at 3:54 pm #23403Hello, the error was not solved
https://www.contabilidad.webbogota.com/error1.jpg
https://www.contabilidad.webbogota.com/error2.jpgPlease can you help me?
June 26, 2019 at 8:00 am #23412Hi,
I am seeing the correct results there:
1. https://i.imgur.com/6wCX5dT.png
2. https://i.imgur.com/Ye2BKtG.pngI am looking at the first search instance. Can you please clear your browser cache? I have also checked the executed query, and it looks correct as well.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 26, 2019 at 10:54 pm #23436The error continues:
In the four browsers it does not work. (Versions of browsers)
Chrome 75.0.3770.100 (Build oficial) (64 bits) – Firefox 67.0.4 (64-bit)- Internet Explorer 11.829.17134.0 – Microsoft Edge 42.17134.1.0In the only browser that worked the search was in the Tor browser (it’s not a popular browser)
That’s why I think there’s something wrong in the code with the compatibility with browsers or date format of browsers or something else.
Other friends have helped me with other screenshots
all my friends have the same errorFriend in Colombia 1 (Android Chrome)
https://www.contabilidad.webbogota.com/colombia1.jpeg
https://www.contabilidad.webbogota.com/colombia1-1.jpegFriend in Colombia 2 (Android Chrome)
https://www.contabilidad.webbogota.com/colombia2.jpeg
https://www.contabilidad.webbogota.com/colombia2-1.jpegFriend Colombia 3 (Safari IOS)
https://www.contabilidad.webbogota.com/colombia3.jpegFriend in Canada (Chrome) (laptop)
https://www.contabilidad.webbogota.com/canada1.jpeg
https://www.contabilidad.webbogota.com/canada2.jpegI am sure that if I keep looking for friends, everyone will have that same error.
Please help me.
June 27, 2019 at 7:30 am #23452Hi,
This has to be the strangest issue that I have ever seen, but I think I know what is wrong now.
I was able to replicate the issue, by changing my time zone. It looks like there is something wrong with the datepicker script when generating the dates, it does not compensate for the time zone shifts. The reason it worked on Tor, because it hides your time zone, that’s when I realized it could be the issue. Thanks for the helps with this!
Let me try to fix this on my local environment, and I will make the modification on your server as well.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 27, 2019 at 11:55 am #23454Hi,
I have made the adjustment on your server as well. Can you please try now? Make sure to clear the browser cache as well as the site cache, if any.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 27, 2019 at 4:40 pm #23466Hi, thank you very much, the error has been fixed. Thank you.
June 27, 2019 at 9:01 pm #23472how to make the two fields that are currently required, that if the user does not select the two fields does not show the result, is that possible? Because I see that the field if only the date is selected shows the result without selecting the text field.
thank’sJune 28, 2019 at 7:25 am #23473Hi,
I’m afraid that is not possible. I have noted this to the upcoming features list, I think this would be an interesting addition.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 28, 2019 at 7:11 pm #23504ok, thanks, Yes very interesting.
- AuthorPosts
You must be logged in to reply to this topic.