Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33913 closed defect (bug) (invalid)

WP 4.3.1 - Fatal error: Method missing from WP_Meta_Query

Reported by: diavollo03 Owned by:
Priority: normal Milestone:
Component: General Version: 4.4
Severity: normal Keywords:
Cc: Focuses:

Description

<b>Fatal error</b>: Call to undefined method WP_Meta_Query::has_or_relation() in <b>/Users/diavollo03/Work/cogdesign.com/cog-repo/public/wp-includes/user.php</b> on line <b>713</b><br /

I fixed it by adding

public function has_or_relation() {
		return ( $this->relation == 'OR' );
	}

in ./wp-includes/meta.php at line 1569

Change History (1)

#1 @swissspidy
11 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

This method has been added in WordPress 4.3.0, see https://core.trac.wordpress.org/browser/tags/4.3/src/wp-includes/meta.php#L1603, so the error must be somewhere else. Perhaps the update on your server was interrupted. Manually uploading the files from 4.3.1 should work in such a case.

Note: See TracTickets for help on using tickets.