Error does not work the search filter, the search result shows a day later

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

 
Participant
2 years, 7 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #23239

    Participant

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

    Custom 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’));

    }

    #23246

    Hi,

    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 :)


    #23403

    Participant
    #23412

    Hi,

    I am seeing the correct results there:

    1. https://i.imgur.com/6wCX5dT.png
    2. https://i.imgur.com/Ye2BKtG.png

    I 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 :)


    #23436

    Participant

    The 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.0

    In 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 error

    Friend in Colombia 1 (Android Chrome)
    https://www.contabilidad.webbogota.com/colombia1.jpeg
    https://www.contabilidad.webbogota.com/colombia1-1.jpeg

    Friend in Colombia 2 (Android Chrome)
    https://www.contabilidad.webbogota.com/colombia2.jpeg
    https://www.contabilidad.webbogota.com/colombia2-1.jpeg

    Friend Colombia 3 (Safari IOS)
    https://www.contabilidad.webbogota.com/colombia3.jpeg

    Friend in Canada (Chrome) (laptop)
    https://www.contabilidad.webbogota.com/canada1.jpeg
    https://www.contabilidad.webbogota.com/canada2.jpeg

    I am sure that if I keep looking for friends, everyone will have that same error.

    Please help me.

    #23452

    Hi,

    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 :)


    #23454

    Hi,

    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 :)


    #23466

    Participant

    Hi, thank you very much, the error has been fixed. Thank you.

    #23472

    Participant

    how 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’s

    #23473

    Hi,

    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 :)


    #23504

    Participant

    ok, thanks, Yes very interesting.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.