Home › Forums › WoodMart support forum › Errors on wishlist page ( Array to string conversion in array_diff_assoc() )
Errors on wishlist page ( Array to string conversion in array_diff_assoc() )
- This topic has 5 replies, 2 voices, and was last updated 1 year ago by
Artem Temos.
-
AuthorPosts
-
April 6, 2024 at 8:50 pm #555451
WebznarParticipantIt seems that this function array_diff_assoc() does not work with multidimensional arrays, and it is such arrays that are passed to the parameters. (\themes\woodmart\inc\shortcodes\products.php on line 24 )
Attachments:
You must be logged in to view attached files.April 8, 2024 at 9:55 am #555587
Artem TemosKeymasterHello,
Please disable any plugins that are not directly related to our website’s theme and provide us with your admin and FTP access details. We will log in to your account and investigate the issue. Please ensure that you only keep the following plugins that are necessary for our theme to work correctly:
– WoodMart core
– WooCommerce
– Elementor/WPBakery Page BuilderThank you in advance.
April 8, 2024 at 10:18 am #555599
WebznarParticipantThe site only has the plugins installed that the template installed when it was installed. Clean template. Access to the site I can not give it on a local computer.
This line gives an error
$encoded_atts = wp_json_encode( array_diff_assoc( $parsed_atts, woodmart_get_carousel_atts() ) );
Here’s the array $parsed_atts
Array ( [carousel_id] => 5000 [speed] => 5000 [slides_per_view] => 3 [slides_per_view_tablet] => Array ( [size] => ) [slides_per_view_mobile] => Array ( [size] => ) [wrap] => [loop] => [autoplay] => no [autoheight] => no [hide_pagination_control] => no [hide_pagination_control_tablet] => yes [hide_pagination_control_mobile] => yes [dynamic_pagination_control] => [hide_prev_next_buttons] => [carousel_arrows_position] => [hide_scrollbar] => yes [hide_scrollbar_tablet] => yes [hide_scrollbar_mobile] => yes [scroll_per_page] => yes [dragEndSpeed] => 200 [center_mode] => no [custom_sizes] => [sliding_speed] => [animation] => [content_animation] => [post_type] => ids [slider] => [library] => [css] => [effect] => [spacing] => [spacing_tablet] => [spacing_mobile] => [carousel_sync] => [sync_parent_id] => [sync_child_id] => [scroll_carousel_init] => [disable_overflow_carousel] => [element_title] => [layout] => grid [include] => 128218 [custom_query] => [taxonomies] => [pagination] => links [items_per_page] => 16 [product_hover] => inherit [columns] => 3 [columns_tablet] => auto [columns_mobile] => auto [sale_countdown] => 0 [stretch_product_desktop] => 0 [stretch_product_tablet] => 0 [stretch_product_mobile] => 0 [stock_progress_bar] => 0 [highlighted_products] => 0 [products_bordered_grid] => 0 [products_bordered_grid_style] => outside [products_with_background] => 1 [products_shadow] => 0 [products_color_scheme] => default [product_quantity] => 0 [grid_gallery] => [grid_gallery_control] => [grid_gallery_enable_arrows] => [offset] => [orderby] => [query_type] => OR [order] => [meta_key] => [exclude] => [class] => [ajax_page] => [img_size] => woocommerce_thumbnail [force_not_ajax] => no [products_masonry] => disable [products_different_sizes] => disable [lazy_loading] => no [el_class] => [shop_tools] => no [query_post_type] => Array ( [0] => product [1] => product_variation ) [hide_out_of_stock] => no [woodmart_css_id] => [ajax_recently_viewed] => no [pagination_arrows_position] => [is_wishlist] => yes [wrapper_classes] => )
Here’s the array “woodmart_get_carousel_atts()”
Array ( [carousel_id] => 5000 [speed] => 5000 [slides_per_view] => 3 [slides_per_view_tablet] => Array ( [size] => ) [slides_per_view_mobile] => Array ( [size] => ) [wrap] => [loop] => [autoplay] => no [autoheight] => no [hide_pagination_control] => no [hide_pagination_control_tablet] => yes [hide_pagination_control_mobile] => yes [dynamic_pagination_control] => [hide_prev_next_buttons] => [carousel_arrows_position] => [hide_scrollbar] => yes [hide_scrollbar_tablet] => yes [hide_scrollbar_mobile] => yes [scroll_per_page] => yes [dragEndSpeed] => 200 [center_mode] => no [custom_sizes] => [sliding_speed] => [animation] => [content_animation] => [post_type] => [slider] => [library] => [css] => [effect] => [spacing] => [spacing_tablet] => [spacing_mobile] => [carousel_sync] => [sync_parent_id] => [sync_child_id] => [scroll_carousel_init] => [disable_overflow_carousel] => )
April 8, 2024 at 1:02 pm #555658
Artem TemosKeymasterHello,
You can fix it by applying patch #
555656
. To do this, go to Dashboard -> WoodMart -> Patcher, find the corresponding patch and click on the “Apply” button. Let us know if it works for you.Kind Regards
April 8, 2024 at 1:38 pm #555670
WebznarParticipantThanks, that helped.
April 8, 2024 at 1:59 pm #555676
Artem TemosKeymasterGreat, you are welcome! Feel free to contact us if you have any further questions.
-
AuthorPosts
The topic ‘Errors on wishlist page ( Array to string conversion in array_diff_assoc() )’ is closed to new replies.
- You must be logged in to create new topics. Login / Register