• Resolved mongoliandonut

    (@mongoliandonut)


    I have reinstalled woocommerce automatically, manually, and even FTP. I am unsure why woocommere will not activate. Here is the error:

    E_ERROR was caused in line 15 of the file /home2/chipinf2/public_html/community/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php. Error message: Uncaught Error: Class 'WC_Data' not found in /home2/chipinf2/public_html/community/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php:15
    Stack trace:
    #0 /home2/chipinf2/public_html/community/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 /home2/chipinf2/public_html/community/wp-content/plugins/optinmonster/OMAPI/WooCommerce.php(542): class_exists('Automattic\\WooC...')
    #4 /home2/chipinf2/public_html/community/wp-includes/class-wp-hook.php(292): OMAPI_WooCommerce->maybe_store_note('')
    #5 /home2/chipinf2/public_html/community/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #6 /home2/chipinf2/public_html/community/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #7 /home2/chipinf2/public_html/community

    I opened the filed and looked at line 15 in the note.php and there is just a comment on line 15 I don’t see anywhere for WC_Class? What is missing? I cant find anyone with the same line error. Just people with the E-error

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    This problem could be caused by a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Before you start

    1. First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like?Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    2. Second, I would suggest installing a plugin called?Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without affecting your current site visitors.

    Hi,

    I can’t get into my wordpress cms. So i went to the ftp server and did a check on the error log:

    plugins/woocommerce/lib/packages/League/Container/Container.php on line 1

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Have you tried to disable all your plugins via FTP to see if that restores access to your WordPress site? If not, here is a good guide on how to do it:

    https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

    Also, you can contact your hosting provider so that they can do it for you.

    Please let us know how it goes! ??

    Yes I have done that, so most of the plugins are deactivated. So i’m at the cms now. But what is the problem with: plugins/woocommerce/lib/packages/League/Container/Container.php on line 1

    How can i fix this?

    Looking forward to here from you

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    But what is the problem with: plugins/woocommerce/lib/packages/League/Container/Container.php on line 1

    This problem is normally caused by a conflict with your theme or with another plugin.

    Great! Now that you have access to the CMS, please activate only the WooCommerce plugin and the Storefront theme and check if the error persists.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @dutchallianz,

    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.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘E_Error WC_Class line 15 note.php’ is closed to new replies.