CPT 'Auctions' (page template)
hidden link
has since WP 5.3 update experienced Warning errors when editing/updating this CPT/Content Template :
Warning: parse_url() expects parameter 1 to be string, array given in /home/copakeauction/www/www/staging/wp-includes/media.php on line 4246
Warning: strpos() expects parameter 1 to be string, array given in /home/copakeauction/www/www/staging/wp-includes/media.php on line 4253
Warning: Cannot modify header information - headers already sent by (output started at /home/copakeauction/www/www/staging/wp-includes/media.php:4246) in /home/copakeauction/www/www/staging/wp-includes/pluggable.php on line 1265
Warning: Cannot modify header information - headers already sent by (output started at /home/copakeauction/www/www/staging/wp-includes/media.php:4246) in /home/copakeauction/www/www/staging/wp-includes/pluggable.php on line 1268
Here are the lines from the plugins indicated in warning:
/home/copakeauction/www/www/staging/wp-includes/pluggable.php
lines 1252-1272
/**
* Filters the X-Redirect-By header.
*
* Allows applications to identify themselves when they're doing a redirect.
*
* @since 5.1.0
*
* @param string $x_redirect_by The application doing the redirect.
* @param int $status Status code to use.
* @param string $location The path to redirect to.
*/
$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
if ( is_string( $x_redirect_by ) ) {
header( "X-Redirect-By: $x_redirect_by" );
}
header( "Location: $location", true, $status );
return true;
}
endif;
/home/copakeauction/www/www/staging/wp-includes/media.php
lines 1241-1253
/**
* To make sure the ID matches our image src, we will check to see if any sizes in our attachment
* meta match our $image_src. If no matches are found we don't return a srcset to avoid serving
* an incorrect image. See #35045.
*/
$src_matched = false;
/*
* Loop through available images. Only use images that are resized
* versions of the same edit.
*/
foreach ( $image_sizes as $image ) {
$is_src = false;
-------------------------
** NOTE *** This is a simple Content Template setup and worked perfectly until recent update. All other CPT, templates/views are working fine.
Let me know if you need WP login access to the staging server. I've waited patiently for 2-3 weeks for resolve w/an update for toolset without change.