• Resolved brownbagmarketing

    (@brownbagmarketing)


    I updated Woocommerce Square in my local environment today, everything seems to be running locally, after pushing to my client’s dev site, the admin area won’t come up and I get this message:

    Fatal error: Uncaught Error: Class ‘WooCommerce\Square\Admin\Products’ not found in /home/esabbm/public_html/wp-content/plugins/woocommerce-square/includes/Admin.php:60 Stack trace: #0 /home/esabbm/public_html/wp-content/plugins/woocommerce-square/includes/Plugin.php(214): WooCommerce\Square\Admin->__construct(Object(WooCommerce\Square\Plugin)) #1 /home/esabbm/public_html/wp-includes/class-wp-hook.php(286): WooCommerce\Square\Plugin->init_plugin(”) #2 /home/esabbm/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/esabbm/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /home/esabbm/public_html/wp-settings.php(394): do_action(‘plugins_loaded’) #5 /home/esabbm/public_html/wp-config.php(205): require_once(‘/home/esabbm/pu…’) #6 /home/esabbm/public_html/wp-load.php(37): require_once(‘/home/esabbm/pu…’) #7 /home/esabbm/public_html/wp-admin/admin.php(34): require_once(‘/home/esabbm/pu…’) #8 /home/esabbm/public_html/wp-admin/index.php(10): require_once(‘/home/ in /home/esabbm/public_html/wp-content/plugins/woocommerce-square/includes/Admin.php on line 60

    Not much to go on for this error message out on the interwebs.

    Any suggestions? I can’t push these changes to prod and risk breaking it there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter brownbagmarketing

    (@brownbagmarketing)

    I deleted the plugin from dev and reinstalled it and the admin are is working again.
    This does not make me comfortable.

    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    Hi @brownbagmarketing,

    Thank you for letting us know about this problem! The error message you’re seeing means that the module connecting products between WooCommerce and Square couldn’t be loaded at all. This usually means that some of the plugin files weren’t installed correctly. The particular class that went missing this time is located in the file woocommerce-square/includes/Admin/Products.php

    As far as I understand, this problem only happened after pushing changes from your local environment to the client’s developer site, is that correct? Can you please describe your deployment process in the details? The first thing that comes to my mind is that some files were copied correctly but not the others, so knowing what tools and protocols were used in the process will be a great first step to understand what has happened, and how we can prevent similar problems in the future.

    Thanks!

    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’ll mark this thread as resolved now. If you have some more questions, feel free to start a new one.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘‘WooCommerce\Square\Admin\Products’ not found’ is closed to new replies.