• Resolved leonardcraft

    (@leonardcraft)


    Good day,

    On PHP 8.1.23, Yoast 21.2, WordPress 6.3.1, with WP_DEBUG enabled, using the default Twenty Twenty-Three theme, I am receiving the following stack trace on certain pages. The deprecation notice prints twice when it occurs – once relating to open_graph_description, and once relating to twitter_description. If it helps, this is the associated page in our production environment (which uses a different theme, but the deprecation notice is independent of the theme): https://www.jwcc.edu/career-services/career-cruising/

    [21-Sep-2023 18:19:18 UTC] PHP Deprecated:  preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\formatting.php on line 3500
    [21-Sep-2023 18:19:18 UTC] PHP Stack trace:
    [21-Sep-2023 18:19:18 UTC] PHP   1. {main}() C:\Users\lcraft\Local Sites\jwcc-main\app\public\index.php:0
    [21-Sep-2023 18:19:18 UTC] PHP   2. require() C:\Users\lcraft\Local Sites\jwcc-main\app\public\index.php:17
    [21-Sep-2023 18:19:18 UTC] PHP   3. require_once() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-blog-header.php:19
    [21-Sep-2023 18:19:18 UTC] PHP   4. include() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\template-loader.php:106
    [21-Sep-2023 18:19:18 UTC] PHP   5. wp_head() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\template-canvas.php:17
    [21-Sep-2023 18:19:18 UTC] PHP   6. do_action($hook_name = 'wp_head') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\general-template.php:3053
    [21-Sep-2023 18:19:18 UTC] PHP   7. WP_Hook->do_action($args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:517
    [21-Sep-2023 18:19:18 UTC] PHP   8. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:334
    [21-Sep-2023 18:19:18 UTC] PHP   9. Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head('') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:310
    [21-Sep-2023 18:19:18 UTC] PHP  10. do_action($hook_name = 'wpseo_head') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\integrations\front-end-integration.php:383
    [21-Sep-2023 18:19:18 UTC] PHP  11. WP_Hook->do_action($args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:517
    [21-Sep-2023 18:19:18 UTC] PHP  12. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:334
    [21-Sep-2023 18:19:18 UTC] PHP  13. Yoast\WP\SEO\Integrations\Front_End_Integration->present_head('') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:310
    [21-Sep-2023 18:19:18 UTC] PHP  14. Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter->present() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\integrations\front-end-integration.php:409
    [21-Sep-2023 18:19:18 UTC] PHP  15. Yoast\WP\SEO\Presenters\Open_Graph\Description_Presenter->get() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\presenters\abstract-indexable-tag-presenter.php:37
    [21-Sep-2023 18:19:18 UTC] PHP  16. Yoast\WP\SEO\Presentations\Abstract_Presentation->__get($name = 'open_graph_description') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\presenters\open-graph\description-presenter.php:33
    [21-Sep-2023 18:19:18 UTC] PHP  17. Yoast\WP\SEO\Presentations\Indexable_Post_Type_Presentation->generate_open_graph_description() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\presentations\abstract-presentation.php:66
    [21-Sep-2023 18:19:18 UTC] PHP  18. Yoast\WP\SEO\Helpers\Post_Helper->get_the_excerpt($post_id = 9327) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\presentations\indexable-post-type-presentation.php:196
    [21-Sep-2023 18:19:18 UTC] PHP  19. get_the_excerpt($post = 9327) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\helpers\post-helper.php:84
    [21-Sep-2023 18:19:18 UTC] PHP  20. apply_filters($hook_name = 'get_the_excerpt', $value = '', ...$args = variadic(class WP_Post { public $ID = 9327; public $post_author = '5'; public $post_date = '2020-06-22 13:54:28'; public $post_date_gmt = '2020-06-22 18:54:28'; public $post_content = '[vc_section][vc_row][vc_column][vc_column_text]Career Cruising is a self assessment tool that matches your interests, skills and talents with potential career opportunities. In a quick session, you\'ll answer a few questions online. Your results will show a customized list of careers, based on how you answered the questions.  Each career match will include information about anticipated job growth, what to expect on a typical day, salary and education required.  This assessment tool provides a starting poin'...; public $post_title = 'Career Cruising'; public $post_excerpt = ''; public $post_status = 'publish'; public $comment_status = 'closed'; public $ping_status = 'closed'; public $post_password = ''; public $post_name = 'career-cruising'; public $to_ping = ''; public $pinged = ''; public $post_modified = '2023-09-21 08:44:16'; public $post_modified_gmt = '2023-09-21 13:44:16'; public $post_content_filtered = ''; public $post_parent = 4440; public $guid = 'https://jwcc.flywheelsites.com/?page_id=9327'; public $menu_order = 0; public $post_type = 'page'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' })) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\post-template.php:434
    [21-Sep-2023 18:19:18 UTC] PHP  21. WP_Hook->apply_filters($value = '', $args = [0 => '', 1 => class WP_Post { public $ID = 9327; public $post_author = '5'; public $post_date = '2020-06-22 13:54:28'; public $post_date_gmt = '2020-06-22 18:54:28'; public $post_content = '[vc_section][vc_row][vc_column][vc_column_text]Career Cruising is a self assessment tool that matches your interests, skills and talents with potential career opportunities. In a quick session, you\'ll answer a few questions online. Your results will show a customized list of careers, based on how you answered the questions.  Each career match will include information about anticipated job growth, what to expect on a typical day, salary and education required.  This assessment tool provides a starting poin'...; public $post_title = 'Career Cruising'; public $post_excerpt = ''; public $post_status = 'publish'; public $comment_status = 'closed'; public $ping_status = 'closed'; public $post_password = ''; public $post_name = 'career-cruising'; public $to_ping = ''; public $pinged = ''; public $post_modified = '2023-09-21 08:44:16'; public $post_modified_gmt = '2023-09-21 13:44:16'; public $post_content_filtered = ''; public $post_parent = 4440; public $guid = 'https://jwcc.flywheelsites.com/?page_id=9327'; public $menu_order = 0; public $post_type = 'page'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' }]) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:205
    [21-Sep-2023 18:19:18 UTC] PHP  22. wp_trim_excerpt($text = '', $post = class WP_Post { public $ID = 9327; public $post_author = '5'; public $post_date = '2020-06-22 13:54:28'; public $post_date_gmt = '2020-06-22 18:54:28'; public $post_content = '[vc_section][vc_row][vc_column][vc_column_text]Career Cruising is a self assessment tool that matches your interests, skills and talents with potential career opportunities. In a quick session, you\'ll answer a few questions online. Your results will show a customized list of careers, based on how you answered the questions.  Each career match will include information about anticipated job growth, what to expect on a typical day, salary and education required.  This assessment tool provides a starting poin'...; public $post_title = 'Career Cruising'; public $post_excerpt = ''; public $post_status = 'publish'; public $comment_status = 'closed'; public $ping_status = 'closed'; public $post_password = ''; public $post_name = 'career-cruising'; public $to_ping = ''; public $pinged = ''; public $post_modified = '2023-09-21 08:44:16'; public $post_modified_gmt = '2023-09-21 13:44:16'; public $post_content_filtered = ''; public $post_parent = 4440; public $guid = 'https://jwcc.flywheelsites.com/?page_id=9327'; public $menu_order = 0; public $post_type = 'page'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' }) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:310
    [21-Sep-2023 18:19:18 UTC] PHP  23. apply_filters($hook_name = 'the_content', $value = '') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\formatting.php:3980
    [21-Sep-2023 18:19:18 UTC] PHP  24. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:205
    [21-Sep-2023 18:19:18 UTC] PHP  25. convert_smilies($text = NULL) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:310
    [21-Sep-2023 18:19:18 UTC] PHP  26. preg_split($pattern = '/(<.*>)/U', $subject = NULL, $limit = -1, $flags = 2) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\formatting.php:3500
    [21-Sep-2023 18:19:18 UTC] PHP Deprecated:  preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\formatting.php on line 3500
    [21-Sep-2023 18:19:18 UTC] PHP Stack trace:
    [21-Sep-2023 18:19:18 UTC] PHP   1. {main}() C:\Users\lcraft\Local Sites\jwcc-main\app\public\index.php:0
    [21-Sep-2023 18:19:18 UTC] PHP   2. require() C:\Users\lcraft\Local Sites\jwcc-main\app\public\index.php:17
    [21-Sep-2023 18:19:18 UTC] PHP   3. require_once() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-blog-header.php:19
    [21-Sep-2023 18:19:18 UTC] PHP   4. include() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\template-loader.php:106
    [21-Sep-2023 18:19:18 UTC] PHP   5. wp_head() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\template-canvas.php:17
    [21-Sep-2023 18:19:18 UTC] PHP   6. do_action($hook_name = 'wp_head') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\general-template.php:3053
    [21-Sep-2023 18:19:18 UTC] PHP   7. WP_Hook->do_action($args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:517
    [21-Sep-2023 18:19:18 UTC] PHP   8. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:334
    [21-Sep-2023 18:19:18 UTC] PHP   9. Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head('') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:310
    [21-Sep-2023 18:19:18 UTC] PHP  10. do_action($hook_name = 'wpseo_head') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\integrations\front-end-integration.php:383
    [21-Sep-2023 18:19:18 UTC] PHP  11. WP_Hook->do_action($args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:517
    [21-Sep-2023 18:19:18 UTC] PHP  12. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:334
    [21-Sep-2023 18:19:18 UTC] PHP  13. Yoast\WP\SEO\Integrations\Front_End_Integration->present_head('') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:310
    [21-Sep-2023 18:19:18 UTC] PHP  14. Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter->present() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\integrations\front-end-integration.php:409
    [21-Sep-2023 18:19:18 UTC] PHP  15. Yoast\WP\SEO\Presenters\Twitter\Description_Presenter->get() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\presenters\abstract-indexable-tag-presenter.php:37
    [21-Sep-2023 18:19:18 UTC] PHP  16. Yoast\WP\SEO\Presentations\Abstract_Presentation->__get($name = 'twitter_description') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\presenters\twitter\description-presenter.php:33
    [21-Sep-2023 18:19:18 UTC] PHP  17. Yoast\WP\SEO\Presentations\Indexable_Post_Type_Presentation->generate_twitter_description() C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\presentations\abstract-presentation.php:66
    [21-Sep-2023 18:19:18 UTC] PHP  18. Yoast\WP\SEO\Helpers\Post_Helper->get_the_excerpt($post_id = 9327) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\presentations\indexable-post-type-presentation.php:360
    [21-Sep-2023 18:19:18 UTC] PHP  19. get_the_excerpt($post = 9327) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-content\plugins\wordpress-seo\src\helpers\post-helper.php:84
    [21-Sep-2023 18:19:18 UTC] PHP  20. apply_filters($hook_name = 'get_the_excerpt', $value = '', ...$args = variadic(class WP_Post { public $ID = 9327; public $post_author = '5'; public $post_date = '2020-06-22 13:54:28'; public $post_date_gmt = '2020-06-22 18:54:28'; public $post_content = '[vc_section][vc_row][vc_column][vc_column_text]Career Cruising is a self assessment tool that matches your interests, skills and talents with potential career opportunities. In a quick session, you\'ll answer a few questions online. Your results will show a customized list of careers, based on how you answered the questions.  Each career match will include information about anticipated job growth, what to expect on a typical day, salary and education required.  This assessment tool provides a starting poin'...; public $post_title = 'Career Cruising'; public $post_excerpt = ''; public $post_status = 'publish'; public $comment_status = 'closed'; public $ping_status = 'closed'; public $post_password = ''; public $post_name = 'career-cruising'; public $to_ping = ''; public $pinged = ''; public $post_modified = '2023-09-21 08:44:16'; public $post_modified_gmt = '2023-09-21 13:44:16'; public $post_content_filtered = ''; public $post_parent = 4440; public $guid = 'https://jwcc.flywheelsites.com/?page_id=9327'; public $menu_order = 0; public $post_type = 'page'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' })) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\post-template.php:434
    [21-Sep-2023 18:19:18 UTC] PHP  21. WP_Hook->apply_filters($value = '', $args = [0 => '', 1 => class WP_Post { public $ID = 9327; public $post_author = '5'; public $post_date = '2020-06-22 13:54:28'; public $post_date_gmt = '2020-06-22 18:54:28'; public $post_content = '[vc_section][vc_row][vc_column][vc_column_text]Career Cruising is a self assessment tool that matches your interests, skills and talents with potential career opportunities. In a quick session, you\'ll answer a few questions online. Your results will show a customized list of careers, based on how you answered the questions.  Each career match will include information about anticipated job growth, what to expect on a typical day, salary and education required.  This assessment tool provides a starting poin'...; public $post_title = 'Career Cruising'; public $post_excerpt = ''; public $post_status = 'publish'; public $comment_status = 'closed'; public $ping_status = 'closed'; public $post_password = ''; public $post_name = 'career-cruising'; public $to_ping = ''; public $pinged = ''; public $post_modified = '2023-09-21 08:44:16'; public $post_modified_gmt = '2023-09-21 13:44:16'; public $post_content_filtered = ''; public $post_parent = 4440; public $guid = 'https://jwcc.flywheelsites.com/?page_id=9327'; public $menu_order = 0; public $post_type = 'page'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' }]) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:205
    [21-Sep-2023 18:19:18 UTC] PHP  22. wp_trim_excerpt($text = '', $post = class WP_Post { public $ID = 9327; public $post_author = '5'; public $post_date = '2020-06-22 13:54:28'; public $post_date_gmt = '2020-06-22 18:54:28'; public $post_content = '[vc_section][vc_row][vc_column][vc_column_text]Career Cruising is a self assessment tool that matches your interests, skills and talents with potential career opportunities. In a quick session, you\'ll answer a few questions online. Your results will show a customized list of careers, based on how you answered the questions.  Each career match will include information about anticipated job growth, what to expect on a typical day, salary and education required.  This assessment tool provides a starting poin'...; public $post_title = 'Career Cruising'; public $post_excerpt = ''; public $post_status = 'publish'; public $comment_status = 'closed'; public $ping_status = 'closed'; public $post_password = ''; public $post_name = 'career-cruising'; public $to_ping = ''; public $pinged = ''; public $post_modified = '2023-09-21 08:44:16'; public $post_modified_gmt = '2023-09-21 13:44:16'; public $post_content_filtered = ''; public $post_parent = 4440; public $guid = 'https://jwcc.flywheelsites.com/?page_id=9327'; public $menu_order = 0; public $post_type = 'page'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' }) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:310
    [21-Sep-2023 18:19:18 UTC] PHP  23. apply_filters($hook_name = 'the_content', $value = '') C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\formatting.php:3980
    [21-Sep-2023 18:19:18 UTC] PHP  24. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\plugin.php:205
    [21-Sep-2023 18:19:18 UTC] PHP  25. convert_smilies($text = NULL) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\class-wp-hook.php:310
    [21-Sep-2023 18:19:18 UTC] PHP  26. preg_split($pattern = '/(<.*>)/U', $subject = NULL, $limit = -1, $flags = 2) C:\Users\lcraft\Local Sites\jwcc-main\app\public\wp-includes\formatting.php:3500

    It definitely appears as if the deprecation warning is because Yoast is passing along something null at some point, but I’m not sure exactly where it’s occurring. Please let me know what additional details I can provide to assist in debugging.

    • This topic was modified 1 year, 2 months ago by leonardcraft.
    • This topic was modified 1 year, 2 months ago by leonardcraft.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @leonardcraft

    Thanks for reaching out about the notices. First, deprecations are NOT errors and should NOT be treated as such.
    Until PHP 9.0, everything which is deprecated will still work as it did before. The deprecation is visible because WP_DEBUG is enabled and not in the WordPress admin panel.

    Deprecations don’t break any WordPress functionality and are not actual errors, so you can ignore them. And not to worry, the reason that causes that deprecation will be fixed eventually.

    Thread Starter leonardcraft

    (@leonardcraft)

    @maybellyne

    Right, I understand that this is just a deprecation notice (pardon the URL – I corrected the title in an edit after posting). I’m sharing this so your team is aware. If I can provide any additional details to help in the debugging process, let me know. If this is a known bug, apologies for submitting a duplicate support topic.

    Kind regards,

    Leonard

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for sharing Leonard. We are aware of the notices and they will definitely be fixed subsequently.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 8.1 deprecation notice’ is closed to new replies.