PHP Warnings with sync products with EDD 2.x
-
WARNING: wp-includes/formatting.php:1595 – preg_match() expects parameter 2 to be string, array given
WP_Posts_List_Table->inline_edit, wp_terms_checklist, get_terms, apply_filters(‘get_terms’), WP_Hook->apply_filters, WPAS_Product_Sync->get_terms, WPAS_Product_Sync->map_args, sanitize_title, remove_accents, preg_matchWARNING: wp-includes/formatting.php:2246 – strip_tags() expects parameter 1 to be string, array given
WP_Posts_List_Table->inline_edit, wp_terms_checklist, get_terms, apply_filters(‘get_terms’), WP_Hook->apply_filters, WPAS_Product_Sync->get_terms, WPAS_Product_Sync->map_args, sanitize_title, apply_filters(‘sanitize_title’), WP_Hook->apply_filters, sanitize_title_with_dashes, strip_tagsI could reproduce this error on production site and testing site on localhost by activating sync products option on settings.
WP 6.0.1
WPAS 6.1.0 (Also addons FAQ, Canned Responses, Custom Status)
EDD 2.11.7 (not tested with 3+)
Tested with PHP 7.4.1 and 8.0I get the Warnings on showing tickets list (Seem to be both Warnings by ticket row) (/wp-admin/edit.php?post_type=ticket)
Also I get them by displaying term products list. (wp-admin/edit-tags.php?taxonomy=product&post_type=ticket)
I also include this notice because seems to related.
NOTICE: wp-content/plugins/awesome-support/includes/class-product-sync.php:615 – Trying to get property ‘count’ of non-object
WP_Posts_List_Table->inline_edit, wp_terms_checklist, get_terms, apply_filters(‘get_terms’), WP_Hook->apply_filters, WPAS_Product_Sync->get_terms
- The topic ‘PHP Warnings with sync products with EDD 2.x’ is closed to new replies.