[buddypress-trac] [BuddyPress Trac] #8860: PHP 8.1.17 - PHP Fatal error: Uncaught TypeError: Unsupported operand types: int - string in bp-core/bp-core-functions.php:1349

buddypress-trac noreply at wordpress.org
Sat Apr 1 08:19:08 UTC 2023


#8860: PHP 8.1.17 -  PHP Fatal error:  Uncaught TypeError: Unsupported operand
types: int - string in bp-core/bp-core-functions.php:1349
--------------------------+---------------------
 Reporter:  lenasterg     |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  12.0.0
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13444" 13444]:
 {{{
 #!CommitTicketReference repository="" revision="13444"
 Add stricter argument format check to `bp_core_time_diff()`

 `bp_core_time_diff()` calculates the time difference between 2 dates
 formatted as a MySql datetime string or a timestamp. To avoid PHP errors
 due to a plugin misusing this function, we're now making sure these 2
 kinds of format are used before calculating the time difference.

 Props lenasterg

 Fixes #8860
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8860#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list