• Resolved yooshimooshi

    (@yooshimooshi)


    Hi
    thank you for your very good plug in.
    i Have installed your woocommerce ajax serach plugin recently
    but i think there is a problem in it
    there are a php error in of your plugin files and the whole site is stop working after install your plugin :

    [02-Aug-2017 21:42:18 Asia/Tehran] PHP Fatal error: Call to undefined method WC_AJAX::get_endpoint() in /home/…./public_html/wp-content/plugins/ajax-search-for-woocommerce/includes/register-scripts.php on line 55

    what is the problem ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi,
    It seems that you didn’t have installed WooCommerce. Of course the PHP error shouldn’t appear. Instead it should display a admin notice. My mistake. I will fix it in the next plugin release.

    Best
    Damian

    Thread Starter yooshimooshi

    (@yooshimooshi)

    thank you for your answer but I know the difference of installed or not installed of woocommerce when i do debuging your code!

    I have alredy installed Woocommerce 2.3.11 with some other woocommerce plugins that work very well when i remove your plugin!!! i have many products added and they can be added to woocommerce cart in my site and order by customers!

    I have uploaded a demo on this url: terne.ir
    i have commentted the line of the php code that get fetal error and now your serchbox will apear but nothing will be searched!

    Plugin Author Damian Góra

    (@damian-gora)

    Forgive me for that. It was the first and simplest thought that came to my mind.

    You mentioned that you use WooCommerce 2.3.11. That’s the reason. The method WC_AJAX::get_endpoint() is available since WC 2.4.0. Could you safely update your WooCommerce to 2.4.0?

    Thread Starter yooshimooshi

    (@yooshimooshi)

    I have many conffiguratons and other plugins and other custom works on this version and i think upgrading may break something
    is there any other solution to get your plugin working on this version ?!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Php Error in your plugin : Call to undefined method WC_AJAX::get_endpoint()’ is closed to new replies.