[wp-trac] [WordPress Trac] #31246: Notice: Undefined offset: 0 in wp-includes/query.php on line 3877
WordPress Trac
noreply at wordpress.org
Fri Feb 6 16:17:05 UTC 2015
#31246: Notice: Undefined offset: 0 in wp-includes/query.php on line 3877
-------------------------------+------------------------------
Reporter: Mediastuttgart | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by boonebgorges):
* keywords: => reporter-feedback
Comment:
Mediastuttgart - Thanks for the report. What you've described is a little
odd. The logic in question is:
{{{
$queried_taxonomies = array_keys( $tax_query_in_and );
$matched_taxonomy = reset( $queried_taxonomies );
$query = $tax_query_in_and[ $matched_taxonomy ];
}}}
Line 3877 is the last line. It's not clear to me how we could fetch array
keys on the first line, but then on the last line the system could
complain that the array key doesn't exist :) Could you do some debugging
to show the contents of the following variables at this point?
`$tax_query_in_and`, `$this->tax_query`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31246#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list