• We have errors on our website
    Undefined array key 0


    wp-includes/media.php:779
    5 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 0
    wp-includes/media.php:785
    4 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 1
    wp-includes/media.php:785
    4 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 0
    wp-includes/media.php:787
    4 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 1
    wp-includes/media.php:787
    4 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 0
    wp-includes/media.php:790
    4 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 1
    wp-includes/media.php:790
    4 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 1
    wp-includes/media.php:779
    1 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 0
    wp-includes/media.php:70
    2 Plugin: _schema-and-structured-data-for-wp
    Warning Undefined array key 1
    wp-includes/media.php:71

    We have a custom theme on the site. But even when we switch to the Twenty Twenty-One theme and upload the logo, there are still errors.

    I looked at your plugin code and found that errors are caused by this code:

    “$sizes = array(
    ‘width’ => 600,
    ‘height’ => 60,
    ‘crop’ => false,
    );

    $custom_logo_id = get_theme_mod( ‘custom_logo’ );

    if($custom_logo_id){
    $custom_logo = @wp_get_attachment_image_src( $custom_logo_id, $sizes);
    }”

    Now I commented out the line where you add a custom size for the logo and the error is gone. Could you please fix this in the plugin.

    • This topic was modified 2 years, 5 months ago by Imagedevsilin.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ImageMagazine3

    (@magazine3)

    Hi, We are extremely sorry for the inconvenience caused you. Can you please let us know if the error persists after the recent update? Can you please kindly let us know the version which you are using? Also which PHP version are you using currently? So that we will analyze the issue and assist you accordingly to fix the issue.

    Thread Starter Imagedevsilin

    (@devsilin)

    Yes, I updated the plugin yesterday and the problem still exists.


    Schema & Structured Data for WP & AMP Version 1.17 

    PHP version8.0.29

    WordPress Version 6.2.2 (is a multisite)

    Plugin Author ImageMagazine3

    (@magazine3)

    Hi, Thank you for the info. Can you please provide us with the list of active plugins and the theme that you ate using currently at your end? So that we will recreate the issue and assist you to fix the issue ASAP!

    Plugin Author ImageMagazine3

    (@magazine3)

    Hi, Can you please provide us with the list of active plugins and the theme that you ate using currently at your end? So that we will recreate the issue and assist you in fixing the issue ASAP!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error “Undefined array key 1” in wp-includes/media.php:71’ is closed to new replies.