Language encoding in product features
-
Greetings
I would be very grateful for the help
I have a website in Hebrew
When I save features and variations
The values are stored in the database properly
But the keys are kept in improper encoding
For example instead
attribute_משפחה
Write
attribute_% d7% 9e% d7% a9% d7% a4% d7% 97% d7% 94
Thank you
-
If I create the attribute Programming
If I create the
attribute
Programming
With the functions of woocommerce:
WC_Product_Attribute
set_attributes
WC_Product_Variation
set_attributes
It does work well
God has the solutionsHi there,
Thanks for following up! Glad you were able to get things sorted out 🙂
I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
I’m surprised
Is it called a solution?
It’s only if you do it programmatically
If the management interface is used normally this is not correct
I think it should be passed on to developersMy apologies for the misunderstanding.
I’ve had a look at our reported issues and do not see reference to one similar to this. Can you please send a screenshot of what you’re seeing when the encoding is not working as expected? As well as more information about the workaround you’ve setup?
Does this issue happen when you’re using only a default theme and only WooCommerce activated? If so, can you also share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
It’s quite possible you’ve uncovered a bug. If you’d prefer, you can also submit a bug report: https://github.com/woocommerce/woocommerce/issues/
attached Screenshot
Yes the fault also in shutting down all plugins (except Vocommerce)
As for the default theme, what’s its name? (I deleted all topics)### WordPress Environment ### WordPress address (URL): http://tikshoret.xyz Site address (URL): http://tikshoret.xyz WC Version: 4.4.1 REST API Version: ✔ 1.0.15 WC Blocks Version: ✔ 3.1.0 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 1.4.0 Log Directory Writable: ✔ WP Version: 5.5.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: he_IL External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.8 PHP Post Max Size: 64 MB PHP Time Limit: 60 PHP Max Input Vars: 5000 cURL Version: 7.62.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.5.5-10.4.13-MariaDB Max Upload Size: 64 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 4.4.1 WC Database Prefix: wp_ הגודל הכולל של בסיס הנתונים: 6.08MB גודל הנתונים של בסיס הנתונים: 4.06MB גודל האינדקס של בסיס הנתונים: 2.02MB wp_woocommerce_sessions: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB wp_woocommerce_api_keys: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_woocommerce_attribute_taxonomies: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB wp_woocommerce_downloadable_product_permissions: נתונים: 0.02MB + אינדקס: 0.17MB + מנוע InnoDB wp_woocommerce_order_items: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_woocommerce_order_itemmeta: נתונים: 0.08MB + אינדקס: 0.14MB + מנוע InnoDB wp_woocommerce_tax_rates: נתונים: 0.02MB + אינדקס: 0.08MB + מנוע InnoDB wp_woocommerce_tax_rate_locations: נתונים: 0.02MB + אינדקס: 0.05MB + מנוע InnoDB wp_woocommerce_shipping_zones: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_woocommerce_shipping_zone_locations: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_woocommerce_shipping_zone_methods: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_woocommerce_payment_tokens: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_woocommerce_payment_tokenmeta: נתונים: 0.02MB + אינדקס: 0.05MB + מנוע InnoDB wp_woocommerce_log: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB dr_Basket_Detail: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_actionscheduler_actions: נתונים: 0.14MB + אינדקס: 0.11MB + מנוע InnoDB wp_actionscheduler_claims: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB wp_actionscheduler_groups: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB wp_actionscheduler_logs: נתונים: 0.13MB + אינדקס: 0.11MB + מנוע InnoDB wp_commentmeta: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_comments: נתונים: 0.02MB + אינדקס: 0.09MB + מנוע InnoDB wp_links: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB wp_mailchimp_carts: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_mailchimp_jobs: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_ms_snippets: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_options: נתונים: 2.52MB + אינדקס: 0.08MB + מנוע InnoDB wp_postmeta: נתונים: 0.22MB + אינדקס: 0.19MB + מנוע InnoDB wp_posts: נתונים: 0.11MB + אינדקס: 0.06MB + מנוע InnoDB wp_snippets: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_termmeta: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_terms: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_term_relationships: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB wp_term_taxonomy: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_usermeta: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_users: נתונים: 0.02MB + אינדקס: 0.05MB + מנוע InnoDB wp_wc_admin_notes: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_wc_admin_note_actions: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB wp_wc_category_lookup: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_wc_customer_lookup: נתונים: 0.02MB + אינדקס: 0.05MB + מנוע InnoDB wp_wc_download_log: נתונים: 0.02MB + אינדקס: 0.05MB + מנוע InnoDB wp_wc_order_coupon_lookup: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_wc_order_product_lookup: נתונים: 0.02MB + אינדקס: 0.06MB + מנוע InnoDB wp_wc_order_stats: נתונים: 0.02MB + אינדקס: 0.05MB + מנוע InnoDB wp_wc_order_tax_lookup: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_wc_product_meta_lookup: נתונים: 0.02MB + אינדקס: 0.09MB + מנוע InnoDB wp_wc_reserved_stock: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB wp_wc_tax_rate_classes: נתונים: 0.02MB + אינדקס: 0.02MB + מנוע InnoDB wp_wc_webhooks: נתונים: 0.02MB + אינדקס: 0.03MB + מנוע InnoDB wp_wpforms_tasks_meta: נתונים: 0.02MB + אינדקס: 0.00MB + מנוע InnoDB ### Post Type Counts ### attachment: 14 custom_css: 1 customize_changeset: 9 elementor_library: 1 nav_menu_item: 17 page: 13 post: 2 product: 11 product_variation: 34 revision: 1 shop_order: 69 ### Security ### Secure connection (HTTPS): ❌ החנות לא משתמשת בHTTPS. מידע נוסף על HTTPS ותעודות SSL. Hide errors from visitors: ✔ ### Active Plugins (1) ### ווקומרס: מאת חברת אוטומטיק – 4.4.1 (העדכון לגרסה 4.5.2 זמין) ### Inactive Plugins (7) ### Code Snippets: מאת Code Snippets Pro – 2.14.0 Elementor: מאת Elementor.com – 2.9.14 Facebook for WooCommerce: מאת Facebook – 1.11.4 – הגרסה המתוקנת לא נבדקה עם הגרסה הפעילה של WooCommerce 4.4.1 Google Ads for WooCommerce: מאת Kliken – 1.0.4 – הגרסה המתוקנת לא נבדקה עם הגרסה הפעילה של WooCommerce 4.4.1 Mailchimp for WooCommerce: מאת Mailchimp – 2.4.3 – הגרסה המתוקנת לא נבדקה עם הגרסה הפעילה של WooCommerce 4.4.1 Ocean Extra: מאת OceanWP – 1.6.5 WP Super Cache: מאת Automattic – 1.7.1 ### Must Use Plugins (1) ### Elementor Safe Mode: מאת Elementor.com – 1.0.0 ### Settings ### API Enabled: – Force SSL: – Currency: ILS (₪) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) 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 ### בסיס חנות: #30 - / סל קניות: #31 - /cart/ תשלום: #32 - /checkout/ החשבון שלי: #33 - /my-account/ תנאי שימוש: ❌ דף לא מוגדר ### Theme ### Name: OceanWP Version: 1.8.7 (העדכון לגרסה 1.8.9 זמין) Author URL: https://oceanwp.org/about-me/ Child Theme: ❌ – אם משנים את ווקומרס בערכת נושא אב שלא נבנתה באופן אישי מומלץ להשתמש בערכת עיצוב בת. אפשר לראות: כיצד ליצור ערכת עיצוב בת WooCommerce Support: ✔ ### Templates ### Overrides: oceanwp/woocommerce/cart/mini-cart.php oceanwp/woocommerce/content-single-product.php oceanwp/woocommerce/loop/loop-start.php oceanwp/woocommerce/single-product/title.php ### Action Scheduler ### הושלם: 415 Oldest: 2020-08-19 13:17:55 +0300 Newest: 2020-09-09 14:44:32 +0300 ממתין לאישור: 1 Oldest: 2020-09-15 11:00:18 +0300 Newest: 2020-09-15 11:00:18 +0300 נכשל: 2 Oldest: – Newest: –attached Screenshot
Thanks for sending this. So the issue is only on the backend?
Or does it appear on the front end as well?
When looking at your site, I only found one product and it was out of stock so I was not able to check further:
https://tikshoret.xyz/product/product-3/
Yes the fault also in shutting down all plugins (except Vocommerce)
That’s good to know.
As for the default theme, what’s its name? (I deleted all topics)
I’ve found a fairly old issue where the issue came from the theme. Before going down any other troubleshooting paths, I’d like to ensure that this isn’t the case here.
The best way to determine this is to:- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Let us know how that goes.
Thanks Nancy
I really appreciate your consistency1. Yes, is only on the backend (but it is relevant to plugins)
Could be on the front end as well
Because of the next thing-
this
Note that it is written twice, once as the identifier (?) Of the attribute, and there it is incorrect, and a second time as there, and there it is correct.2. It continues even with the “Storefront” template, and with off plugins
3. My site is not yet active for learning and experimentation
I am currently working with products in English until it is fixed-
This reply was modified 5 years, 8 months ago by
davidrot.
The topic ‘Language encoding in product features’ is closed to new replies.