Plugin Support
Julie
(@julieadrienne)
Thanks for the report. Do you happen to have the full stack trace of the deprecation notice? Should can probably find it in your php error logs.
this is the line 2538
/**
* Replaces the set group separator by another one
*
* @param string $part The string to sanitize.
* @return string Sanitized string.
*/
protected function sanitize_key_part( $part ) {
return str_replace( ‘:’, ‘-‘, $part );
}
thank you
Plugin Support
Julie
(@julieadrienne)
Yes, we can identify that it’s the sanitize_key_part() function, but we’d like to know who’s calling it.
If you can take a look at your error logs you will find the full error trace that looks something like this and will tell us more about the issue:
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /public_html/wp-content/object-cache.php on line 2538
Stack trace:
#0 /Users/Till/Development/Repositories/redis-cache/includes/class-plugin.php(979): Rhubarb\RedisCache\Predis->flush()
#1 /Users/Till/Development/Sites/wordpress/wp-includes/class-wp-hook.php(324): Rhubarb\RedisCache\Plugin->do_admin_actions('')
#2 /Users/Till/Development/Sites/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#3 /Users/Till/Development/Sites/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /Users/Till/Development/Sites/wordpress/wp-admin/admin.php(237): do_action('load-settings_p...')
#5 /Users/Till/Development/Sites/wordpress/wp-admin/options-general.php(10): require_once('/Users/Till/Dev...')
#6 /Users/Till/.composer/vendor/laravel/valet/server.php(110): require('/Users/Till/Dev...')
#7 {main}
thrown in /Users/Till/Development/Repositories/redis-cache/includes/class-predis.php on line 159
Idont know if i found correct what you asking, i installed the plugin WP Debugging
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /public_html/wp-content/object-cache.php on line 2538
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/object-cache.php:2538) in /public_html/wp-includes/http.php on line 505
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/object-cache.php:2538) in /public_html/wp-includes/http.php on line 506
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/object-cache.php:2538) in /public_html/wp-admin/admin-ajax.php on line 27
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/object-cache.php:2538) in /public_html/wp-admin/admin-ajax.php on line 28
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/object-cache.php:2538) in /public_html/wp-includes/functions.php on line 6936
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/object-cache.php:2538) in /public_html/wp-admin/includes/misc.php on line 1431
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/object-cache.php:2538) in public_html/wp-includes/functions.php on line 7049
-
This reply was modified 2 years, 4 months ago by
fondashci.
Plugin Support
Julie
(@julieadrienne)
Sadly that’s not the stack trace, they might be disabled on your server. We’ll fix this in an upcoming release.
Maybe this is more helpful ?
PHP Warning
| Nov 27, 2023, 13:39:58
Cannot modify header information - headers already sent by (output started at /public_html/wp-content/object-cache.php:2538)
WordPress core
File: /wp-admin/admin-header.php
Line: 9
PHP Warning
| Nov 27, 2023, 13:39:58
Cannot modify header information - headers already sent by (output started at /public_html/wp-content/object-cache.php:2538)
WordPress core
File: /wp-includes/functions.php
Line: 7049
PHP Warning
| Nov 27, 2023, 13:39:58
Cannot modify header information - headers already sent by (output started at /public_html/wp-content/object-cache.php:2538)
WordPress core
File: /wp-admin/includes/misc.php
Line: 1431
PHP Deprecated
| Nov 27, 2023, 13:39:58
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Plugin Support
Julie
(@julieadrienne)
No, but we’ll release an update soon. This was fixed on GitHub already 👍