Steps to reproduce:
You will see a blank screen with:
Catchable fatal error: Object of class WP_Term could not be converted to string in /srv/www/sensei-master/htdocs/wp-includes/taxonomy.php on line 2285
504952-zd-woothemes
505189-zd-woothemes
505235-zd-woothemes
505458-zd-woothemes
505507-zd-woothemes
505889-zd-woothemes
506260-zd-woothemes
505805-zd-woothemes
505189-zd-woothemes
506444-zd-woothemes
506476-zd-woothemes
506533-zd-woothemes
506571-zd-woothemes
506743-zd-woothemes
506952-zd-woothemes
507422-zd-woothemes
507485-zd-woothemes
507564-zd-woothemes
507174-zd-woothemes
For what it's worth, this happens on WP 4.6.X as well. I'm unable to add lessons to modules on WP 4.6.X
@scottwyden no issues with lessons/modules in 4.6.1, have you tried that?
It doesn't work with 4.6.1 either
I repro this exact issue in wp 4.7 but master works at 4.6.1
I'm not even on 4.7 yet and still have the issue (on 4.6.1)
try master?
If you're referring to the master from github, no I haven't tried it. I've unfortunately had bad experiences when trying updates from WooCommerce, so I worry it will break things further.
Why worry? Try all things in a staging area first.
Because staging isn't always a true sign of what will happen. There are other things in play. Many times I've updated Woo/Sensei on staging, and locally, with no problem. But once it hit a live server with caching in play, etc, things broke. So I'll wait for an official update before seeing if the issue is fixed.
For the hell of it I just tried the master and it still doesn't work for me on 4.6.1.
You may have other trouble makers installed not just this. Try disabling one plugin at a time and keep narrowing down to isolate.
Can reproduce only for 4.7. Works fine in 4.6.1
馃憤 Thanks @pgk
503978-zd-woothemes
507060-zd-woothemes
507762-zd-woothemes
@pgk possibly related error with courses:
I get a blank screen with:
Catchable fatal error: Object of class WP_Term could not be converted to string in /srv/www/sensei-master/htdocs/wp-includes/taxonomy.php on line 2285
506476-zd-woothemes
508317-zd-woothemes
508413-zd-woothemes
Seeing the same thing. Posted a question about it on wordpress.stackexhange.com over here with some code snippets and debugging results.
@mlwilkerson which version of Sensei are you on? This issue was addressed in 1.9.11
@mlwilkerson if you are referring to #1698 specifically, it will be addressed in the next release
@pgk Thank you. Yes, I did update to 1.9.11 (I should have done that in the first place, of course). It did resolve my immediate problem, which was: the error thrown when updating a lesson that was assigned to a module. #1698 looks related (WP_Term object returned when an array of ids might have been expected), but didn't happen to be the exact same usage scenario in my case.