• Resolved Shannon Little

    (@enchiridion)


    Hi,

    I’m testing upgrading my site to PHP 8.2 and I’m getting these deprecation notices when comparing a revision (/wp-admin/revision.php?revision=xxx). I’m running WordPress 6.4.3, PublishPress Revisions 3.5.6 (this is the only plugin activated) using the default Twenty Twenty-Four theme for testing.

    [15-Feb-2024 21:51:20 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/html/wp/wp-admin/includes/plugin.php on line 2092
    [15-Feb-2024 21:51:20 UTC] PHP Stack trace:
    [15-Feb-2024 21:51:20 UTC] PHP 1. {main}() /var/www/html/html/wp/wp-admin/revision.php:0
    [15-Feb-2024 21:51:20 UTC] PHP 2. require_once() /var/www/html/html/wp/wp-admin/revision.php:13
    [15-Feb-2024 21:51:20 UTC] PHP 3. do_action($hook_name = 'load-revision.php') /var/www/html/html/wp/wp-admin/admin.php:385
    [15-Feb-2024 21:51:20 UTC] PHP 4. WP_Hook->do_action($args = [0 => '']) /var/www/html/html/wp/wp-includes/plugin.php:517
    [15-Feb-2024 21:51:20 UTC] PHP 5. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/html/wp/wp-includes/class-wp-hook.php:348
    [15-Feb-2024 21:51:20 UTC] PHP 6. RevisionaryHistory->actLoadRevision('') /var/www/html/html/wp/wp-includes/class-wp-hook.php:324
    [15-Feb-2024 21:51:20 UTC] PHP 7. require_once() /var/www/html/html/content/plugins/revisionary/admin/history_rvy.php:182
    [15-Feb-2024 21:51:20 UTC] PHP 8. get_admin_page_title() /var/www/html/html/wp/wp-admin/admin-header.php:35
    [15-Feb-2024 21:51:20 UTC] PHP 9. get_plugin_page_hook($plugin_page = NULL, $parent_page = 'revision.php') /var/www/html/html/wp/wp-admin/includes/plugin.php:1980
    [15-Feb-2024 21:51:20 UTC] PHP 10. get_plugin_page_hookname($plugin_page = NULL, $parent_page = 'revision.php') /var/www/html/html/wp/wp-admin/includes/plugin.php:2056
    [15-Feb-2024 21:51:20 UTC] PHP 11. preg_replace($pattern = '!\.php!', $replacement = '', $subject = NULL) /var/www/html/html/wp/wp-admin/includes/plugin.php:2092
    [15-Feb-2024 21:51:20 UTC] PHP Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/html/wp/wp-admin/admin-header.php on line 36
    [15-Feb-2024 21:51:20 UTC] PHP Stack trace:
    [15-Feb-2024 21:51:20 UTC] PHP 1. {main}() /var/www/html/html/wp/wp-admin/revision.php:0
    [15-Feb-2024 21:51:20 UTC] PHP 2. require_once() /var/www/html/html/wp/wp-admin/revision.php:13
    [15-Feb-2024 21:51:20 UTC] PHP 3. do_action($hook_name = 'load-revision.php') /var/www/html/html/wp/wp-admin/admin.php:385
    [15-Feb-2024 21:51:20 UTC] PHP 4. WP_Hook->do_action($args = [0 => '']) /var/www/html/html/wp/wp-includes/plugin.php:517
    [15-Feb-2024 21:51:20 UTC] PHP 5. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/html/wp/wp-includes/class-wp-hook.php:348
    [15-Feb-2024 21:51:20 UTC] PHP 6. RevisionaryHistory->actLoadRevision('') /var/www/html/html/wp/wp-includes/class-wp-hook.php:324
    [15-Feb-2024 21:51:20 UTC] PHP 7. require_once() /var/www/html/html/content/plugins/revisionary/admin/history_rvy.php:182
    [15-Feb-2024 21:51:20 UTC] PHP 8. strip_tags($string = NULL) /var/www/html/html/wp/wp-admin/admin-header.php:36
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    Thanks for the report, @enchiridion

    I’ve confirmed the PHP Deprecated warnings, and will include a fix in the next Revisions update.

    Hi @kevinb,

    Do you have an update on this? I’m getting deprecation notices when viewing the comparison page.

    Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in?[deleted]\web\wp-admin\includes\plugin.php?on line?2163

    Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in?[deleted]\web\wp-admin\admin-header.php?on line?36

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.2 Deprecation notices’ is closed to new replies.