• Hello,

    I have such a warning on the page: Warning: Undefined array key “file” in /data03/virt106759/domeenid/www.sosuwear.com/htdocs/wp-includes/media.php on line 1723.

    The main header image is half of the size and I tried to turn off plugins and change the theme but nothing helped. The problem can be seen here: https://sosuwear.com/toode/bokserid/

    How to fix?

    Thank you!

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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?

    Thread Starter indrek Kulli

    (@indrekk)

    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

    Thread Starter indrek Kulli

    (@indrekk)

    // 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.

    Thread Starter indrek Kulli

    (@indrekk)

    Thank you! The issue resolved after the images were optimized.

    yagub

    (@yagub)

    PHP Warning: media.php on line 1723

    Please help me, I have the same problem.

    Moderator jordesign

    (@jordesign)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Warning: media.php on line 1723’ is closed to new replies.