PHP Fatal error (TypeError) on PHP 8
-
Hello Ultimate Member team,
We’re getting a fatal error on PHP 8 caused by an unsupported operand operation (string – int) in your cron class:
[20-Sep-2025 09:09:53 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string - int in /home/…/wp-content/plugins/ultimate-member/includes/core/class-cron.php:83The problematic lines are in
weekly_events():$sunday_start = wp_date('w');
$week_start = $sunday_start - absint( get_option('start_of_week') );wp_date()returns a string, so the subtraction triggers a TypeError under PHP 8.Environment: WordPress + Ultimate Member (plugin) on PHP 8.x.
Please let me know when a fix will be available or if you need further logs/versions.
Thanks,
Meysam / configwp.irThe page I need help with: [log in to see the link]
The topic ‘PHP Fatal error (TypeError) on PHP 8’ is closed to new replies.