Home Forums Basel support forum WordPress update – bad things happend

WordPress update – bad things happend

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #38764

    BLAVAS
    Participant

    After the last wordpress update I see some warnings on my page and there isn’t possible to finish the checkout process!!!

    When you update your theme for the new wordpress version?
    Thanks.

    #38767

    BLAVAS
    Participant

    The screenshots again.

    Attachments:
    You must be logged in to view attached files.
    #38804

    Artem Temos
    Keymaster

    Hello,

    Please, update the theme to the latest version firstly.

    Regards

    #38822

    BLAVAS
    Participant

    How can I do this?

    #38823

    Artem Temos
    Keymaster

    To update the theme you need download the latest version on ThemeForest -> Downloads. Then just reupload new theme via Appearance -> Themes but install this plugin firstly https://wordpress.org/plugins/easy-theme-and-plugin-upgrades/
    Also, we suggest you make a backup of all your files before any update

    #38826

    BLAVAS
    Participant

    Ok, thanks, I will try it, but I hope that I don’t loose any of my settings and products which I actually have.

    #38848

    BLAVAS
    Participant

    Didn’t help.
    I still have the warnings on my page.
    But the checkout process is working now.
    Do you have any other idea?
    Thanks.

    #38920

    Artem Temos
    Keymaster

    Try 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 . ' />';
    		}
    	}
    #38930

    BLAVAS
    Participant

    It helps. Great!
    Thank you very much 🙂

    #38970

    Artem Temos
    Keymaster

    Great, you are welcome!

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

The topic ‘WordPress update – bad things happend’ is closed to new replies.