Get WPFTS Pro today with 25% discount!

Not working (critical error) on WP 6.0.3-6.1.1


  • It is not working, it is reporting a critical error after the installation of the lite (free) or a pro version...

    Any similar experiences or known solutions?

    Tx


  • Hi @Bards

    Strange issue. Could you please check or share your error.log with lines about fulltext-search plugin? There should be any records in this case.

    Could you share any screenshot with the critical error message?

    Thanks!


  • Thank you for your fast response...

    Sorry, it is a Fatal error, not Critical... 🙂

    Here is my debug

    Fatal error: Uncaught Error: Call to undefined function error_log() in /home/sbb23215/public_html/portal/wp-includes/class-wpdb.php:1602 Stack trace: #0 /home/sbb23215/public_html/portal/wp-includes/class-wpdb.php(2128): wpdb->print_error() #1 /home/sbb23215/public_html/portal/wp-includes/class-wpdb.php(2854): wpdb->query('select \n\t\t\t\t\tco...') #2 /home/sbb23215/public_html/portal/wp-content/plugins/fulltext-search/includes/wpfts_db.php(42): wpdb->get_results('select \n\t\t\t\t\tco...', 'ARRAY_A') #3 /home/sbb23215/public_html/portal/wp-content/plugins/fulltext-search/includes/wpfts_index.php(1866): WPFTS_DB->get_results('select \n\t\t\t\t\tco...', 'ARRAY_A') #4 /home/sbb23215/public_html/portal/wp-content/plugins/fulltext-search/includes/wpfts_core.php(863): WPFTS_Index->get_status() #5 /home/sbb23215/public_html/portal/wp-content/plugins/fulltext-search/fulltext-search.php(207): WPFTS_Core->get_status() #6 /home/sbb23215/public_html/portal/wp-includes/class-wp-hook.php(308): wpfts_custom_js('') #7 /home/sbb23215/public_html/portal/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #8 /home/sbb23215/public_html/portal/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /home/sbb23215/public_html/portal/wp-admin/admin-header.php(163): do_action('admin_head') #10 /home/sbb23215/public_html/portal/wp-admin/plugins.php(605): require_once('/home/sbb23215/...') #11 {main} thrown in /home/sbb23215/public_html/portal/wp-includes/class-wpdb.php on line 1602
    Постоји критична грешка на вашем веб месту. Молимо вас да проверите сандуче своје управљачке е-поште за упутства.

    Сазнајте више о отклањању грешака Вордпресу.

    It is a Serbian Cyrilic site, but on the other site (older one same Cyrillic) plugin still works perfectly.

    Thx


  • Hi @Bards

    It's a very strange issue. Look to the error message, it says "Call to undefined function error_log()" that means "error_log" function was not found. However it's a native PHP function which should be present always.

    https://www.php.net/manual/en/function.error-log.php

    Why it's not defined? It can be your server or your hosting issue. Could you consult your hosting provider's support for that?

    Also there is a link to this code from WPFTS core:

    			$q = 'select 
    					count(*) n_inindex, 
    					sum(if ((force_rebuild = 0) and (build_time != 0), 1, 0)) n_actual
    				from `'.$idx.'index` 
    				where `tsrc` = "wp_posts"';
    			$res = $wpfts_core->db->get_results($q, ARRAY_A);
    
    

    As you can see it's a very simple code that basically should not trigger a critical error.

    Please could you tell me which WPFTS version you tried and which PHP version is used there.

    Thank you!


  • Thank you for this... Your message directed me to check php version that is used on the website.

    I have more websites on the same server, and they all use PHP7.4 but this one was use PHP8.1. When I switched back to 7.4, all is up and running again 🙂

    The conclusion is: It doesn't work with PHP8.1 (I didn't check PHP8.0)

    Thank you.


  • Hi @Bards

    Okay could you still tell me which WPFTS version is there?
    Basically it can be too old, because latest WPFTS version DOES support PHP8.1.


  • The version is 2.46.180 (I think this is the latest one)


  • Hi @Bards

    Officially yes, 2.46.180 is the latest. However there is a pre-release version 2.49.208 that have a lot of fixes including fixed support for PHP8.1+

    I've sent you that version to the private chat, please install it to replace 2.46.180 and try with PHP8.1.

Suggested Topics

  • Search working only when logged-in

    Bugs and Fixes
    1
    0 Votes
    1 Posts
    291 Views
    No one has replied
  • WP Download Manager Files Not Indexed

    Bugs and Fixes
    5
    0 Votes
    5 Posts
    656 Views
    M

    Hi @EpsilonAdmin,

    Thanks for the update.

    It didn't work at first but I found the problem. The WPFTS Add-on for WP Download Manager wasn't passing the $is_enable_external_links parameter to GetCachedFileContent_ByLocalLink, so it wasn't indexing the WPDMPRO external files.

    I changed that, and it did index everything. However, the performance on the WPDMPRO front-end pages was unbelievably slow. It turned out, it was reindexing every file any time it's post was viewed through the front end. So, I set $is_force_reindex to false in the call to GetCachedFileContent_ByLocalLink, and that seemed to fix it.

    I don't know whether the changes I made to my copy of the the WPFTS Add-on for WP Download Manager were correct, but there are definitely some changes required there to make this work.

    It does appear that this functionality will work as long as WPFTS Add-on for WP Download Manager is updated.

    Thanks

  • 0 Votes
    4 Posts
    864 Views
    T

    Hello and thank you for your fast response. We upped the max memory to 512
    M but that did not resolve the issue. I think we need to go to the next step that you suggested.

    Thank you

  • fatal error with Pro version

    Bugs and Fixes
    2
    1 Votes
    2 Posts
    531 Views
    E

    ah. Looks to be my mistake. Did not realize I had to uninstall the free version first.

    Disabled free version and now it's happy.

    thx
    E

  • 1 Votes
    4 Posts
    973 Views
    EpsilonAdminE

    Hi Charles @clapierre

    We just released v1.35.96 which should have the AND/OR issue fixed. Could you check it?

    Thanks! ✋

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors