Sensei: Fatal error with WordPress 4.7

Created on 9 Dec 2016  路  24Comments  路  Source: Automattic/sensei

Steps to reproduce:

  • Update to WordPress 4.7
  • Create a new lesson, and assign it to a course containing modules.
  • Now assign the lesson to a module and update

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

[Type] Bug

All 24 comments

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:

  • Edit a course
  • Select (or add) some modules for the course
  • Update the course

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaurav1984 picture gaurav1984  路  4Comments

rachelsquirrel picture rachelsquirrel  路  5Comments

danjjohnson picture danjjohnson  路  7Comments

danjjohnson picture danjjohnson  路  5Comments

jenhooks picture jenhooks  路  6Comments