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”
- This topic has 11 replies, 2 voices, and was last updated 4 months, 2 weeks ago by
Artem Temos.
-
AuthorPosts
-
March 18, 2025 at 11:12 pm #646972
pavel.vutkowParticipantHello,
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:41March 19, 2025 at 10:05 am #647050
Artem TemosKeymasterHello,
Please provide us with your admin access so we can log in and check this on your end.
Thank you in advance.
March 19, 2025 at 3:21 pm #647224
pavel.vutkowParticipantHello,
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,
PavelMarch 19, 2025 at 3:24 pm #647227
pavel.vutkowParticipantFo example products.
March 19, 2025 at 5:22 pm #647283
Artem TemosKeymasterCould you please send us your FTP access as well?
March 21, 2025 at 4:37 pm #647959
pavel.vutkowParticipantyes please but please make somthing asap – because this site is live and now I see:
visible error:
https://snipboard.io/6BkreN.jpgHere is it.
March 21, 2025 at 6:08 pm #647993
Artem TemosKeymasterThis 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.jpgMarch 22, 2025 at 1:37 pm #648135
pavel.vutkowParticipantHello,
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:41March 22, 2025 at 1:39 pm #648136
pavel.vutkowParticipantI tested it with Twenty Twenty-Three – and errors disappear ….
March 22, 2025 at 3:15 pm #648171
pavel.vutkowParticipantWhat I found it caused by the carousel from”you may like and” …
Please check the video.
March 22, 2025 at 5:46 pm #648200
pavel.vutkowParticipantYou 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.
March 24, 2025 at 10:36 am #648352
Artem TemosKeymasterGreat, we are glad that you sorted it out. Feel free to contact us if you have any further questions.
-
AuthorPosts
The topic ‘Warning Undefined array key “width” … Warning Undefined array key “height”’ is closed to new replies.
- You must be logged in to create new topics. Login / Register