Plugin errored out and I had to diable it
-
This plugin is ideal for what I need. I added the plugin and then set up 1 product to be dependent on another – it worked perfectly. However when I then tried it with another pair of products my site errored with the following:
WordPress version 6.3.2 Active theme: Thrive Theme Builder (version 3.28) Current plugin: Stock Dependencies for WooCommerce (version 1.6) PHP version 8.0.30 Error Details ============= An error of type E_ERROR was caused in line 345 of the file mydomain/public_html/wp-content/plugins/wc-stock-dependencies/admin.php. Error message: Uncaught TypeError: intdiv(): Argument #2 ($num2) must be of type int, string given in mydomain/public_html/wp-content/plugins/wc-stock-dependencies/admin.php:345 Stack trace: #0 mydomain/public_html/wp-content/plugins/wc-stock-dependencies/admin.php(345): intdiv() #1 mydomain/public_html/wp-includes/class-wp-hook.php(310): StockDependenciesForWooCommerceAdmin\Admin->product_get_stock_quantity() #2 mydomain/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 mydomain/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(884): apply_filters() #4 mydomain/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(364): WC_Data->get_prop() #5 mydomain/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1393): WC_Product->get_stock_quantity() #6 mydomain/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1414): WC_Product->validate_props() #7 mydomain/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(424): WC_Product->save() #8 mydomain/public_html/wp-includes/class-wp-hook.php(310): WC_Meta_Box_Product_Data::save() #9 mydomain/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #10 mydomain/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #11 mydomain/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(273): do_action() #12 mydomain/public_html/wp-includes/class-wp-hook.php(312): WC_Admin_Meta_Boxes->save_meta_boxes() #13 mydomain/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #14 mydomain/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #15 mydomain/public_html/wp-includes/post.php(4753): do_action() #16 mydomain/public_html/wp-includes/post.php(4855): wp_insert_post() #17 mydomain/public_html/wp-admin/includes/post.php(445): wp_update_post() #18 mydomain/public_html/wp-admin/post.php(227): edit_post() #19 {main} thrown
Any ideas as I’d love to use this plugin? Thanks
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Plugin errored out and I had to diable it’ is closed to new replies.