[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 07:28:41 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 | Keywords:
Focuses: |
----------------------------+-----------------------------
Working with a fresh wordpress 4.1 installation and only installing the
polylang plugin, you will receive a `notice: undefined offset: 0 in wp-
includes/query.php on line 3877` when using the language switcher and
select "show all languages".
The backend URL for this request is `wp-
admin/edit.php?post_type=page&lang=all`.
I assume this issue is not plugin related, as there maybe other scenarios
where this issue could appear. Maybe the `$tax_query_in_and` array should
be key-validated before trying to access its contents.
Possible reference
https://github.com/WordPress/WordPress/commit/7e69e5484fa350a7451403f10d50129ffed0e18a
{{{
Environment
-----------
WordPress.........: 4.1
PHP...............: 5.5.10 (Darwin 14.0.0 Darwin Kernel Version 14.0.0:
Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64)
Database..........: mysql (v5.5.34)
Webserver.........: Apache
User Agent........: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36
PHP-Settings
------------
register_globals..: disabled
magic_quotes_gpc..: disabled
safe_mode.........: disabled
error_reporting...: E_ALL
max_execution_time: 240 Seconds
memory_limit......: 128,00 MBytes
Extensions........: apache2handler, apc, apcu, bcmath, bz2, calendar, Core
ctype, curl, date, dom, ereg, exif, fileinfo
filter, ftp, gd, gettext, hash, iconv, imap
intl, json, ldap, libxml, mbstring, mcrypt, mysql
mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql,
pdo_sqlite
pgsql, Phar, posix, Reflection, session, SimpleXML,
soap
sockets, SPL, sqlite3, standard, tokenizer, xml,
xmlreader
xmlwriter, xsl, yaz, zip, zlib
Plugins
-------
polylang (1.6.4)
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31246>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list