Error when updating to 3.16.5
-
First of all I need to point out that I did not created quizzes so I do not have them ??
After upgrade my WP died returning only 500 ??
I’ve disabled plugin via db. Ok – back to normal.Then when I tried switch on Lifter form plugin manager then I got error (path partially anonymised):
Fatal error: Can’t use method return value in write context in /****/****/wp-content/plugins/lifterlms/includes/models/model.llms.question.php on line 406
So I modified file:
public function has_image() { // $img = $this->get( 'image' ); // if ( is_array( $img ) ) { // if ( ! empty( $img['enabled'] ) && ( ! empty( $img['id'] ) || ! empty( $img['src'] ) ) ) { // return ( 'yes' === $img['enabled'] ); // } // } return false; } /** * Determine if a featured video is enabled & not empty * @return bool * @since 3.16.0 * @version 3.16.0 */ public function has_video() { // return ( 'yes' === $this->get( 'video_enabled' ) && ! empty( $this->get( 'video_src' ) ) ); return false; } /** * Access question manager (used for question groups) * @todo need to prevent access for non-group questions... * @return obj * @since 3.16.0 * @version 3.16.0 */
And it started – ok
Then I migrated DB – it passed.What to do with this changes? Backup succeeded but should I care about this code modification?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Error when updating to 3.16.5’ is closed to new replies.