Make WordPress Core

Opened 8 years ago

Closed 4 years ago

#39584 closed defect (bug) (invalid)

PHP Notice: WP_Date_Query

Reported by: salvoaranzulla's profile salvoaranzulla Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.1
Component: General Keywords: reporter-feedback close
Focuses: Cc:

Description (last modified by hellofromTonya)

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 (3)

#1 @boonebgorges
8 years 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
8 years ago

  • Keywords reporter-feedback added

#3 @hellofromTonya
4 years ago

  • Description modified (diff)
  • Keywords close added
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hello @salvoaranzulla,

Welcome to WordPress Trac!

I'm closing this ticket as it's been 4 years since reporter feedback was requested. If this issue still exists, please provide feedback for us to further investigate. Cheers.

Note: See TracTickets for help on using tickets.