Hi @indrekk! I don’t see the error on the page. However, have you looked at your debugging settings, as described in this help article about WP_DEBUG?
Errors are hidden at the moment.
The debug file provided the following information:
[09-Dec-2023 04:43:50 UTC] PHP Warning: Undefined array key “file” in /data03/virt106759/domeenid/www.sosuwear.com/htdocs/wp-includes/media.php on line 1723
[09-Dec-2023 04:44:06 UTC] PHP Warning: Undefined array key “file” in /data03/virt106759/domeenid/www.sosuwear.com/htdocs/wp-includes/media.php on line 1723
[09-Dec-2023 04:44:23 UTC] PHP Warning: Undefined array key “file” in /data03/virt106759/domeenid/www.sosuwear.com/htdocs/wp-includes/media.php on line 1723
// Bail early if an image has been inserted and later edited.
1723: if ( preg_match( ‘/-e[0-9]{13}/’, $image_meta[‘file’], $img_edit_hash )
&& ! str_contains( wp_basename( $image_src ), $img_edit_hash[0] )
) {
return $image;
}
Hey @indrekk! Just to confirm, have you tested with all plugins deactivated, and with any default WP theme active? The Health Check plugin can help with this, as it provides a troubleshooting mode which loads your site without any plugins and switches to a default theme if installed.
If you can still reproduce this error, please go to Tools > SIte health > Info in your dashboard. From here, you can click on `Copy site info to clipboard’. You can then use a service like Pastebin or Gist to share this info here. This will help with trying to reproduce this issue.
Thank you! The issue resolved after the images were optimized.
PHP Warning: media.php on line 1723
Please help me, I have the same problem.
Hi @yagub – were you also able to try optimising your images as recommended above?
also,
Just to confirm, have you tested with all plugins deactivated, and with any default WP theme active? The Health Check plugin can help with this, as it provides a troubleshooting mode which loads your site without any plugins and switches to a default theme if installed.
If you can still reproduce this error, please go to Tools > SIte health > Info in your dashboard. From here, you can click on `Copy site info to clipboard’. You can then use a service like Pastebin or Gist to share this info here. This will help with trying to reproduce this issue.