• Resolved leonardcraft

    (@leonardcraft)


    Good day,

    Using PHP 8.0.0, I receive this crash related to Custom User Permissions in the user profile of any user (tested with both administrator and basic subscriber roles):

    [01-Jul-2022 15:51:09 UTC] PHP Warning:  Attempt to read property "ID" on null in C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\presspermit-pro\vendor\publishpress\permissions\classes\PublishPress\Permissions\UI\Dashboard\DashboardFilters.php on line 296
    [01-Jul-2022 15:51:09 UTC] PHP Stack trace:
    [01-Jul-2022 15:51:09 UTC] PHP   1. {main}() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-admin\profile.php:0
    [01-Jul-2022 15:51:09 UTC] PHP   2. require_once() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-admin\profile.php:18
    [01-Jul-2022 15:51:09 UTC] PHP   3. do_action() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-admin\user-edit.php:838
    [01-Jul-2022 15:51:09 UTC] PHP   4. WP_Hook->do_action() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:476
    [01-Jul-2022 15:51:09 UTC] PHP   5. WP_Hook->apply_filters() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:331
    [01-Jul-2022 15:51:09 UTC] PHP   6. PublishPress\Permissions\UI\Dashboard\DashboardFilters->actUserUi() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:307

    Screenshot of the crash timing in PHP 8.0.0: https://i.snipboard.io/ulsaRe.jpg
    Screenshot of the expected behavior in PHP 7.4.1: https://i.snipboard.io/9aSclL.jpg. As an admin, I see an additional blue box with “Custom User Permissions” as a title.

    The crash occurs with all other plugins disabled except PublishPress Permissions Pro. Let me know if I can provide additional information.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug report: crash in user profile on PHP 8’ is closed to new replies.