RE: "I assume we are talking about the option of Woocommerce Views plugin, in Dashboard-> Toolset-> Woocommerce Views
option "Static Product Fields for Parametric Searches"."
Yes
RE: "Have you tried the option "Manually", and click button "Calculate Now"?"
Yes, and it shows no indication that it actually finished. The progress indicator sits there and spins forever, and disappears if you refresh the page. This is also not an option for the production environment as the import runs automatically every night and it has to occur at ~4am, so running it manually everyday isn't going to work.
RE: "Did you get any PHP debug logs when you run the "batch update"?"
Yes, I'm getting the following errors:
- Fatal Errors:
-- Maximum execution time of 30 seconds exceeded
- Slow Running Errors for the following functions:
-- wc_setup_product_data()
-- wcviews_setup_product_data()
-- ajax_process_wc_views_batchprocessing()
RE: "If you get a "Connection Timed Out" error, you can try to increase the PHP execute time limitation"
This is never an option, so I'm not sure why you're suggesting it. All managed WordPress Hosting Platforms (Flywheel, WPEngine, etc) definitely do not allow you to change the PHP execute time limitation. Shared hosts also do not allow you to change this. Those 2 providers cover the majority of the Internet as far as hosted WordPress sites go.
WooCommerce itself doesn't even attempt to do expensive operations like this in one script execution. The utilize the following classes to process expensive operations as a background process: hidden link
In my experience, you can't perform operations like that on more than ~500 items in one script request, so I imagine this operation is failing miserably on a TON of sites using Toolset WooCommerce Views.
Can you guys please fix this? I was supposed to put a site live this week and just realized this and now my imports fail every night and it wasn't until I looked in the logs today that I knew for sure it was timing out. The GUI gives you no indication that it failed.