• Resolved matteo raggi

    (@whichtransfers)


    I have woocommerce and wordpress at the last version and php 8.0 and I receive this error if I enable this plugin:
    Fatal error: Uncaught Error: Undefined constant “WC_VERSION” in /home/mhd-01/www.micapoco.it/htdocs/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay.php:40 Stack trace: #0 /home/mhd-01/www.micapoco.it/htdocs/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay.php(16): Pay4Pay->__construct() #1 /home/mhd-01/www.micapoco.it/htdocs/wp-content/plugins/woocommerce-pay-for-payment/woocommerce-payforpayment.php(32): Pay4Pay::instance() #2 /home/mhd-01/www.micapoco.it/htdocs/wp-includes/class-wp-hook.php(307): pay4payment_plugin_init() #3 /home/mhd-01/www.micapoco.it/htdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #4 /home/mhd-01/www.micapoco.it/htdocs/wp-includes/plugin.php(476): WP_Hook->do_action() #5 /home/mhd-01/www.micapoco.it/htdocs/wp-settings.php(461): do_action() #6 /home/mhd-01/www.micapoco.it/htdocs/wp-config.php(85): require_once(‘…’) #7 /home/mhd-01/www.micapoco.it/htdocs/wp-load.php(50): require_once(‘…’) #8 /home/mhd-01/www.micapoco.it/htdocs/wp-blog-header.php(13): require_once(‘…’) #9 /home/mhd-01/www.micapoco.it/htdocs/index.php(17): require(‘…’) #10 {main} thrown in /home/mhd-01/www.micapoco.it/htdocs/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay.php on line 40

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    Hi, this is indeed weird. This should be a constant defining current WooCommerce version. Could you double-check that the WooCommerce hasn’t been deactivated?

    Sorry for the trouble, we’ll find it out
    Best regards
    Karolina

    Thread Starter matteo raggi

    (@whichtransfers)

    Yes, woocommerce got deactivated cause ofa conflict with a plugin, ah maybe it was another plugin doing that, because after deleting the folder woocommerce-pay-for-payment also this other plugin was blocking the site:
    woo-extra-product-options/ I will contact that author too, thanks.

    Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    Cool. My fingers are crossed.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error class-pay4pay.php on line 40’ is closed to new replies.