WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 17 months ago

#39584 new defect (bug)

PHP Notice: WP_Date_Query

Reported by: salvoaranzulla Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.1
Component: General Keywords: reporter-feedback
Focuses: Cc:

Description

After I have upgraded my Wordpress to Wordpress 4.7, I'm reading this PHP Notice many times in "debug.log":

[13-Jan-2017 13:08:24 UTC] PHP Notice: WP_Date_Query è stato richiamato <strong>in maniera scorretta</strong>. Valore non valido <code>794</code> per <code>week</code>. Il valore previsto dovrebbe essere tra <code>1</code> e <code>53</code>. Leggi <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> per maggiori informazioni. (Questo messaggio è stato aggiunto nella versione 4.1.0.) in /.../wp-includes/functions.php on line 4136

I'm still reading this PHP Notice also in Wordpress 4.7.1.

We don't use WP_Date_Query in our plugins. We don't use WP_Date_Query in our theme.

Change History (2)

#1 @boonebgorges
18 months ago

@salvoaranzulla Thanks for the ticket. WP_Date_Query is called indirectly from a number of places in core and plugins. What would be the most useful is a full backtrace (debug_backtrace()) of the WP_Date_Query call, which will help determine why week=794 is getting passed. Alternatively, please provide information about the URL being visited when you see this notice.

#2 @Soean
17 months ago

  • Keywords reporter-feedback added
Note: See TracTickets for help on using tickets.