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

Admin notice for wooommere page in base language #440

Closed Gul-liver closed 5 years ago

Gul-liver commented 5 years ago

Hello,

Problem with persistent admin notice which alerts about cart, checkout, shop, my acount page in base language: cart page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1 checkout page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1 myaccount page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1 shop page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1

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

It occurs on admin side. Everything seems ok for frontend.

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

Yes, same admin notice.

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

By the way: 2 languages: french by default (with the star), and english. But it’s been missing some translations for a long time, and it has never been a problem. Site language: is french in WordPress, Settings, General User language of admin user is french in /wp-admin/profile.php

Steps to Reproduce

  1. update to last release of Polylang
  2. update to Hyyan Integration 1.4.3

What I Expected

Nothing special

What Happened Instead

Admin notice on top of wordpress dasboard which alerts on issue about woocommerce page. For example: cart page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1

with "page -1" which is a versatile link towards the present page

Hyyan-woocommerce

WordPress Environment

``` Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin here. ` ### WordPress Environment ### Home URL: https://impressionsnaturellesbretonnes.fr Site URL: https://impressionsnaturellesbretonnes.fr WC Version: 3.5.7 Log Directory Writable: ✔ WP Version: ❌ 5.1.1 - Une nouvelle version de WordPress est disponible (5.2.2) WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: – Language: fr_FR External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.2.18 PHP Post Max Size: 16 MB PHP Time Limit: 14400 PHP Max Input Vars: 1000 cURL Version: 7.62.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.15-MariaDB Max Upload Size: 16 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 3.5.7 WC Database Prefix: wp_ART_ MaxMind GeoIP Database: ✔ Taille totale de la base de données: 17.10MB Taille de la base de données: 14.35MB Taille de l’index: 2.75MB wp_ART_woocommerce_sessions: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_api_keys: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_attribute_taxonomies: Données : 0.00MB + Index: 0.01MB wp_ART_woocommerce_downloadable_product_permissions: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_order_items: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_order_itemmeta: Données : 0.01MB + Index: 0.01MB wp_ART_woocommerce_tax_rates: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_tax_rate_locations: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_shipping_zones: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_shipping_zone_locations: Données : 0.00MB + Index: 0.01MB wp_ART_woocommerce_shipping_zone_methods: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_payment_tokens: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_payment_tokenmeta: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_log: Données : 0.00MB + Index: 0.00MB wp_ART_alm: Données : 0.00MB + Index: 0.00MB wp_ART_commentmeta: Données : 0.00MB + Index: 0.00MB wp_ART_comments: Données : 0.01MB + Index: 0.01MB wp_ART_gmwfb_mapdetails: Données : 0.00MB + Index: 0.00MB wp_ART_huge_itportfolio_images: Données : 0.01MB + Index: 0.00MB wp_ART_huge_itportfolio_portfolios: Données : 0.00MB + Index: 0.00MB wp_ART_iframepopup: Données : 0.00MB + Index: 0.00MB wp_ART_links: Données : 0.00MB + Index: 0.00MB wp_ART_lockdowns: Données : 0.00MB + Index: 0.00MB wp_ART_login_fails: Données : 0.01MB + Index: 0.00MB wp_ART_mappress_maps: Données : 0.00MB + Index: 0.00MB wp_ART_mappress_posts: Données : 0.00MB + Index: 0.00MB wp_ART_nm_personalized: Données : 0.00MB + Index: 0.00MB wp_ART_odb_logs: Données : 0.00MB + Index: 0.00MB wp_ART_options: Données : 10.16MB + Index: 0.09MB wp_ART_postmeta: Données : 1.72MB + Index: 0.48MB wp_ART_posts: Données : 0.94MB + Index: 0.11MB wp_ART_po_plugins: Données : 0.06MB + Index: 0.04MB wp_ART_say_what_strings: Données : 0.00MB + Index: 0.00MB wp_ART_shipment_batch_process: Données : 0.00MB + Index: 0.00MB wp_ART_slim_events: Données : 0.00MB + Index: 0.00MB wp_ART_slim_events_archive: Données : 0.00MB + Index: 0.00MB wp_ART_slim_stats: Données : 0.00MB + Index: 0.00MB wp_ART_slim_stats_archive: Données : 0.00MB + Index: 0.00MB wp_ART_slp_extendo_meta: Données : 0.00MB + Index: 0.00MB wp_ART_statistics_exclusions: Données : 0.00MB + Index: 0.01MB wp_ART_statistics_historical: Données : 0.00MB + Index: 0.00MB wp_ART_statistics_pages: Données : 0.83MB + Index: 1.38MB wp_ART_statistics_search: Données : 0.00MB + Index: 0.01MB wp_ART_statistics_useronline: Données : 0.00MB + Index: 0.00MB wp_ART_statistics_visit: Données : 0.02MB + Index: 0.02MB wp_ART_statistics_visitor: Données : 0.39MB + Index: 0.35MB wp_ART_statistics_visitor_relationships: Données : 0.00MB + Index: 0.01MB wp_ART_stock_log: Données : 0.00MB + Index: 0.00MB wp_ART_store_locator: Données : 0.00MB + Index: 0.00MB wp_ART_termmeta: Données : 0.01MB + Index: 0.02MB wp_ART_terms: Données : 0.02MB + Index: 0.04MB wp_ART_term_relationships: Données : 0.04MB + Index: 0.08MB wp_ART_term_taxonomy: Données : 0.04MB + Index: 0.03MB wp_ART_usermeta: Données : 0.01MB + Index: 0.02MB wp_ART_users: Données : 0.00MB + Index: 0.01MB wp_ART_wcpdf_invoice_number: Données : 0.00MB + Index: 0.00MB wp_ART_wc_download_log: Données : 0.00MB + Index: 0.00MB wp_ART_wc_webhooks: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_extra_cost: Données : 0.00MB + Index: 0.00MB wp_ART_woocommerce_extra_flat_rates: Données : 0.00MB + Index: 0.00MB wp_ART_woof_query_cache: Données : 0.00MB + Index: 0.00MB wp_ART_woo_shipment_status_email: Données : 0.00MB + Index: 0.00MB wp_ART_woo_shippment_provider: Données : 0.01MB + Index: 0.00MB wp_ART_wow_mwp: Données : 0.02MB + Index: 0.00MB wp_ART_xyz_ips_short_code: Données : 0.02MB + Index: 0.00MB wp_ART_yoast_seo_links: Données : 0.01MB + Index: 0.00MB wp_ART_yoast_seo_meta: Données : 0.01MB + Index: 0.01MB ### Post Type Counts ### acf: 1 acf-field-group: 1 attachment: 492 br_labels: 2 cf7_style: 9 foogallery: 5 nav_menu_item: 60 page: 41 photo_book: 1 plugin_filter: 1 polylang_mo: 6 post: 15 product: 241 product_variation: 7 revision: 137 shop_coupon: 1 shop_order: 2 wafs: 1 wccpf: 1 wpcf7_contact_form: 8 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (52) ### Polylang: par WP SYNTEX – 2.6.1 Async JavaScript: par Frank Goossens (futtta) – 2.18.12.10 Autoptimize: par Frank Goossens (futtta) – 2.5.1 Blackhole for Bad Bots: par Jeff Starr – 2.3 Block Bad Queries (BBQ): par Jeff Starr – 20190501 Classic Editor: par Contributeurs et contributrices WordPress – 1.5 Contact Form 7: par Takayuki Miyoshi – 5.1 Contact Form 7 - Dynamic Text Extension: par Chris Mavricos SevenSpark – 2.0.2.1 Contact Form 7 Conditional Fields: par Jules Colle – 1.6.2 Contact Form 7 Honeypot: par Nocean – 1.14 Contact Form 7 Polylang extension: par Aurovrata V. – 2.3.1 Cookie Notice: par dFactory – 1.2.44 Easy FancyBox: par RavanH – 1.8.7 Flexible Shipping: par WP Desk – 3.4.0 FooBox - Lightbox d’image: par FooPlugins – 1.2.27 FooGallery: par FooPlugins – 1.4.12 Google XML Sitemaps: par Arne Brachhold – 4.1.0 Hyyan WooCommerce Polylang Integration: par Hyyan Abo Fakher – 1.4.3 Load More Products for WooCommerce: par BeRocket – 1.0.9.1 – Non testé avec la version active de WooCommerce Loco Translate: par Tim Whitlock – 2.3.0 Merge + Minify + Refresh: par Launch Interactive – 1.8.12 Optimize Database after Deleting Revisions: par CAGE Web Design | Rolf van Gelder Eindhoven Pays-Bas – 4.8.0 Photo Book Gallery: par Rameez – 7.5 Plugin Organizer: par Jeff Sterup – 10.0 Post Thumbnail Editor: par sewpafly – 2.4.8 Really Simple CAPTCHA: par Takayuki Miyoshi – 2.0.2 Simple Scroll to Top Button: par Arthur Gareginyan – 4.14 Sliding Widgets: par codename065 – 1.5.0 Slimstat Analytics: par Jason Crouse – 4.8.3 SMNTCS WooCommerce Quantity Buttons: par Niels Lange – 1.10 – Non testé avec la version active de WooCommerce Sticky Menu (or Anything!) on Scroll: par Mark Senff – 2.0.1 Tabby Responsive Tabs: par cubecolour – 1.2.3 Thumbnail Editor: par aviplugins.com – 2.2.6 Transients Manager: par Pippin Williamson – 1.7.7 Widget Logic: par WPChef – 5.10.4 WooCommerce: par Automattic – 3.5.7 – 3.6.5 est disponible WooCommerce Advanced Product Labels: par BeRocket – 1.1.14.1 WooCommerce Advanced Shipment Tracking: par zorem – 1.9.3.2 – Non testé avec la version active de WooCommerce WooCommerce Cart: par XootiX – 1.0.2 – Non testé avec la version active de WooCommerce WooCommerce Gateways Country Limiter: par OnTheGoSystems – 1.4 – Non testé avec la version active de WooCommerce WooCommerce PDF Invoices & Packing Slips: par Ewout Fernhout – 2.2.14 WooCommerce Stock Manager: par Vladislav Musílek – 2.0.2 WooCommerce Stripe Gateway: par WooCommerce – 4.2.2 WooCommerce Variation Swatches: par ThemeAlien – 1.0.4 WooCommerce Waitlist: par XootiX – 1.4 – Non testé avec la version active de WooCommerce Wow Modal Windows Pro: par Wow-Company – 2.3.3 WP Database Backup: par Prashant Walke – 5.3 WP Rollback: par Impress.org – 1.6 WP Super Cache: par Automattic – 1.6.8 WPS Hide Login: par WPServeur NicolasKulka tabrisrp – 1.5.2.2 WPS Limit Login: par WPServeur NicolasKulka benoitgeek – 1.4.5 Yoast SEO: par L’équipe Yoast – 11.5 ### Settings ### API Enabled: ✔ Force SSL: ✔ Currency: EUR (€) Currency Position: right 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) ### WC Pages ### Base de la boutique: #566 - /artisanat-pictural/ Panier: #489 - /panier/ Validation de la commande: #490 - /commande/ Mon compte: #491 - /mon-compte/ Conditions générales de vente et d’utilisation: #516 - /cgv/ ### Theme ### Name: Hitchcock Perso Version: – 0 est disponible Author URL: Child Theme: ✔ Parent Theme Name: Hitchcock Parent Theme Version: 1.06 – 1.22 est disponible Parent Theme Author URL: http://www.andersnoren.se WooCommerce Support: ✔ ### Templates ### Archive Template: Votre thème a un fichier woocommerce.php vous ne serez pas en mesure de substituer le modèle personnalisé woocommerce/archive-product.php étant donné que woocommerce.php a la priorité sur archive-product.php. Ceci vise à prévenir les problèmes d’affichage. Overrides: hitchcock-perso/woocommerce/archive-product.php hitchcock-perso/woocommerce/auth/footer.php hitchcock-perso/woocommerce/auth/form-grant-access.php hitchcock-perso/woocommerce/auth/form-login.php hitchcock-perso/woocommerce/auth/header.php hitchcock-perso/woocommerce/cart/cart-empty.php hitchcock-perso/woocommerce/cart/cart-item-data.php hitchcock-perso/woocommerce/cart/cart-shipping.php hitchcock-perso/woocommerce/cart/cart-totals.php hitchcock-perso/woocommerce/cart/cart.php hitchcock-perso/woocommerce/cart/cross-sells.php hitchcock-perso/woocommerce/cart/mini-cart.php hitchcock-perso/woocommerce/cart/proceed-to-checkout-button.php hitchcock-perso/woocommerce/cart/shipping-calculator.php hitchcock-perso/woocommerce/checkout/cart-errors.php hitchcock-perso/woocommerce/checkout/form-billing.php hitchcock-perso/woocommerce/checkout/form-checkout.php hitchcock-perso/woocommerce/checkout/form-coupon.php hitchcock-perso/woocommerce/checkout/form-login.php hitchcock-perso/woocommerce/checkout/form-pay.php hitchcock-perso/woocommerce/checkout/form-shipping.php hitchcock-perso/woocommerce/checkout/payment-method.php hitchcock-perso/woocommerce/checkout/payment.php hitchcock-perso/woocommerce/checkout/review-order.php hitchcock-perso/woocommerce/checkout/terms.php hitchcock-perso/woocommerce/checkout/thankyou.php hitchcock-perso/woocommerce/content-product.php hitchcock-perso/woocommerce/content-product_cat.php hitchcock-perso/woocommerce/content-single-product.php hitchcock-perso/woocommerce/content-widget-product.php hitchcock-perso/woocommerce/emails/admin-cancelled-order.php hitchcock-perso/woocommerce/emails/admin-failed-order.php hitchcock-perso/woocommerce/emails/admin-new-order.php hitchcock-perso/woocommerce/emails/customer-completed-order.php hitchcock-perso/woocommerce/emails/customer-invoice.php hitchcock-perso/woocommerce/emails/customer-new-account.php hitchcock-perso/woocommerce/emails/customer-note.php hitchcock-perso/woocommerce/emails/customer-on-hold-order.php hitchcock-perso/woocommerce/emails/customer-processing-order.php hitchcock-perso/woocommerce/emails/customer-refunded-order.php hitchcock-perso/woocommerce/emails/customer-reset-password.php hitchcock-perso/woocommerce/emails/email-addresses.php hitchcock-perso/woocommerce/emails/email-customer-details.php hitchcock-perso/woocommerce/emails/email-footer.php hitchcock-perso/woocommerce/emails/email-header.php hitchcock-perso/woocommerce/emails/email-order-details.php hitchcock-perso/woocommerce/emails/email-order-items.php hitchcock-perso/woocommerce/emails/email-styles.php hitchcock-perso/woocommerce/emails/plain/admin-cancelled-order.php hitchcock-perso/woocommerce/emails/plain/admin-failed-order.php hitchcock-perso/woocommerce/emails/plain/admin-new-order.php hitchcock-perso/woocommerce/emails/plain/customer-completed-order.php hitchcock-perso/woocommerce/emails/plain/customer-invoice.php hitchcock-perso/woocommerce/emails/plain/customer-new-account.php hitchcock-perso/woocommerce/emails/plain/customer-note.php hitchcock-perso/woocommerce/emails/plain/customer-on-hold-order.php hitchcock-perso/woocommerce/emails/plain/customer-processing-order.php hitchcock-perso/woocommerce/emails/plain/customer-refunded-order.php hitchcock-perso/woocommerce/emails/plain/customer-reset-password.php hitchcock-perso/woocommerce/emails/plain/email-addresses.php hitchcock-perso/woocommerce/emails/plain/email-customer-details.php hitchcock-perso/woocommerce/emails/plain/email-order-details.php hitchcock-perso/woocommerce/emails/plain/email-order-items.php hitchcock-perso/woocommerce/global/breadcrumb.php hitchcock-perso/woocommerce/global/form-login.php hitchcock-perso/woocommerce/global/quantity-input.php hitchcock-perso/woocommerce/global/sidebar.php hitchcock-perso/woocommerce/global/wrapper-end.php hitchcock-perso/woocommerce/global/wrapper-start.php hitchcock-perso/woocommerce/loop/add-to-cart.php hitchcock-perso/woocommerce/loop/loop-end.php hitchcock-perso/woocommerce/loop/loop-start.php hitchcock-perso/woocommerce/loop/no-products-found.php hitchcock-perso/woocommerce/loop/orderby.php hitchcock-perso/woocommerce/loop/pagination.php hitchcock-perso/woocommerce/loop/price.php hitchcock-perso/woocommerce/loop/rating.php hitchcock-perso/woocommerce/loop/result-count.php hitchcock-perso/woocommerce/loop/sale-flash.php hitchcock-perso/woocommerce/myaccount/dashboard.php hitchcock-perso/woocommerce/myaccount/downloads.php hitchcock-perso/woocommerce/myaccount/form-add-payment-method.php hitchcock-perso/woocommerce/myaccount/form-edit-account.php hitchcock-perso/woocommerce/myaccount/form-edit-address.php hitchcock-perso/woocommerce/myaccount/form-login.php hitchcock-perso/woocommerce/myaccount/form-lost-password.php hitchcock-perso/woocommerce/myaccount/form-reset-password.php hitchcock-perso/woocommerce/myaccount/lost-password-confirmation.php hitchcock-perso/woocommerce/myaccount/my-account.php hitchcock-perso/woocommerce/myaccount/my-address.php hitchcock-perso/woocommerce/myaccount/my-downloads.php hitchcock-perso/woocommerce/myaccount/my-orders.php hitchcock-perso/woocommerce/myaccount/navigation.php hitchcock-perso/woocommerce/myaccount/orders.php hitchcock-perso/woocommerce/myaccount/payment-methods.php hitchcock-perso/woocommerce/myaccount/view-order.php hitchcock-perso/woocommerce/notices/error.php hitchcock-perso/woocommerce/notices/notice.php hitchcock-perso/woocommerce/notices/success.php hitchcock-perso/woocommerce/order/form-tracking.php hitchcock-perso/woocommerce/order/order-again.php hitchcock-perso/woocommerce/order/order-details-customer.php hitchcock-perso/woocommerce/order/order-details-item.php hitchcock-perso/woocommerce/order/order-details.php hitchcock-perso/woocommerce/order/tracking.php hitchcock-perso/woocommerce/product-searchform.php hitchcock-perso/woocommerce/single-product/add-to-cart/external.php hitchcock-perso/woocommerce/single-product/add-to-cart/grouped.php hitchcock-perso/woocommerce/single-product/add-to-cart/simple.php hitchcock-perso/woocommerce/single-product/add-to-cart/variable.php hitchcock-perso/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php hitchcock-perso/woocommerce/single-product/add-to-cart/variation.php hitchcock-perso/woocommerce/single-product/meta.php hitchcock-perso/woocommerce/single-product/price.php hitchcock-perso/woocommerce/single-product/product-attributes.php hitchcock-perso/woocommerce/single-product/product-image.php hitchcock-perso/woocommerce/single-product/product-thumbnails.php hitchcock-perso/woocommerce/single-product/rating.php hitchcock-perso/woocommerce/single-product/related.php hitchcock-perso/woocommerce/single-product/review-meta.php hitchcock-perso/woocommerce/single-product/review-rating.php hitchcock-perso/woocommerce/single-product/review.php hitchcock-perso/woocommerce/single-product/sale-flash.php hitchcock-perso/woocommerce/single-product/share.php hitchcock-perso/woocommerce/single-product/short-description.php hitchcock-perso/woocommerce/single-product/tabs/additional-information.php hitchcock-perso/woocommerce/single-product/tabs/description.php hitchcock-perso/woocommerce/single-product/tabs/tabs.php hitchcock-perso/woocommerce/single-product/title.php hitchcock-perso/woocommerce/single-product/up-sells.php hitchcock-perso/woocommerce/single-product-reviews.php hitchcock-perso/woocommerce/single-product.php hitchcock-perso/woocommerce/taxonomy-product_cat.php hitchcock-perso/woocommerce/taxonomy-product_tag.php ```
Jon007 commented 5 years ago

@Gul-liver is your Polylang language locale also fr_FR - French (France) ? I was wondering whether one of the settings used a different locale of French...

Gul-liver commented 5 years ago

Hello Jon,

Yes, default polylang language is fr_FR: As I said in the support forum, every language is set on fr_FR: general language for site, polylang, profile. Capture-Polylang

Is there a place where I could find a more verbious log than "cart page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1" ? Something to observe in database ? For example the missing of something ? Thanks a lot.

Jon007 commented 5 years ago

@Gul-liver
euhh je vois qu'il y a une problème... ici: "Il y a des articles, pages, catégories ou étiquettes sans jeu de langue"

appuyez clic sur "Vous pouvez leur attribuer la langue par défaut" et depuis nous verrons si tout est corrigé

if the default shop pages do not have a language set that would explain why the api is not returning results, the api cannot find the page in French because the page is not actually associated with the French language..

Gul-liver commented 5 years ago

Hello Jonathan,

YES ! Indeed, it was the issue ... this warning appeared long ago in polylang. I knew that some items (test page, or products) were not finalized and it has never been a problem because all my important page are assigned to a language and are translated (shop, cart page, etc ...). It seems the latest Polylang and / or the latest Hyyan polylang integration plugin do not bear anymore having page, article, product not having a default language. This is new.

Thank a lot for your help, as it used to work I did not think it could have come from there. NO BUG ! Best regard