Support » Plugin: YITH WooCommerce Ajax Search » Fatal error ( Ajax search + Wishlist || Zoom Magnifier )

  • Hi Guys,

    Since yith-woocommerce-ajax-search 1.5.3

    There is a fatal error (on the search ajax call) when either yith-woocommerce-wishlist or yith-woocommerce-zoom-magnifier are active.

    Tested on a clean installation. Here are the details:

    
    [07-Jun-2017 10:59:47 UTC] PHP Warning:  include_once(plugin-fw/lib/yit-pointers.php): failed to open stream: No such file or directory in /var/www/html/dev/wp718/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php on line 1541
    [07-Jun-2017 10:59:47 UTC] PHP Warning:  include_once(): Failed opening 'plugin-fw/lib/yit-pointers.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/dev/wp718/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php on line 1541
    [07-Jun-2017 10:59:47 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function YIT_Pointers() in /var/www/html/dev/wp718/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php:1568
    Stack trace:
    #0 /var/www/html/dev/wp718/wp-includes/class-wp-hook.php(298): YITH_WCWL_Admin_Init->register_pointer('')
    #1 /var/www/html/dev/wp718/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/html/dev/wp718/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /var/www/html/dev/wp718/wp-admin/admin-ajax.php(44): do_action('admin_init')
    #4 {main}
      thrown in /var/www/html/dev/wp718/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php on line 1568
    [07-Jun-2017 11:00:52 UTC] PHP Warning:  include_once(plugin-fw/lib/yit-pointers.php): failed to open stream: No such file or directory in /var/www/html/dev/wp718/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php on line 1541
    [07-Jun-2017 11:00:52 UTC] PHP Warning:  include_once(): Failed opening 'plugin-fw/lib/yit-pointers.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/dev/wp718/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php on line 1541
    [07-Jun-2017 11:00:52 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function YIT_Pointers() in /var/www/html/dev/wp718/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php:1568
    Stack trace:
    #0 /var/www/html/dev/wp718/wp-includes/class-wp-hook.php(298): YITH_WCWL_Admin_Init->register_pointer('')
    #1 /var/www/html/dev/wp718/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/html/dev/wp718/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /var/www/html/dev/wp718/wp-admin/admin-ajax.php(44): do_action('admin_init')
    #4 {main}
      thrown in /var/www/html/dev/wp718/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php on line 1568
    

    And the system status:

    
    ### WordPress Environment ###
    
    Home URL: http://dev/wp718
    Site URL: http://dev/wp718
    WC Version: 3.0.8
    Log Directory Writable: ✔
    WP Version: 4.7.5
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.18 (Ubuntu)
    PHP Version: 7.0.15-0ubuntu0.16.04.4
    PHP Post Max Size: 32 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.47.0
    OpenSSL/1.0.2g
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.18
    Max Upload Size: 32 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.0.8
    WC Database Prefix: wp_
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    woocommerce_shipping_zones: ✔
    woocommerce_shipping_zone_locations: ✔
    woocommerce_shipping_zone_methods: ✔
    woocommerce_payment_tokens: ✔
    woocommerce_payment_tokenmeta: ✔
    MaxMind GeoIP Database: ❌ The MaxMind GeoIP Database does not exist - Geolocation will not function. You can download and install it manually from http://dev.maxmind.com/geoip/legacy/geolite/ to the path: . Scroll down to "Downloads" and download the "Binary / gzip" file next to "GeoLite Country". Please remember to uncompress GeoIP.dat.gz and upload the GeoIP.dat file only.
    
    ### Security ###
    
    Secure connection (HTTPS): ❌Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ❌Error messages should not be shown to visitors.
    
    ### Active Plugins (3) ###
    
    WooCommerce: by Automattic – 3.0.8
    YITH WooCommerce Ajax Search: by YITHEMES – 1.5.3
    YITH WooCommerce Wishlist: by YITHEMES – 2.1.2
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: ❌ Page not set
    Cart: ❌ Page not set
    Checkout: ❌ Page not set
    My account: ❌ Page not set
    
    ### Theme ###
    
    Name: Twenty Seventeen
    Version: 1.2
    Author URL: https://wordpress.org/
    Child Theme: ❌ – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • I agree with @ksere. I came on here to see if I can find anybody with similar issues and here I am.

    Since Ajax Search 1.5.3, the plugin no longer works with YITH WooCommerce Wishlist. I couldn’t say anything about Zoom Magnifier because I don’t use it.

    I noticed right away when the Ajax search wasn’t loading anything when I updated to 1.5.3. I tested on a staging environment, deactivated plugins besides Ajax Search and started activating one-by-one. As soon as I hit the wishlist plugin it stopped working.

    Thanks ksere for providing the error logs!

    I also have this issue, using Wishlist and AJAX Search.

    Quick Fix: /wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-admin-init.php LINE 1541

    OLD
    include_once( 'plugin-fw/lib/yit-pointers.php' );
    NEW
    include_once( plugin_dir_path( __DIR__ ).'plugin-fw/lib/yit-pointers.php' );

    Thanks yews-grigory for the fix!

    It would be great if we could also get a response from the plugin author.

    Thanks yews-grigory!! I had the same problem and hadn’t noticed that Wishlist was the problem till I found this thread.

    As Ksere says it would be great if we could hear something from the plugin author, and if this is going to be solved in the next update.

    Thanks yews-grigory!!He had the same problem and his tip was solved. o/

    As Ksere says it would be great if we could hear something from the plugin author, and if this is going to be solved in the next update.

    3 months later wondering the very same thing. Anything you could share with us @yithemes ? 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error ( Ajax search + Wishlist || Zoom Magnifier )’ is closed to new replies.