[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
Fri Mar 31 19:05:52 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:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  12.0.0
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * keywords:   => has-patch
 * severity:  critical => normal
 * milestone:  Awaiting Review => 12.0.0


Comment:

 Hi @lenasterg

 Thanks for your report, this is probably due to a plugin using
 `bp_core_time_diff()` the wrong way. I've added strict checks about
 expected arguments to avoid this in 8860.patch.

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


More information about the buddypress-trac mailing list