• jarlhelin

    (@jarlhelin)


    Hi,

    I have got warnings due to my wordpress 6.1.1 AND Php 8.1 version update :

    I have set the following lines in wp-config.php :

    define( ‘WP_DEBUG’, false );

    define( ‘WP_DEBUG_DISPLAY’, false );

    @ini_set( ‘display_errors’, 0 );

    define( ‘WP_DEBUG_LOG’, false );

    Here are the two warnings :

    Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/formatting.php on line 5397

    Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/pluggable.php on line 598

    It’s in the core, I guess, but how do I fix this ?

    Furthermore, I get these warnings in the back-office :

    Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/Requests/Transport/cURL.php on line 345

    Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/Requests/Transport/cURL.php on line 345

    Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/Requests/Transport/cURL.php on line 345

    Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/Requests/Transport/cURL.php on line 345

    Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/Requests/Transport/cURL.php on line 345

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/Requests/Transport/cURL.php:345) in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-admin/admin-header.php on line 9

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/Requests/Transport/cURL.php:345) in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/option.php on line 1138

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/Requests/Transport/cURL.php:345) in /homepages/36/d440399342/htdocs/mauves-prod-terroir/wp-includes/option.php on line 1139

    Thank you for any guidance

    /Jarl

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

Viewing 1 replies (of 1 total)
  • mrtom414

    (@mrtom414)

    Deprecated values are just warning that it needs to be changed because in a future version of php the command will not be supported. It’s not going to stop the code from running. You can notify the theme author of the problem. You are getting warnings so you are still ok. If the function get removed in the next version of PHP you will get error messages and not warnings.

    The Header already sent message could be because debug is turned on. It usually caused if an error occurs before the header information is sent. In this case the warning messages are being issued and the browser thinks they are part of the header.

    • This reply was modified 2 years ago by mrtom414.
    • This reply was modified 2 years ago by mrtom414.
Viewing 1 replies (of 1 total)
  • The topic ‘Warnings “build_query” & “deprecated”’ is closed to new replies.