[wp-trac] [WordPress Trac] #31268: WP_Query die without notice on large result

WordPress Trac noreply at wordpress.org
Mon Feb 9 00:01:53 UTC 2015


#31268: WP_Query die without notice on large result
-----------------------------+--------------------------
 Reporter:  alimuzzamanalim  |       Owner:
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Query            |     Version:  4.1
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:  performance
-----------------------------+--------------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Long story short: Enable [http://codex.wordpress.org/WP_DEBUG WP_DEBUG]
 and you'll probably find PHP is running out of memory with a Fatal error.

 WordPress can't really do anything to protect against that case, and
 themes/plugins should re-consider the need to query everything, or instead
 retrieve it in chunks for processing.

 See also #19866 for discussion over retrieving only certain fields (which
 we're not going to support).

 You can get help for plugin/theme questions through
 [https://wordpress.org/support/ the support forums] where others can help
 you with the problem (Since Trac is for a WordPress core bug only)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31268#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list