Hi, I am trying to bulk edit several products, just simply adding 1 tag to them all.

this crashes and i get a browser error message. I am using woocommerce and have swithed of most of my plugins too. Heres some logs thingys you may understand :wink:

Much appreciate any help , i have hundreds of products that i need to add attributes and variations to for the shop very shortly …hope this helps –

Woocommerce Log

fatal-errors-2018-09-06-2af271b1fbf51a178af716e370764015.log

2018-09-06T01:37:29+00:00 CRITICAL Call to a member function set_stock_status() on boolean`

### WordPress Environment ###

Home URL:

https://www.scottishlandscapepainting.co.uk

Site URL:

https://www.scottishlandscapepainting.co.uk

WC Version: 3.4.5

Log Directory Writable: ?

WP Version: 4.9.8

WP Multisite: –

WP Memory Limit: 768 MB

WP Debug Mode: –

WP Cron: ?

Language: en_GB

External object cache: –

### Server Environment ###

Server Info: Apache

PHP Version: 7.0.31 – We recommend using PHP

version 7.2 or above for greater performance

and security. How to update your PHP version

PHP Post Max Size: 128 MB

PHP Time Limit: 120

PHP Max Input Vars: 30000

cURL Version: 7.59.0

OpenSSL/1.0.2k

SUHOSIN Installed: –

MySQL Version: 5.6.40-84.0-log

Max Upload Size: 128 MB

Default Timezone is UTC: ?

fsockopen/cURL: ?

SoapClient: ?

DOMDocument: ?

GZip: ?

Multibyte String: ?

Remote Post: ?

Remote Get: ?

### Database ###

WC Database Version: 3.4.5

WC Database Prefix: wp_

Total Database Size: 95.88MB

Database Data Size: 76.78MB

Database Index Size: 19.10MB

wp_woocommerce_sessions: Data: 14.58MB +

Index: 0.30MB

wp_woocommerce_api_keys: Data: 0.02MB + Index:

0.03MB

wp_woocommerce_attribute_taxonomies: Data:

0.02MB + Index: 0.02MB

wp_woocommerce_downloadable_product_permission

s: Data: 0.02MB + Index: 0.05MB

wp_woocommerce_order_items: Data: 0.30MB +

Index: 0.08MB

wp_woocommerce_order_itemmeta: Data: 1.52MB +

Index: 0.55MB

wp_woocommerce_tax_rates: Data: 0.02MB +

Index: 0.06MB

wp_woocommerce_tax_rate_locations: Data:

0.02MB + Index: 0.05MB

wp_woocommerce_shipping_zones: Data: 0.02MB +

Index: 0.00MB

wp_woocommerce_shipping_zone_locations: Data:

0.02MB + Index: 0.05MB

wp_woocommerce_shipping_zone_methods: Data:

0.02MB + Index: 0.00MB

wp_woocommerce_payment_tokens: Data: 0.02MB +

Index: 0.02MB

wp_woocommerce_payment_tokenmeta: Data: 0.02MB

+ Index: 0.03MB

wp_woocommerce_log: Data: 0.02MB + Index:

0.02MB

wp_arscodess_gp: Data: 0.02MB + Index: 0.00MB

wp_arscodess_pi: Data: 0.02MB + Index: 0.00MB

wp_cntctfrm_field: Data: 0.02MB + Index:

0.00MB

wp_commentmeta: Data: 0.04MB + Index: 0.03MB

wp_comments: Data: 0.15MB + Index: 0.06MB

wp_cptch_images: Data: 0.02MB + Index: 0.00MB

wp_cptch_packages: Data: 0.02MB + Index:

0.00MB

wp_cptch_whitelist: Data: 0.02MB + Index:

0.02MB

wp_displaywidget: Data: 0.00MB + Index: 0.00MB

wp_dops_images: Data: 0.00MB + Index: 0.00MB

wp_dops_settings: Data: 0.00MB + Index: 0.00MB

wp_dops_sliders: Data: 0.00MB + Index: 0.00MB

wp_hctpc_images: Data: 0.02MB + Index: 0.00MB

wp_hctpc_packages: Data: 0.02MB + Index:

0.00MB

wp_hctpc_whitelist: Data: 0.02MB + Index:

0.02MB

wp_links: Data: 0.00MB + Index: 0.00MB

wp_nextend2_image_storage: Data: 0.02MB +

Index: 0.02MB

wp_nextend2_section_storage: Data: 0.08MB +

Index: 0.03MB

wp_nextend2_smartslider3_generators: Data:

0.02MB + Index: 0.00MB

wp_nextend2_smartslider3_sliders: Data: 0.03MB

+ Index: 0.00MB

wp_nextend2_smartslider3_sliders_xref: Data:

0.02MB + Index: 0.00MB

wp_nextend2_smartslider3_slides: Data: 0.05MB

+ Index: 0.00MB

wp_options: Data: 7.91MB + Index: 0.35MB

wp_postmeta: Data: 20.46MB + Index: 4.95MB

wp_posts: Data: 5.14MB + Index: 0.52MB

wp_redirection_404: Data: 2.02MB + Index:

1.92MB

wp_redirection_groups: Data: 0.02MB + Index:

0.03MB

wp_redirection_items: Data: 0.36MB + Index:

0.34MB

wp_redirection_logs: Data: 0.20MB + Index:

0.08MB

wp_smush_dir_images: Data: 0.02MB + Index:

0.03MB

wp_swift_performance_image_optimizer: Data:

5.52MB + Index: 2.52MB

wp_swift_performance_warmup: Data: 0.13MB +

Index: 0.17MB

wp_termmeta: Data: 0.08MB + Index: 0.08MB

wp_terms: Data: 0.18MB + Index: 0.24MB

wp_term_relationships: Data: 0.27MB + Index:

0.48MB

wp_term_sorting: Data: 0.00MB + Index: 0.00MB

wp_term_taxonomy: Data: 0.14MB + Index: 0.14MB

wp_usermeta: Data: 0.04MB + Index: 0.02MB

wp_users: Data: 0.00MB + Index: 0.01MB

wp_vslider: Data: 0.00MB + Index: 0.01MB

wp_wc_download_log: Data: 0.02MB + Index:

0.03MB

wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB

wp_wplnst_scans: Data: 0.02MB + Index: 0.08MB

wp_wplnst_scans_objects: Data: 0.02MB + Index:

0.05MB

wp_wplnst_urls: Data: 1.52MB + Index: 1.06MB

wp_wplnst_urls_locations: Data: 4.02MB +

Index: 2.55MB

wp_wplnst_urls_locations_att: Data: 0.02MB +

Index: 0.06MB

wp_wplnst_urls_status: Data: 8.16MB + Index:

0.94MB

wp_wpsc_also_bought: Data: 0.00MB + Index:

0.00MB

wp_wpsc_cart_contents: Data: 0.04MB + Index:

0.00MB

wp_wpsc_cart_item_meta: Data: 0.08MB + Index:

0.14MB

wp_wpsc_checkout_forms: Data: 0.00MB + Index:

0.01MB

wp_wpsc_claimed_stock: Data: 0.00MB + Index:

0.01MB

wp_wpsc_coupon_codes: Data: 0.00MB + Index:

0.00MB

wp_wpsc_currency_list: Data: 0.02MB + Index:

0.01MB

wp_wpsc_download_status: Data: 0.00MB + Index:

0.00MB

wp_wpsc_meta: Data: 0.14MB + Index: 0.05MB

wp_wpsc_product_rating: Data: 0.00MB + Index:

0.00MB

wp_wpsc_purchase_logs: Data: 0.03MB + Index:

0.01MB

wp_wpsc_purchase_meta: Data: 0.02MB + Index:

0.08MB

wp_wpsc_region_tax: Data: 0.00MB + Index:

0.00MB

wp_wpsc_submited_form_data: Data: 0.10MB +

Index: 0.09MB

wp_wpsc_visitors: Data: 0.06MB + Index: 0.06MB

wp_wpsc_visitor_meta: Data: 0.16MB + Index:

0.19MB

wp_yoast_seo_links: Data: 2.52MB + Index:

0.33MB

wp_yoast_seo_meta: Data: 0.11MB + Index:

0.00MB

### Post Type Counts ###

acf: 2

acf-field: 15

acf-field-group: 2

attachment: 1906

customize_changeset: 1

jetpack_migration: 2

nav_menu_item: 14

oembed_cache: 3

page: 41

post: 42

product: 399

product_variation: 2243

revision: 15

shop_coupon: 3

shop_order: 859

thethe-slider: 1

wpsc-product: 89

wpsc-product-file: 9

### Security ###

Secure connection (HTTPS): ?

Hide errors from visitors: ?

### Active Plugins (17) ###

Advanced Custom Fields PRO: by Elliot Condon –

5.7.5

Captcha: by simplywordpress – 4.4.5

Enable Media Replace: by ShortPixel – 3.2.7

MailChimp: by MailChimp – 1.5.7

Really Simple SSL pro: by Rogier Lankhorst –

2.0.18

Really Simple SSL: by Rogier Lankhorst

Mark Wolters – 3.0.5

Redirection: by John Godley – 3.4.1

Storefront Site Logo: by Wooassist – 1.2.3

Swift Performance Lite: by SWTE – 1.8.5

UpdraftPlus – Backup/Restore: by

UpdraftPlus.Com

DavidAnderson – 1.14.13

WooCommerce: by Automattic – 3.4.5

Yoast SEO Premium: by Team Yoast – 8.1.2

WP Gallery Custom Links: by johnogg – 1.12

WP Broken Link Status Checker: by Pau Iglesias

SeedPlugins – 1.0.4

WP-Optimize: by David Anderson

Ruhani Rabin

Team Updraft – 2.2.4

WPMU DEV Dashboard: by WPMU DEV – 4.5.2

Yoast SEO: WooCommerce: by Team Yoast – 8.1 –

Not tested with the active version of

WooCommerce

### Settings ###

API Enabled: ?

Force SSL: –

Currency: GBP (£)

Currency Position: left

Thousand Separator: ,

Decimal Separator: .

Number of Decimals: 2

Taxonomies: Product Types: external (external)

grouped (grouped)

simple (simple)

variable (variable)

Taxonomies: Product Visibility: exclude-from-

catalog (exclude-from-catalog)

exclude-from-search (exclude-from-search)

featured (featured)

outofstock (outofstock)

rated-1 (rated-1)

rated-2 (rated-2)

rated-3 (rated-3)

rated-4 (rated-4)

rated-5 (rated-5)

### WC Pages ###

Shop base: #4 – /products-page/

Basket: #5 – /products-page/checkout/

Checkout: #14076 – /products-page/shopping-

cart/

Woocommerce status report –

My account: ? Page not set

Terms and conditions: ? Page not set

### Theme ###

Name: Storefront Child Theme – Scottish

Landscape Paintings

Version: 1.0.0

Author URL: http://stuartduff.com

Child Theme: ?

Parent Theme Name: Storefront

Parent Theme Version: 2.3.3

Parent Theme Author URL:

https://woocommerce.com/

WooCommerce Support: ?

### Templates ###

Overrides:

scottishlandscapes/woocommerce/archive-

product.php

scottishlandscapes/woocommerce/content-

product.php

`

Browser error message –

Fatal error: Uncaught Error: Call to a member

function set_stock_status() on boolean in

/home/underth9/public_html/scottishlandscapepa

inting.com/wp-

content/plugins/woocommerce/includes/admin/cla

ss-wc-admin-post-types.php:641 Stack trace: #0

/home/underth9/public_html/scottishlandscapepa

inting.com/wp-

content/plugins/woocommerce/includes/admin/cla

ss-wc-admin-post-types.php(313):

WC_Admin_Post_Types->bulk_edit_save(39042,

Object(WC_Product_Variable)) #1

/home/underth9/public_html/scottishlandscapepa

inting.com/wp-includes/class-wp-hook.php(286):

WC_Admin_Post_Types-

>bulk_and_quick_edit_save_post(39042, Object

(WP_Post)) #2

/home/underth9/public_html/scottishlandscapepa

inting.com/wp-includes/class-wp-hook.php(310):

WP_Hook->apply_filters(”, Array) #3

/home/underth9/public_html/scottishlandscapepa

inting.com/wp-includes/plugin.php(453):

WP_Hook->do_action(Array) #4

/home/underth9/public_html/scottishlandscapepa

inting.com/wp-

content/plugins/woocommerce/includes/admin/cla

ss-wc-admin-post-types.php(280): do_action

(‘woocommerce_pro. in

/home/underth9/public_html/scottishlandscapepa

inting.com/wp-

content/plugins/woocommerce/includes/admin/cla

ss-wc-admin-post-types.php on line 641

  • Adam
    • Support Gorilla

    Hello Andy peutherer

    I hope you’re well today and thank you for your question!

    The line from the log that you quoted is the main representation of the issue:

    2018-09-06T01:37:29+00:00 CRITICAL Call to a member function set_stock_status() on boolean`

    The “set_stock_status()” function is triggered upon product update. It should receive some valid stock status as a parameter but instead it receives a boolean (true/false) value which is usually a sign of some other related part of the code failing.

    Unfortunately, it’s a bit hard to “guess” what that could be. It could be a conflict with another plugin but since you have disabled all the plugins and that didn’t help, it must be caused buy something different.

    A look at the stack trace that you provided and the WooCommerce code suggests that this is somehow related to variable products (your products are variable, right?). It seems like the plugin finds out that there are variations of the product but for some reason cannot pickup their IDs.

    Is there anything that’s been seriously changed recently regarding these products’ settings maybe? Would you also enable support access to the site so I could just take a look at that? You can do it by going to the “WPMU DEV -> Support” page in the site back-end and click on “Grant support access” button there.

    Best regards,

    Adam