[wp-trac] [WordPress Trac] #42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284

WordPress Trac noreply at wordpress.org
Thu Apr 12 11:28:17 UTC 2018


#42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284
-------------------------------+-----------------------
 Reporter:  internetwerk       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  4.9.6
Component:  Posts, Post Types  |     Version:  4.5
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------

Comment (by yashparmar71):

 Replying to [ticket:42814 internetwerk]:
 > Warning with PHP 7.2:
 >
 > Warning: count(): Parameter must be an array or an object that
 implements Countable in /wp-includes/post-template.php on line 284
 >

 if get this error you must be  while (have_posts()) {
                                                 the_post();
 try this it work very nice

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


More information about the wp-trac mailing list