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

WordPress Trac noreply at wordpress.org
Wed Dec 13 19:13:09 UTC 2017


#42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284
---------------------------------------------+-----------------------------
 Reporter:  internetwerk                     |       Owner:
     Type:  defect (bug)                     |      Status:  reopened
 Priority:  normal                           |   Milestone:  Awaiting
Component:  General                          |  Review
 Severity:  normal                           |     Version:  4.9.1
 Keywords:  needs-testing reporter-feedback  |  Resolution:
                                             |     Focuses:
---------------------------------------------+-----------------------------

Comment (by rodrigogomes):

 Replying to [comment:6 dd32]:
 > Replying to [comment:5 Shital Patel]:
 > > Hello @dd32 ,
 > >
 > > The problem is that $pages,$content,$custom[$key] could be null in
 some cases, and PHP 7.2 doesn't allow count(null);
 > >
 > > So, We can set zero value.
 >
 > Yes, But I want to know *why* they're a null value, as they should
 always be an array unless I've missed something. That's why I want to know
 the steps to reproduce it.

 I'm getting the same error, in different WordPress installs.

 I could not identify what caused it. But apparently it began to appear
 after I imported the demo of a premium theme.

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


More information about the wp-trac mailing list