• Resolved jkenney23

    (@jkenney23)


    I’m getting the following error:

    Fatal error: Uncaught Error: Call to undefined method Pektsekye_Ymm_Model_Db::hasVehicleData() in /var/www/html/wp-content/plugins/ymm-search/Block/Adminhtml/Product/Edit/Restriction.php:33 Stack trace: #0 /var/www/html/wp-content/plugins/ymm-search/Block/Adminhtml/Product/Edit/Restriction.php(77): Pektsekye_Ymm_Block_Adminhtml_Product_Edit_Restriction->hasYmmData() #1 /var/www/html/wp-includes/class-wp-hook.php(308): Pektsekye_Ymm_Block_Adminhtml_Product_Edit_Restriction->add_tab_fields() #2 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #3 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /var/www/html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php(54): do_action() #5 /var/www/html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include(‘…’) #6 /var/www/html/wp-admin/includes/template.php(1445): WC_Meta_Box_Product_Data::output() #7 /var/www/html/wp-admin/edit-form-advanced.php(688): do_meta_boxes() #8 /var/www/html/wp-admin/post.php(206): require(‘…’) #9 {main} thrown in?/var/www/html/wp-content/plugins/ymm-search/Block/Adminhtml/Product/Edit/Restriction.php?on line?33

    I’ve got the year_first_dropdown, product_is_not_compatible_text, and search_button_inline_horizontal_and_moible_view modifications installed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Check if the file:
    wp-content/plugins/ymm-search/Model/Db.php

    contains the function:

    
         public function hasVehicleData()     
        {
          $value = $this->_wpdb->get_var("SELECT EXISTS (SELECT 1 FROM {$this->_mainTable})");
          return $value == 1;         
        }
    

    If there is no such function try to add it.

    Stanislav

    Thread Starter jkenney23

    (@jkenney23)

    That did it. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error, can’t find function hasVehicleData()’ is closed to new replies.