lat9 / options_stock_support

Products' Options' Stock Manager: Support Thread
0 stars 3 forks source link

PHP Warning: Undefined property: products_options_stock_observer::$enabled in products_options_stock_functions.php #46

Closed torvista closed 3 years ago

torvista commented 3 years ago

ZC158, php8.0.1, when viewing admin category/product listing. Using latest vanilla 158 admin/category_product_listing file with notifiers.

[04-Feb-2021 11:45:26 Europe/Madrid] Admin Request URI: /tienda-158/admin.../index.php?cmd=category_product_listing&cPath=47 IP address: 127.0.0.1

1 is_pos_product() called at [CATALOG/admin.../includes/classes/observers/class.products_options_stock_admin_observer.php:452]

2 products_options_stock_observer->update() called at [CATALOG/includes/classes/traits/NotifierManager.php:82]

3 base->notify() called at [CATALOG/admin.../category_product_listing.php:887]

4 require(CATALOG/admin.../category_product_listing.php) called at [CATALOG/admin.../index.php:11]

--> PHP Warning: Undefined property: products_options_stock_observer::$enabled in 158\includes\functions\products_options_stock_functions.php on line 44.

which is

    if (!$posObserver->enabled) {
        return false;
    }
torvista commented 3 years ago

Doh, can't see straight. Already fixed with last update.