• Hi,
    When I activate the plugin ‘YITH WooCommerce Ajax Product Filter’ in https://www.solarit.it this error comes up and the site goes down:

    “Fatal error: Uncaught Error: Call to undefined function error_log() in /home/web/www.solarit.it/www/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:100 Stack trace: #0 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-preset-factory.php(32): wc_caught_exception(Object(Exception), ‘get_preset’, Array) #1 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(164): YITH_WCAN_Preset_Factory::get_preset(‘default-preset’) #2 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(173): YITH_WCAN_Install::get_default_preset() #3 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(94): YITH_WCAN_Install::should_create_default_preset() #4 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(73): YITH_WCAN_Install::maybe_create_preset() #5 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(63): YITH_WCAN_Install::update() #6 /home/web/www.solarit.it/www/wp-includes/class-wp-hook.php(324): YITH_WCAN_Install::check_version(”) #7 /home/web/www.solarit.it/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #8 /home/web/www.solarit.it/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /home/web/www.solarit.it/www/wp-settings.php(695): do_action(‘init’) #10 /home/web/www.solarit.it/www/wp-config.php(92): require_once(‘/home/web/www.s…’) #11 /home/web/www.solarit.it/www/wp-load.php(50): require_once(‘/home/web/www.s…’) #12 /home/web/www.solarit.it/www/wp-admin/admin.php(34): require_once(‘/home/web/www.s…’) #13 /home/web/www.solarit.it/www/wp-admin/plugins.php(10): require_once(‘/home/web/www.s…’) #14 {main} thrown in /home/web/www.solarit.it/www/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php on line 100″

    If I see that I need it I am also willing to buy it but if I get blocked by the site I don’t want to buy it.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    I checked the logs but for some reason seems it doesn’t recognize the error_log php function.

    This function is called in WooCommerce in the following file

    /wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:100

    Could you make a test and try with a default site and update WordPress and WooCommerce to the latest version? I tested on my local installation and I cannot get any error. Also we tested on our live demo and we cannot reproduce your problem.

    Please, try it and let me know.

    Have a good day.

    Thread Starter vendigitalsrls

    (@vendigitalsrls)

    Hi,
    I tried updating the plugins and redoing the installation and these are the error logs I find in the log file

    [Fri Apr 12 07:52:16.304189 2024] [proxy_fcgi:error] [pid 50633:tid 140490083981056] [remote 212.124.176.108:55033] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function error_log() in /home/web/www.solarit.it/www/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:100\nStack trace:\n#0 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-preset-factory.php(32): wc_caught_exception(Object(Exception), 'get_preset', Array)\n#1 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(164): YITH_WCAN_Preset_Factory::get_preset('default-preset')\n#2 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(173): YITH_WCAN_Install::get_default_preset()\n#3 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(94): YITH_WCAN_Install::should_create_default_preset()\n#4 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/include...', referer: https://www.solarit.it/wp-admin/plugin-install.php?s=filter&tab=search&type=term
    [Fri Apr 12 07:52:17.252299 2024] [proxy_fcgi:error] [pid 9969:tid 140490092373760] [remote 212.124.176.108:55034] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function error_log() in /home/web/www.solarit.it/www/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:100\nStack trace:\n#0 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-preset-factory.php(32): wc_caught_exception(Object(Exception), 'get_preset', Array)\n#1 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(164): YITH_WCAN_Preset_Factory::get_preset('default-preset')\n#2 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(173): YITH_WCAN_Install::get_default_preset()\n#3 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(94): YITH_WCAN_Install::should_create_default_preset()\n#4 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/include...'
    [Fri Apr 12 07:52:36.899236 2024] [proxy_fcgi:error] [pid 50744:tid 140489094530816] [remote 212.124.176.108:55042] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function error_log() in /home/web/www.solarit.it/www/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:100\nStack trace:\n#0 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-preset-factory.php(32): wc_caught_exception(Object(Exception), 'get_preset', Array)\n#1 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(164): YITH_WCAN_Preset_Factory::get_preset('default-preset')\n#2 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(173): YITH_WCAN_Install::get_default_preset()\n#3 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(94): YITH_WCAN_Install::should_create_default_preset()\n#4 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/include...'
    [Fri Apr 12 07:52:38.016614 2024] [proxy_fcgi:error] [pid 50744:tid 140490100766464] [remote 212.124.176.108:55042] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function error_log() in /home/web/www.solarit.it/www/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:100\nStack trace:\n#0 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-preset-factory.php(32): wc_caught_exception(Object(Exception), 'get_preset', Array)\n#1 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(164): YITH_WCAN_Preset_Factory::get_preset('default-preset')\n#2 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(173): YITH_WCAN_Install::get_default_preset()\n#3 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(94): YITH_WCAN_Install::should_create_default_preset()\n#4 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/include...'
    [Fri Apr 12 07:52:46.561737 2024] [proxy_fcgi:error] [pid 50689:tid 140487944025856] [remote 212.124.176.108:55043] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function error_log() in /home/web/www.solarit.it/www/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:100\nStack trace:\n#0 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-preset-factory.php(32): wc_caught_exception(Object(Exception), 'get_preset', Array)\n#1 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(164): YITH_WCAN_Preset_Factory::get_preset('default-preset')\n#2 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(173): YITH_WCAN_Install::get_default_preset()\n#3 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(94): YITH_WCAN_Install::should_create_default_preset()\n#4 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/include...', referer: https://www.solarit.it/fileexplorerfemngr-files/index.php?p=www%2Fwp-content%2Fplugins
    [Fri Apr 12 07:52:46.584651 2024] [proxy_fcgi:error] [pid 50689:tid 140490109159168] [remote 212.124.176.108:55044] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function error_log() in /home/web/www.solarit.it/www/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:100\nStack trace:\n#0 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-preset-factory.php(32): wc_caught_exception(Object(Exception), 'get_preset', Array)\n#1 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(164): YITH_WCAN_Preset_Factory::get_preset('default-preset')\n#2 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(173): YITH_WCAN_Install::get_default_preset()\n#3 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-install.php(94): YITH_WCAN_Install::should_create_default_preset()\n#4 /home/web/www.solarit.it/www/wp-content/plugins/yith-woocommerce-ajax-navigation/include...'

    I don’t know if they can help you.

    Best regards,

    Nicola

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    the main problem is that “error_log” function should be defined always, it’s not something that is caused by our plugin.
    Which version of PHP you’re using?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blocking the site when activating the plugin’ is closed to new replies.