• Resolved meysamh98

    (@meysamh98)


    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:83

    The 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.ir

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Fatal error (TypeError) on PHP 8’ is closed to new replies.