• Resolved hmrw

    (@hmrw)


    Hi there,
    after updating Ivory search to the latest one (5.2) I noticed my search no longer works. After looking around the settings and comparing to my earlier version of the web I notice there’s an option to “build the index” which I did.

    However, upon building the index I got the error message as per below :
    Could I get some assistance please.

    Content Status
    2985 contents can be indexed.
    
    Index Status
    0 unique content in the index
    0 unique terms in the index
    0 index records
    
    1 index error(s):
    [post_id] 3991 - [error] Could not save index rows sql: INSERT INTO wp_is_inverted_index (post_id, term, term_reverse, score, title, content, excerpt, author, comment, tag, category, taxonomy, customfield, taxonomy_detail, customfield_detail, type, lang)  VALUES 
    (3991, 'atom', 'mota', 6, 1, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'bulan', 'nalub', 6, 1, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'super', 'repus', 7, 1, 1, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'bihun', 'nuhib', 8, 1, 2, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'kuah', 'hauk', 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, 'instant', 'tnatsni', 7, 1, 1, 0, 0, 0, 0, 0, 1, 0, '{\"product_cat\":1}', '', 'product', 'en_US' ),
    (3991, 'rice', 'ecir', 6, 1, 1, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, 'noodle', 'eldoon', 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, 'soup', 'puos', 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, '51g', 'g15', 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, '5pcs', 'scp5', 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, 'noodles', 'seldoon', 2, 0, 1, 0, 0, 0, 0, 0, 1, 0, '{\"product_cat\":1}', '', 'product', 'en_US' ),
    (3991, 'instan', 'natsni', 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, 'product', 'tcudorp', 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, 'indonesia', 'aisenodni', 2, 0, 1, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'expiry', 'yripxe', 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, 'date', 'etad', 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, '2022', '2202', 3, 0, 3, 0, 0, 0, 0, 0, 0, 0, '', '', 'product', 'en_US' ),
    (3991, '168', '861', 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, '', '{\"_sku\":1}', 'product', 'en_US' ),
    (3991, 'default', 'tluafed', 3, 0, 0, 0, 0, 0, 0, 0, 0, 3, '', '{\"site-sidebar-layout\":1,\"site-content-layout\":1,\"theme-transparent-header-meta\":1}', 'product', 'en_US' ),
    (3991, 'asian', 'naisa', 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'grocery', 'yrecorg', 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'pantry', 'yrtnap', 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'australia', 'ailartsua', 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'cheapest', 'tsepaehc', 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'community', 'ytinummoc', 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'free', 'eerf', 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'delivery', 'yreviled', 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'indomelb', 'blemodni', 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'makan', 'nakam', 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'melbourne', 'enruoblem', 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'online', 'enilno', 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'grocer', 'recorg', 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'pty', 'ytp', 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'ltd', 'dtl', 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
    (3991, 'ozgrocer', 'recorgzo', 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, '{\"product_tag\":1}', '', 'product', 'en_US' ),
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Sorry to hear about the problem you are having.

    I have tested it on my test site and it’s working fine for me using the latest version of the plugin.

    Can you please try temporarily enabling WP_DEBUG mode? To do this, just go to wp-config.php include this:

    define(‘WP_DEBUG’,true);

    You might already have a line for WP_DEBUG, so just make sure it’s set to true.

    Let me know what errors if any you are getting when you face this issue.

    Also, could you please tell me which version of PHP and MySQL you are using?

    Best regards,

    Thread Starter hmrw

    (@hmrw)

    Hi there,
    thanks for the prompt reply.

    WordPress version : 5.8.2
    PHP Version : 7.4.13
    MYSQL Version : 8.0.22
    Astra theme version : 3.7.6

    Below is the content of “debug.log” post the search test I did.
    ====================

    25-Dec-2021 12:46:57 UTC] **************************** Trace start ****************************
    [0]file: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/add-search-to-menu/includes/class-is-debug.php; line: 98; function: debug_trace; class: IS_Debug
    [1]function: process_error_backtrace; class: IS_Debug
    [2]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.php; line: 2056; function: mysqli_query
    [3]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.php; line: 1945; function: _do_query; class: wpdb
    [4]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.php; line: 2657; function: query; class: wpdb
    [5]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-query.php; line: 3024; function: get_col; class: wpdb
    [6]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-query.php; line: 3465; function: get_posts; class: WP_Query
    [7]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-query.php; line: 3576; function: query; class: WP_Query
    [8]file: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/add-search-to-menu/public/partials/is-ajax-results.php; line: 57; function: __construct; class: WP_Query
    [9]file: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/add-search-to-menu/public/class-is-ajax.php; line: 99; function: require_once
    [10]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php; line: 303; function: ajax_load_posts; class: IS_Ajax
    [11]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php; line: 327; function: apply_filters; class: WP_Hook
    [12]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php; line: 470; function: do_action; class: WP_Hook
    [13]file: /opt/bitnami/apps/wordpress/htdocs/wp-admin/admin-ajax.php; line: 187; function: do_action
    [25-Dec-2021 12:46:57 UTC] WordPress database error Illegal argument to a regular expression. for query SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.ID FROM wp_posts WHER
    E 1=1 AND ( ((wp_posts.post_title REGEXP ‘([[:<:]])sat|sat([[:>:]])’) OR (wp_posts.post_content REGEXP ‘([[:<:]])sat|sat([[:>:]])’) OR (wp_posts.post_excerpt REGEXP ‘([[
    :<:]])sat|sat([[:>:]])’))) AND wp_posts.post_type = ‘product’ AND ((wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘inherit’)) ORDER BY wp_posts.post_title LI
    KE ‘%sat%’ DESC, wp_posts.post_date DESC LIMIT 0, 10 made by do_action(‘wp_ajax_is_ajax_load_posts’), WP_Hook->do_action, WP_Hook->apply_filters, IS_Ajax->ajax_load_posts,
    require_once(‘/plugins/add-search-to-menu/public/partials/is-ajax-results.php’), WP_Query->__construct, WP_Query->query, WP_Query->get_posts
    [25-Dec-2021 12:47:00 UTC] [warning]: ‘mysqli_query(): (HY000/3685): Illegal argument to a regular expression.’ file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.
    php, line: 2056
    [25-Dec-2021 12:47:00 UTC] **************************** Trace start ****************************
    [0]file: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/add-search-to-menu/includes/class-is-debug.php; line: 98; function: debug_trace; class: IS_Debug
    [1]function: process_error_backtrace; class: IS_Debug
    [2]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.php; line: 2056; function: mysqli_query
    [3]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.php; line: 1945; function: _do_query; class: wpdb
    [4]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.php; line: 2657; function: query; class: wpdb
    [5]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-query.php; line: 3024; function: get_col; class: wpdb
    [6]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-query.php; line: 3465; function: get_posts; class: WP_Query
    [7]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-query.php; line: 3576; function: query; class: WP_Query
    [8]file: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/add-search-to-menu/public/partials/is-ajax-results.php; line: 57; function: __construct; class: WP_Query
    [9]file: /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/add-search-to-menu/public/class-is-ajax.php; line: 99; function: require_once
    [10]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php; line: 303; function: ajax_load_posts; class: IS_Ajax
    [11]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php; line: 327; function: apply_filters; class: WP_Hook
    [12]file: /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php; line: 470; function: do_action; class: WP_Hook
    [13]file: /opt/bitnami/apps/wordpress/htdocs/wp-admin/admin-ajax.php; line: 187; function: do_action
    [25-Dec-2021 12:47:00 UTC] WordPress database error Illegal argument to a regular expression. for query SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.ID FROM wp_posts WHER
    E 1=1 AND ( ((wp_posts.post_title REGEXP ‘([[:<:]])sate|sate([[:>:]])’) OR (wp_posts.post_content REGEXP ‘([[:<:]])sate|sate([[:>:]])’) OR (wp_posts.post_excerpt REGEXP
    ‘([[:<:]])sate|sate([[:>:]])’))) AND wp_posts.post_type = ‘product’ AND ((wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘inherit’)) ORDER BY wp_posts.post_ti
    tle LIKE ‘%sate%’ DESC, wp_posts.post_date DESC LIMIT 0, 10 made by do_action(‘wp_ajax_is_ajax_load_posts’), WP_Hook->do_action, WP_Hook->apply_filters, IS_Ajax->ajax_load
    _posts, require_once(‘/plugins/add-search-to-menu/public/partials/is-ajax-results.php’), WP_Query->__construct, WP_Query->query, WP_Query->get_posts`

    • This reply was modified 2 years, 11 months ago by hmrw.
    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Thank you for sharing the debug log.

    I am troubleshooting the issue.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Could you please try using the below latest unreleased plugin version?

    https://drive.google.com/file/d/17D8ApNXDK9NWtlPYrS7XK6u8fG039wks/view?usp=sharing

    Не работает тоже плагин после ваших последних обновлений…………….

    Версия WordPress 5.8.2
    Текущая тема: GrandTour Child (версия 4.3.1578059227)
    Проблемный плагин: Ivory Search (версия 5.2)
    Версия PHP 8.0.12
    
    Подробности ошибки
    ===================================
    Ошибка с типом E_ERROR возникла на строке 23 файла /home/g/gandhiiv/double-travel.ru/public_html/wp-content/plugins/add-search-to-menu/includes/freemius/templates/forms/deactivation/retry-skip.php. Сообщение об ошибке: Uncaught ValueError: Unknown format specifier "" in /home/g/gandhiiv/double-travel.ru/public_html/wp-content/plugins/add-search-to-menu/includes/freemius/templates/forms/deactivation/retry-skip.php:23
    Stack trace:
    #0 /home/g/gandhiiv/double-travel.ru/public_html/wp-content/plugins/add-search-to-menu/includes/freemius/templates/forms/deactivation/retry-skip.php(23): sprintf('\xD0\x92\xD0\xBE\xD0\xB7\xD0\xBC\xD0\xBE\xD0\xB6\xD0\xBD\xD0...', '_get_uninstall_reasons('long-term')
    #4 [internal function]: Freemius->_add_deactivation_feedback_dialog_box('')
    #5 /home/g/gandhiiv/double-travel.ru/public_html/wp-includes/class-wp-hook.php(303): call_user_func_array(Array, Array)
    #6 /home/g/gandhiiv/double-travel.ru/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #7 /home/g/gandhiiv/double-travel.ru/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #8 /home/g/gandhiiv/double-travel.ru/public_html/wp-admin/admin-footer.php(78): do_action('admin_footer', '')
    #9 /home/g/gandhiiv/double-travel.ru/public_html/wp-admin/plugins.php(782): require_once('/home/g/gandhii...')
    #10 {main}
      thrown
    Thread Starter hmrw

    (@hmrw)

    Hi @vinod-dalvi ,
    thank you for your speedy response.
    I have reinstalled the plugin on my non prod instance and I re run the index and this time it’s successfully completed without issue ??

    Furthermore I also tested the search it’s all back again YAY.

    May I know what’s the actual issue, is it something from my end ?

    —————

    <blockquote>Content Status
    2987 contents can be indexed.
    
    Index Status
    2987 unique content in the index
    6157 unique terms in the index
    52928 index records
    
    Last build results:
    - indexed 10 contents (10 / 2987), 180 terms, 1 seconds
    - indexed 20 contents (30 / 2987), 183 terms, 1 seconds
    - indexed 40 contents (70 / 2987), 254 terms, 2 seconds
    - indexed 80 contents (150 / 2987), 2387 terms, 7 seconds
    - indexed 100 contents (250 / 2987), 4487 terms, 8 seconds
    - indexed 100 contents (350 / 2987), 3255 terms, 8 seconds
    - indexed 100 contents (450 / 2987), 356 terms, 6 seconds
    - indexed 100 contents (550 / 2987), 401 terms, 7 seconds
    - indexed 100 contents (650 / 2987), 2346 terms, 7 seconds
    - indexed 100 contents (750 / 2987), 3910 terms, 7 seconds
    - indexed 100 contents (850 / 2987), 2454 terms, 7 seconds
    - indexed 100 contents (950 / 2987), 486 terms, 7 seconds
    - indexed 100 contents (1050 / 2987), 1904 terms, 6 seconds
    - indexed 100 contents (1150 / 2987), 3230 terms, 7 seconds
    - indexed 100 contents (1250 / 2987), 635 terms, 6 seconds
    - indexed 100 contents (1350 / 2987), 2348 terms, 7 seconds
    - indexed 100 contents (1450 / 2987), 2356 terms, 7 seconds
    - indexed 100 contents (1550 / 2987), 1404 terms, 6 seconds
    - indexed 100 contents (1650 / 2987), 1644 terms, 7 seconds
    - indexed 100 contents (1750 / 2987), 2262 terms, 7 seconds
    - indexed 100 contents (1850 / 2987), 1970 terms, 6 seconds
    - indexed 100 contents (1950 / 2987), 1078 terms, 6 seconds
    - indexed 100 contents (2050 / 2987), 1601 terms, 7 seconds
    - indexed 100 contents (2150 / 2987), 1648 terms, 7 seconds
    - indexed 100 contents (2250 / 2987), 1806 terms, 7 seconds
    - indexed 100 contents (2350 / 2987), 1781 terms, 6 seconds
    - indexed 100 contents (2450 / 2987), 1291 terms, 7 seconds
    - indexed 100 contents (2550 / 2987), 877 terms, 7 seconds
    - indexed 100 contents (2650 / 2987), 722 terms, 6 seconds
    - indexed 100 contents (2750 / 2987), 1584 terms, 6 seconds
    - indexed 100 contents (2850 / 2987), 697 terms, 6 seconds
    - indexed 100 contents (2950 / 2987), 487 terms, 6 seconds
    - indexed 37 contents (2987 / 2987), 904 terms, 3 seconds
    Finished Creating Index.

    I don’t know how, but it worked)))) Thank you for your time.
    Can I also ask you: is it possible to make the edge fields of the ivory-search plugin transparent??? screenshot attached – https://pastenow.ru/FGUKW
    I would like to use styles from the theme search.

    Thank you! I was also having the same problem, and now with the new unpublished update, everything is hunky-dory again. Maybe publish this update now?

    Hi,

    I have problems with the latest ivory search (version 5.2). It did disable many other plugins and i was unable to enable them, maybe it conflicts with ithemes security in my wordpress page. I was not able to enable 19 plugins. Now i have only disabled ivory search and ithemes at the moment and all other plugins are working again. I hope fix is coming. Not so long time ago, some other version did also something strange in my site and that time fix came quite fast. It is good plugin, i just wait new version, thank you.

    With gratitude,
    MarxVeix

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    @hmrw @darkdjadai @arbpen Thank you for confirming that it is working fine for you now.

    I am going to release a plugin update shortly.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    @darkdjadai @marxveix It seems your questions are different than the question asked in this topic so to help us keep the support thread separated could you please create your own thread for your question instead of posting a reply on others’ thread here as it makes the thread messy and hard to read.

    If you want to you can also add a reference to this thread in your newly created thread.

    I would be more than happy to help you with your new thread.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Index building error – Ivory search 5.2’ is closed to new replies.