[wp-trac] [WordPress Trac] #46322: PHP 7.2 Warning

WordPress Trac noreply at wordpress.org
Wed Mar 20 22:01:15 UTC 2019


#46322: PHP 7.2 Warning
--------------------------+------------------------------
 Reporter:  good3n        |       Owner:  desrosj
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  php73         |     Focuses:
--------------------------+------------------------------

Comment (by wowthemesnet):

 I understand it's a duplicate but that ticket is closed for not being able
 to replicate.

 Here is how I was able replicate the error `Warning: count(): Parameter
 must be an array or an object that implements Countable in ... post-
 template.php on line 293` on the default TwentyNinenteen theme:

 - Activated Easy Digital Downloads
 - Created an actual post template - gist
 [here](https://gist.github.com/wowthemesnet/7d7893b5af6d50049a3442709bb2e476).
 - Assigned the template "My account" to a random page. Published.

 The template was created following Pippin's [EDD
 guide](https://docs.easydigitaldownloads.com/article/234-creating-a
 -customer-account-page)

 PHP 7.2 , 7.3

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


More information about the wp-trac mailing list