[wp-trac] [WordPress Trac] #42034: PHP 7.1 PHP Warning: A non-numeric value encountered wp-includes/formatting.php on line 3362

WordPress Trac noreply at wordpress.org
Fri Sep 29 15:17:40 UTC 2017


#42034: PHP 7.1 PHP Warning:  A non-numeric value encountered wp-
includes/formatting.php on line 3362
--------------------------+-----------------------------
 Reporter:  laserjobs     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.8.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 After updating from PHP 7.0 to 7.1 this error started filling my logs

 Got error 'PHP message: PHP Warning:  A non-numeric value encountered in
 ...html/wp-includes/formatting.php on line 3362

 {{{#!php
 <?php
 function wp_trim_words( $text, $num_words = 55, $more = null ) {
         if ( null === $more ) {
                 $more = __( '…' );
         }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42034>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list