• Resolved khawariftikhar

    (@khawariftikhar)


    Hi I’m new. Try to use Woocommerce for my website.

    Getting this message:

    Fatal error: Uncaught Error: Class 'WC_Data' not found in /home3/kihomcor/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php:15 Stack trace: #0 /home3/kihomcor/public_html/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php(87): require() #1 [internal function]: Automattic\Jetpack\Autoloader\jp1c37d41437aca3a88a6b698473c4d5c4\PHP_Autoloader::load_class('Automattic\\WooC...') #2 [internal function]: spl_autoload_call('Automattic\\WooC...') #3 /home3/kihomcor/public_html/wp-content/plugins/optinmonster/OMAPI/WooCommerce.php(542): class_exists('Automattic\\WooC...') #4 /home3/kihomcor/public_html/wp-includes/class-wp-hook.php(287): OMAPI_WooCommerce->maybe_store_note('') #5 /home3/kihomcor/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /home3/kihomcor/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #7 /home3/kihomcor/public_html/wp-admin/admin.php(175): do_action('admin_init') #8 /home3/kihomcor/publ in /home3/kihomcor/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php on line 15
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    
    Learn more about debugging in WordPress.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @khawariftikhar ,

    I am sorry to see the issue.

    It looks like a conflict issue to me.

    Can you please run through these tests and let me know how it goes?

    1. Switch to a default theme i.e. Twenty Twenty / Storefront
    2. Deactivate all plugins except WooCommerce and then activate it.

    More details on the conflict test here.

    If the above does not help please share your WooCommerce configuration details from wp-admin > WooCommerce > Status so we can understand a bit more about the problem.

    Thank you ??

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

    Thread Starter khawariftikhar

    (@khawariftikhar)

    Hi, Sorry for checking your message so late. Woocommerce started working for me right after I used an ecommerce template for my website. I was confused but its working now.

    Hello,

    I am experiencing the same issue, having the error bellow. Any chance you might know how this can be fixed/bypassed without deactivating the whole website and plugins?

    Thank you in advance!

    An error of type E_ERROR was caused in line 15 of the file /home4/cristik1/public_html/dariastefan/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php. Error message: Uncaught Error: Class 'WC_Data' not found in /home4/cristik1/public_html/dariastefan/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php:15
    Stack trace:
    #0 /home4/cristik1/public_html/dariastefan/wp-content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.php(87): require()
    #1 [internal function]: Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3cjetpack\PHP_Autoloader::load_class('Automattic\\WooC...')
    #2 [internal function]: spl_autoload_call('Automattic\\WooC...')
    #3 /home4/cristik1/public_html/dariastefan/wp-content/plugins/optinmonster/OMAPI/WooCommerce.php(565): class_exists('Automattic\\WooC...')
    #4 /home4/cristik1/public_html/dariastefan/wp-includes/class-wp-hook.php(292): OMAPI_WooCommerce->maybe_store_note('')
    #5 /home4/cristik1/public_html/dariastefan/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #6 /home4/cristik1/public_html/dariastefan/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #7 /home4/cristik1/public_ht

    Hi, I believe I’m getting the same error message on my site after installing Woocommerce. To echo diannageorgia (@diannageorgia), is there Any chance you might know how this can be fixed/bypassed without deactivating the whole website and plugins?

    Thank you in advance!

    `When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.7.1
    Current theme: Divi (version 4.9.4)
    Current plugin: WooCommerce (version 5.2.2)
    PHP version 7.3.27

    Error Details
    =============
    An error of type E_ERROR was caused in line 15 of the file /home1/turnkfd0/public_html/agency/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php. Error message: Uncaught Error: Class ‘WC_Data’ not found in /home1/turnkfd0/public_html/agency/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php:15
    Stack trace:
    #0 /home1/turnkfd0/public_html/agency/wp-content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.php(87): require()
    #1 [internal function]: Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3cjetpack\PHP_Autoloader::load_class(‘Automattic\\WooC…’)
    #2 [internal function]: spl_autoload_call(‘Automattic\\WooC…’)
    #3 /home1/turnkfd0/public_html/agency/wp-content/plugins/optinmonster/OMAPI/WooCommerce.php(565): class_exists(‘Automattic\\WooC…’)
    #4 /home1/turnkfd0/public_html/agency/wp-includes/class-wp-hook.php(292): OMAPI_WooCommerce->maybe_store_note(”)
    #5 /home1/turnkfd0/public_html/agency/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #6 /home1/turnkfd0/public_html/agency/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #7 /home1/turnkfd0/public_html/agency/wp-admin/admin.php(1`

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce: Fatal error: Uncaught Error: Class ‘WC_Data’ not found’ is closed to new replies.