Deleting Product Sets

Christine G. asked 8 years ago

Hi

I have added the external wordpress images plugin and datafeedr product sets. I have moved one of my categories into the bin 5pm yesterday and left it there but the products still exist am I do something wrong?

Thanks

Christine Gibbons

4 Answers
Dave H. answered 8 years ago

1) Do you have Product Sets set to update? Product Sets -> Configuration -> Updates Enabled

2) Do you have deletes enabled? Product Sets -> Configuration -> Delete Missing Products

3) Do you have a real cron job or just WP cron?

Christine G. answered 8 years ago

Hi Dave

Answers to above

  1. Yes
  2. Yes
  3. I set up a real cron job last week for every 30 mins but the umbrella product set I put into bin last week is still sat there and products still exist.

Also I have a performance warning You have 3739 options set to autoload. This is too many and will be slowing down your site significantly. Contact us through our Q & A section for assistance in fixing this and we’ll deploy a fix specific to your situation.

I have also asked another question in the Q&A regarding image optimisation

Thanks for your help

Bobette K. answered 8 years ago

I am also having the same problem with trashed product set products not being deleted. It could be number 3, the cron job issue (#1 and #2 were already set correctly), but I wanted to share this PHP warning in case it is relevant:

PHP message: PHP Warning: array_values() expects parameter 1 to be array, string given in /home/yourvirtualwedding/www/products/wp-content/plugins/wpi-performance-plugin/wpi-performance-plugin.php on line 2188, referer: http://www.myonlineweddinghelp.com/products/wp-admin/edit.php?post_status=trash&post_type=product

Vasil Y. replied 8 years ago

Hmm, I’m unsure if these loading times are normal. I will turn Dave’s attention to this and get back to you as soon as possible with an answer. The PHP warning itself should not really be affecting the performance as far as I know, however. I’ll get back to you with more information soon.

Bobette K. replied 8 years ago

My product sets are being deleted OK and everything seems to be working. The plug in still throws the PHP warning, I”ve noticed it also when the products list loads in the admin area. Not sure if that effects performance or not, but that page generally takes about 4-5 seconds to load. Here is more info in case it is helpful:
PHP Warning: array_values() expects parameter 1 to be array, string given in /home/yourvirtualwedding/www/products/wp-content/plugins/wpi-performance-plugin/wpi-performance-plugin.php on line 2188

Call Stack:
array_values()
wp-content/plugins/wpi-performance-plugin/wpi-performance-plugin.php:2188
awd_improvewoocommerce_performance()
Unknown location
do_action_ref_array(‘pre_get_posts’)
wp-includes/query.php:2503
WP_Query->get_posts()
wp-includes/query.php:4050
WP_Query->query()
wp-includes/class-wp.php:609
WP->query_posts()
wp-includes/class-wp.php:727
WP->main()
wp-includes/functions.php:963
wp()
wp-admin/includes/post.php:1070
wp_edit_posts_query()
wp-admin/includes/class-wp-posts-list-table.php:142
WP_Posts_List_Table->prepare_items()
wp-admin/edit.php:176

Vasil Y. replied 8 years ago

Greetings Bobette, has your issue been resolved? Let me know if I can help you in some way.

Bobette K. replied 8 years ago

That said, I may have jumped the gun. When I went back to my site I noticed items in the deleted product set are now beginning to show up in my products trash.

Vasil Y. answered 8 years ago

Hey Bobette,

the warning you are getting shouldn’t be affecting your performance – it’s just a warning which can be turned off if you wish it gone. Generally the speeds you are getting should be within normal boundries.

Kind regards!

Bobette K. replied 8 years ago

Thanks, Vasil!

Your Answer


Super Speedy Plugins
Logo