Home › Forums › Basel support forum › /wp-content/themes/basel/inc/woocommerce.php on line 443
/wp-content/themes/basel/inc/woocommerce.php on line 443
- This topic has 8 replies, 2 voices, and was last updated 6 years, 10 months ago by Artem Temos.
-
AuthorPosts
-
March 2, 2018 at 11:50 am #43374
idealandcoParticipantHi I have this error.
PHP Warning: A non-numeric value encountered in /home/……/public_html/wp-content/themes/basel/inc/woocommerce.php on line 443
How it can be fixed?Thanks,
José LimaMarch 2, 2018 at 2:12 pm #43413
Artem TemosKeymasterHello,
Thank you so much purchasing our theme and contacting our support center.
Could you please provide us your admin and FTP access so we can check what is wrong there?
Kind Regards
XTemos StudioMarch 2, 2018 at 4:34 pm #43464
idealandcoParticipantHi,
Bellow you have the info.
Please check all errors that it could have.
Thanks
José LimaMarch 2, 2018 at 7:46 pm #43488
Artem TemosKeymasterWhere can we see this error?
March 2, 2018 at 8:08 pm #43493
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
function basel_category_thumb_double_size( $category ) { global $basel_loop; $small_thumbnail_size = apply_filters( 'subcategory_archive_thumbnail_size', 'woocommerce_thumbnail' ); $dimensions = wc_get_image_size( $small_thumbnail_size ); $thumbnail_id = get_woocommerce_term_meta( $category->term_id, 'thumbnail_id', true ); $attr_height = ''; if( ! empty( $basel_loop['double_size'] ) && $basel_loop['double_size'] ) { $small_thumbnail_size = 'shop_catalog_x2'; $dimensions['width'] *= 2; if ( $dimensions['height'] ) { $dimensions['height'] *= 2; $attr_height = 'height="' . esc_attr( $dimensions['height'] ) . '"'; } } if ( $thumbnail_id ) { $image = wp_get_attachment_image_src( $thumbnail_id, $small_thumbnail_size ); $image = $image[0]; } else { $image = wc_placeholder_img_src(); } if ( $image ) { // Prevent esc_url from breaking spaces in urls for image embeds // Ref: https://core.trac.wordpress.org/ticket/23605 $image = str_replace( ' ', '%20', $image ); echo '<img src="' . esc_url( $image ) . '" alt="' . esc_attr( $category->name ) . '" width="' . esc_attr( $dimensions['width'] ) . '" ' . $attr_height . ' />'; } }
March 2, 2018 at 8:11 pm #43494
idealandcoParticipantyou can see the error in the error_log file in public_html folder.
Where I put the code?
March 2, 2018 at 9:47 pm #43504
Artem TemosKeymasterYou need to put it in the file
functions.php
in the child theme. Or you can wait till the next theme update where we will fix this issue.March 5, 2018 at 12:42 pm #43930
idealandcoParticipantHi, Thanks for your reply.
I don’t have the child theme instaled, so What I can do?March 5, 2018 at 1:40 pm #43936
Artem TemosKeymasterIn such case, you need to install and activate the child theme firstly. An empty child theme file to install can be found in the downloaded package from ThemeForest.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register