Home Forums WoodMart support forum Warning Undefined array key “width” … Warning Undefined array key “height”

Warning Undefined array key “width” … Warning Undefined array key “height”

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #646972

    pavel.vutkow
    Participant

    Hello,

    I’m noticing the following errors after the latest theme updates.
    https://imgur.com/a/6fhv8mW
    They only occur in products.
    Can you please help me fix them? Here is a full log of one of the errors:

    Undefined array key “width”
    wp-includes/media.php:1458
    wp_calculate_image_srcset()
    wp-includes/media.php:1127
    wp_get_attachment_image()
    wp-content/themes/woodmart/inc/modules/images/functions.php:77
    woodmart_otf_get_image_html()
    wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php:1166
    woodmart_get_product_thumbnail()
    wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php:1137
    woodmart_template_loop_product_thumbnail()
    wp-includes/class-wp-hook.php:324
    do_action(‘woocommerce_before_shop_loop_item_title’)
    wp-content/themes/woodmart/woocommerce/content-product-info-alt.php:19
    load_template(‘wp-content/themes/woodmart/woocommerce/content-product-info-alt.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:285
    wc_get_template_part()
    wp-content/themes/woodmart/woocommerce/content-product.php:139
    load_template(‘wp-content/themes/woodmart/woocommerce/content-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:285
    wc_get_template_part()
    wp-content/themes/woodmart/inc/shortcodes/products.php:580
    woodmart_shortcode_products()
    wp-includes/shortcodes.php:434
    do_shortcode_tag()
    wp-includes/shortcodes.php:434
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/plugins/js_composer/include/helpers/helpers.php:328
    wpb_js_remove_wpautop()
    wp-content/plugins/js_composer/include/templates/shortcodes/vc_column.php:103
    WPBakeryShortCode->loadTemplate()
    wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php:504
    WPBakeryShortCode->content()
    wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php:641
    WPBakeryShortCode->output()
    wp-content/plugins/js_composer/include/helpers/helpers.php:1419
    vc_do_shortcode()
    wp-includes/shortcodes.php:434
    do_shortcode_tag()
    wp-includes/shortcodes.php:434
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/plugins/js_composer/include/helpers/helpers.php:328
    wpb_js_remove_wpautop()
    wp-content/plugins/js_composer/include/templates/shortcodes/vc_row.php:175
    WPBakeryShortCode->loadTemplate()
    wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php:62
    WPBakeryShortCode_Vc_Row->content()
    wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php:641
    WPBakeryShortCode->output()
    wp-content/plugins/js_composer/include/helpers/helpers.php:1419
    vc_do_shortcode()
    wp-includes/shortcodes.php:434
    do_shortcode_tag()
    wp-includes/shortcodes.php:434
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/themes/woodmart/inc/functions.php:522
    woodmart_get_html_block()
    wp-content/themes/woodmart/inc/shortcodes/html-block.php:21
    woodmart_html_block_shortcode()
    wp-includes/shortcodes.php:434
    do_shortcode_tag()
    wp-includes/shortcodes.php:434
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/themes/woodmart/inc/integrations/woocommerce/modules/brands.php:222
    woodmart_product_brand_tab_content()
    wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php:149
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1780
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:324
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/woodmart/woocommerce/content-single-product.php:262
    load_template(‘wp-content/themes/woodmart/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:285
    wc_get_template_part()
    wp-content/themes/woodmart/woocommerce/single-product.php:41

    #647050

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Please provide us with your admin access so we can log in and check this on your end.

    Thank you in advance.

    #647224

    pavel.vutkow
    Participant

    Hello,
    I am attaching the login link, which you can see in the query monitoring by opening a product.

    Please keep in mind that the site is production.
    Regards,
    Pavel

    #647227

    pavel.vutkow
    Participant

    Fo example products.

    #647283

    Artem Temos
    Keymaster
    Xtemos team

    Could you please send us your FTP access as well?

    #647959

    pavel.vutkow
    Participant

    yes please but please make somthing asap – because this site is live and now I see:

    visible error:
    https://snipboard.io/6BkreN.jpg

    Here is it.

    #647993

    Artem Temos
    Keymaster
    Xtemos team

    This issue seems to be not related to our theme. Could you please test with the default theme?
    Try to reupload this particular image https://endoscope.bg/wp-content/uploads/2023/09/Inskam-A110-wireless-endoscope-ip68-waterproof-wifi-borescope-inspection-camera-hard-8mm-2mp-hd-1200p_019.jpg

    #648135

    pavel.vutkow
    Participant

    Hello,
    I disabled all plugins except the main ones and the problem persists!

    ———
    I test all products and I saw and this:
    Warning Undefined array key “file”
    wp-includes/media.php:1444
    wp_calculate_image_srcset()
    wp-includes/media.php:1127
    wp_get_attachment_image()
    wp-content/themes/woodmart/inc/modules/images/functions.php:77
    woodmart_otf_get_image_html()
    wp-content/themes/woodmart/inc/shortcodes/images-gallery.php:238
    woodmart_images_gallery_shortcode()
    wp-includes/shortcodes.php:434
    do_shortcode_tag()
    wp-includes/shortcodes.php:434
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/plugins/js_composer/include/helpers/helpers.php:328
    wpb_js_remove_wpautop()
    wp-content/plugins/js_composer/include/templates/shortcodes/vc_column.php:103
    WPBakeryShortCode->loadTemplate()
    wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php:504
    WPBakeryShortCode->content()
    wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php:641
    WPBakeryShortCode->output()
    wp-content/plugins/js_composer/include/helpers/helpers.php:1419
    vc_do_shortcode()
    wp-includes/shortcodes.php:434
    do_shortcode_tag()
    wp-includes/shortcodes.php:434
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/plugins/js_composer/include/helpers/helpers.php:328
    wpb_js_remove_wpautop()
    wp-content/plugins/js_composer/include/templates/shortcodes/vc_row.php:175
    WPBakeryShortCode->loadTemplate()
    wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php:62
    WPBakeryShortCode_Vc_Row->content()
    wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php:641
    WPBakeryShortCode->output()
    wp-content/plugins/js_composer/include/helpers/helpers.php:1419
    vc_do_shortcode()
    wp-includes/shortcodes.php:434
    do_shortcode_tag()
    wp-includes/shortcodes.php:434
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-includes/class-wp-hook.php:324
    apply_filters(‘the_content’)
    wp-includes/post-template.php:256
    the_content()
    wp-content/themes/woodmart/woocommerce/single-product/tabs/description.php:49
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:2038
    woocommerce_product_description_tab()
    wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php:149
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1780
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:324
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/woodmart/woocommerce/content-single-product.php:262
    load_template(‘wp-content/themes/woodmart/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:285
    wc_get_template_part()
    wp-content/themes/woodmart/woocommerce/single-product.php:41

    #648136

    pavel.vutkow
    Participant

    I tested it with Twenty Twenty-Three – and errors disappear ….

    #648171

    pavel.vutkow
    Participant

    What I found it caused by the carousel from”you may like and” …

    Please check the video.

    #648200

    pavel.vutkow
    Participant

    You can close the problem I found the problem – it was somehow corrupted pictures! The pictures were displayed ok to the eye but in fact, they were corrupted.

    #648352

    Artem Temos
    Keymaster
    Xtemos team

    Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Warning Undefined array key “width” … Warning Undefined array key “height”’ is closed to new replies.