hyyan / woo-poly-integration

Looking for maintainers! - Wordpress WooCommerce Polylang Integration
https://wordpress.org/plugins-wp/woo-poly-integration/
MIT License
183 stars 66 forks source link

Deprecated: get_woocommerce_term_meta is <strong>deprecated</strong> since version 3.6! Use get_term_meta instead. #503

Closed Jon007 closed 4 years ago

Jon007 commented 4 years ago

Can you reproduce this issue on default Wordpress theme (eg Storefront)?

yes

Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration?

yes

What product versions and settings are you using when this issue occurs?

Steps to Reproduce

  1. Edit Categories and translation

What I Expected

no errors logged

What Happened Instead

Warning logged as:

Deprecated:  get_woocommerce_term_meta is <strong>deprecated</strong> since version 3.6! Use get_term_meta instead. in wp-includes/functions.php on line 4713
Stack trace:
  1. {main}() wp-admin/edit-tags.php:0
  2. do_action($tag = *uninitialized*, ...$arg = variadic(*uninitialized*)) wp-admin/edit-tags.php:524
  3. WP_Hook->do_action($args = *uninitialized*) wp-includes/plugin.php:478
  4. WP_Hook->apply_filters($value = *uninitialized*, $args = *uninitialized*) wp-includes/class-wp-hook.php:311
  5. Hyyan\WPI\Taxonomies\Categories->copyProductCatCustomFields(*uninitialized*) wp-includes/class-wp-hook.php:287
  6. get_woocommerce_term_meta($term_id = *uninitialized*, $key = *uninitialized*, $single = *uninitialized*) wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Taxonomies/Categories.php:88
  7. wc_deprecated_function($function = *uninitialized*, $version = *uninitialized*, $replacement = *uninitialized*) wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:1124
  8. _deprecated_function($function = *uninitialized*, $version = *uninitialized*, $replacement = *uninitialized*) wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:54
  9. trigger_error(*uninitialized*, *uninitialized*) wp-includes/functions.php:4713

WordPress Environment

``` ` ### WordPress Environment ### WordPress address (URL): http://localhost:8888/woo3test Site address (URL): http://localhost:8888/woo3test WC Version: 4.2.2 REST API Version: ✔ 1.0.8 WC Blocks Version: ✔ 2.5.16 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 1.2.4 Log Directory Writable: ✔ WP Version: 5.4.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ✔ WP Cron: – Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.4.2 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.24.0 PHP Version: 7.4.2 PHP Post Max Size: 8 MB PHP Time Limit: 0 PHP Max Input Vars: 1000 cURL Version: 7.65.1 OpenSSL/1.0.2o SUHOSIN Installed: – MySQL Version: 5.7.26 Max Upload Size: 8 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 4.2.2 WC Database Prefix: wp_ Total Database Size: 6.24MB Database Data Size: 3.88MB Database Index Size: 2.36MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ac_abandoned_cart_history_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ac_email_templates_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ac_guest_abandoned_cart_history_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ac_sent_history_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_alm: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.05MB + Index: 0.09MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_templates: Data: 0.31MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_segments: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nextend2_section_storage: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_sliders: Data: 0.03MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 1.16MB + Index: 0.06MB + Engine InnoDB wp_p2p: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_p2pmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_postmeta: Data: 0.50MB + Index: 0.34MB + Engine InnoDB wp_posts: Data: 0.13MB + Index: 0.06MB + Engine InnoDB wp_relevanssi: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_relevanssi_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_relevanssi_stopwords: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tinvwl_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_tinvwl_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### achievement-type: 1 attachment: 58 badgeos-log-entry: 2 customize_changeset: 1 mailpoet_page: 1 nav_menu_item: 14 page: 20 polylang_mo: 3 post: 4 product: 60 product_variation: 54 revision: 20 shop_coupon: 3 shop_order: 16 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ❌ Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ✔ ### Active Plugins (4) ### Polylang: by WP SYNTEX – 2.7.3 Classic Editor: by WordPress Contributors – 1.5 Hyyan WooCommerce Polylang Integration: by Hyyan Abo Fakher – 1.4.4 WooCommerce: by Automattic – 4.2.2 ### Inactive Plugins (1) ### Query Monitor: by John Blackbourn – 3.6.0 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: ✔ Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) grouped (grouped-en) simple (simple) simple (simple-en) variable (variable) variable (variable-en) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #34 - / Basket: #35 - /cart/ Checkout: #36 - /checkout/ My account: #37 - /my-account/ Terms and conditions: #2 - /sample-page/ ### Theme ### Name: Storefront Version: 2.5.7 Author URL: https://woocommerce.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### Action Scheduler ### Complete: 27 Oldest: 2020-06-28 12:28:23 +0100 Newest: 2020-06-28 12:42:02 +0100 ### WooCommerce Polylang Integration ### Language Locale: en_GB Polylang Language Locale: en_GB Polylang Available Languages: en_GB (WooCommerce translation file found OK at /Applications/MAMP/htdocs/woo3test/wp-content/languages/plugins/woocommerce-en_GB.mo) es_ES (WooCommerce translation file found OK at /Applications/MAMP/htdocs/woo3test/wp-content/languages/plugins/woocommerce-es_ES.mo) de_DE (WooCommerce translation file found OK at /Applications/MAMP/htdocs/woo3test/wp-content/languages/plugins/woocommerce-de_DE.mo) ````