Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

404 error with Paypal express button api and language slugs #552

Open
tarsonis123 opened this issue May 21, 2021 · 2 comments
Open

404 error with Paypal express button api and language slugs #552

tarsonis123 opened this issue May 21, 2021 · 2 comments

Comments

@tarsonis123
Copy link

Hello,

Since using Polylang with WooPoly the express button on the product page leads to an 404 error.
The paypal window open up, disappears after some seconds and one get this error with a massive amount of html code after that:
Error: Request to post https://example.com/wc-api/yith_paypal_ec/?yith_paypal_set_express_checkout=1 failed with 404 error. Correlation id: unknown

Putting the /language/ slug like this
https://example.com/language/wc-api/yith_paypal_ec/?yith_paypal_set_express_checkout=1
the token works.

The website url configuration is like this:
example.com/en/
example.com/de/

When I disable Polylang the express button works like expected also. Polylang is set to show /language/ for every page. I think the Yith plugin is not knowing about the new path structure as I had it installed and configured before I installed Polylang.

I've found an issue was posted on a similar matter but not the Express button. Is there a solution without adding a child theme or did I miss something in the WooPoly settings?

#218

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?

  • PHP: 7.4
  • WordPress: 5.7.2
  • WooCommerce: 5.3
  • Polylang: 3.0.4 free
  • Hyyan WooCommerce Polylang Integration: 1.5.0
  • Browser: several

Steps to Reproduce

  1. Go to product page, press Paypal Express button

What I Expected

Paypal opens login/payment window

What Happened Instead

Paypal window closes with error message
Error: Request to post https://example.com/wc-api/yith_paypal_ec/?yith_paypal_set_express_checkout=1 failed with 404 error. Correlation id: unknown

WordPress Environment

``` ` ### WordPress Environment ###

WordPress address (URL): https://acido.shop
Site address (URL): https://acido.shop
WC Version: 5.3.0
REST API Version: ✔ 5.3.0
WC Blocks Version: ✔ 4.9.1
Action Scheduler Version: ✔ 3.1.6
WC Admin Version: ✔ 2.2.6
Log Directory Writable: ✔
WP Version: 5.7.2
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: de_DE
External object cache: –

Server Environment

Server Info: Apache
PHP Version: 7.4.18
PHP Post Max Size: 128 MB
PHP Time Limit: 300
PHP Max Input Vars: 1000
cURL Version: 7.29.0
NSS/3.53.1

SUHOSIN Installed: –
MySQL Version: 5.5.5-10.3.29-MariaDB
Max Upload Size: 128 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

Database

WC Database Version: 5.3.0
WC Database Prefix: WfZkZwQG_
Datenbank-Gesamtgröße: 25.92MB
Datenbank-Datengröße: 21.89MB
Datenbank-Indexgröße: 4.03MB
WfZkZwQG_woocommerce_sessions: Daten: 5.03MB + Index: 0.09MB + Engine InnoDB
WfZkZwQG_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
WfZkZwQG_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_woocommerce_order_itemmeta: Daten: 0.08MB + Index: 0.06MB + Engine InnoDB
WfZkZwQG_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
WfZkZwQG_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
Md7eN5Yk_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
Md7eN5Yk_comments: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB
Md7eN5Yk_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
Md7eN5Yk_options: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
Md7eN5Yk_postmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
Md7eN5Yk_posts: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
Md7eN5Yk_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
Md7eN5Yk_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
Md7eN5Yk_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
Md7eN5Yk_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
Md7eN5Yk_usermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
Md7eN5Yk_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
WfZkZwQG_actionscheduler_actions: Daten: 0.11MB + Index: 0.11MB + Engine InnoDB
WfZkZwQG_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_actionscheduler_logs: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_admin_columns: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_cartflows_ca_cart_abandonment: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_cartflows_ca_email_history: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_cartflows_ca_email_templates: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_cartflows_ca_email_templates_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_ce4wp_abandoned_checkout: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_chaty_contact_form_leads: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_cli_cookie_scan: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_cli_cookie_scan_categories: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_cli_cookie_scan_cookies: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_cli_cookie_scan_url: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_cli_scripts: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_comments: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
WfZkZwQG_fvm_cache: Daten: 2.52MB + Index: 0.05MB + Engine InnoDB
WfZkZwQG_fvm_logs: Daten: 0.06MB + Index: 0.05MB + Engine InnoDB
WfZkZwQG_gdpr_cc_options: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_glsr_assigned_posts: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_glsr_assigned_terms: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_glsr_assigned_users: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_glsr_ratings: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_hfcm_scripts: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_hustle_entries: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_hustle_entries_meta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
WfZkZwQG_hustle_modules: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_hustle_modules_meta: Daten: 0.09MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_hustle_tracking: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB
WfZkZwQG_imagify_files: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB
WfZkZwQG_imagify_folders: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_mailchimp_carts: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_mailchimp_jobs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_newsletter: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_newsletter_emails: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_newsletter_sent: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_newsletter_stats: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_newsletter_user_logs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_options: Daten: 7.50MB + Index: 0.23MB + Engine InnoDB
WfZkZwQG_postmeta: Daten: 2.52MB + Index: 0.39MB + Engine InnoDB
WfZkZwQG_posts: Daten: 1.52MB + Index: 0.06MB + Engine InnoDB
WfZkZwQG_shortpixel_folders: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_shortpixel_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_smush_dir_images: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_term_relationships: Daten: 0.05MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_term_taxonomy: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_tm_taskmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_tm_tasks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_usermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
WfZkZwQG_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
WfZkZwQG_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
WfZkZwQG_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
WfZkZwQG_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_dhl_im_products: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_dhl_im_product_services: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_dhl_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_dhl_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_packaging: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_packagingmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_shipmentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_shipments: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_shipment_itemmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_shipment_items: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_shipment_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_shipment_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_shipping_provider: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_woocommerce_gzd_shipping_providermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_wpforms_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_wpzerospam_blocked: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_wpzerospam_log: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
WfZkZwQG_yith_wcwl: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_yith_wcwl_lists: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_yoast_indexable: Daten: 0.09MB + Index: 0.08MB + Engine InnoDB
WfZkZwQG_yoast_indexable_hierarchy: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
WfZkZwQG_yoast_migrations: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
WfZkZwQG_yoast_primary_term: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
WfZkZwQG_yoast_seo_links: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB

Post Type Counts

attachment: 46
bc_x1379_op_type: 1
cookielawinfo: 25
custom_css: 3
e-landing-page: 1
elementor_library: 29
elementor-hf: 2
falang_mo: 2
nav_menu_item: 42
ni-order-status: 2
oembed_cache: 1
page: 30
polylang_mo: 2
popup: 1
product: 23
revision: 2
shop_order: 21
wcp_ruleset: 3
wpforms: 2

Security

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

Active Plugins (47)

Polylang: von WP SYNTEX – 3.0.4
The SEO Framework: von Das SEO Framework Team – 4.1.3
BC Woo Custom Thank You Pages: von WooCommerce & WordPress Tutorials – 1.1
CartPops: von CartPops.com – 1.2.16
Chaty: von Premio – 2.8
Cloudflare: von Cloudflare
Inc. – 4.4.0

Conditional Payments for WooCommerce: von Lauri Karisola / WooElements.com – 2.2.3
Add-On: Polylang mit Elementor verbinden: von David Decker - DECKERWEB – 1.0.5
CookieHub: von CookieHub – 0.3.0
Customer Reviews for WooCommerce: von Kundenrezensionen – 4.14
Disable WooCommerce Bloat: von ospiotr – 2.4.4
Elementor: von Elementor.com – 3.2.3
Enable Media Replace: von ShortPixel – 3.5.0
Essential Addons for Elementor: von WPDeveloper – 4.6.6
Fast Velocity Minify: von Raul Peixoto – 3.2.2
Flying Scripts by WP Speed Matters: von Gijo Varghese – 1.2.2
Header Footer Code Manager: von 99robots – 1.1.10
Elementor - Header, Footer & Blocks: von Brainstorm Force
Nikhil Chavan – 1.5.9

Health Check & Troubleshooting: von Die WordPress.org-Community – 1.4.5
CAOS: von Daan from FFW.Press – 4.0.5
Imagify: von WP Media – 1.9.14
Limit Login Attempts Reloaded: von Limit Login Attempts Reloaded – 2.22.1
Minimal Coming Soon & Maintenance Mode: von WebFactory Ltd – 2.27
Newsletter: von Stefano Lissa &
Das Newsletter Team – 7.1.8
Ni WooCommerce Custom Order Status: von anzia – 1.9.3
WooCommerce nowpayments.io Gateway: von nowpayments.io – 1.4.0
Ocean Extra: von OceanWP – 1.7.5
Page scroll to id: von malihu – 1.7.3
Search Exclude: von Roman Pronskiy – 1.2.6
Hide SEO Bloat: von SO WP – 3.14.7
Speed Up - Lazy Load: von Simone Nigro – 1.0.23
Trustpilot-reviews: von Trustpilot – 2.5.823
UpdraftPlus – Sichern/Wiederherstellen: von UpdraftPlus.Com
DavidAnderson – 1.16.56

WooCommerce Cash On Pickup: von Marian Kadanka – 1.6
WooCommerce Cart Abandonment Recovery: von CartFlows Inc – 1.2.12
Hyyan WooCommerce Polylang Integration: von Hyyan Abo Fakher – 1.5.0
Germanized für WooCommerce: von vendidero – 3.4.7
WooCommerce Pay for Payment: von Karolína Vyskočilová – 2.0.18
WooCommerce Shipping & Tax: von WooCommerce – 1.25.13
WooCommerce: von Automattic – 5.3.0
WP Hide & Security Enhancer: von Nsp Code – 1.6.3.6
WP-Optimize - Clean, Compress, Cache: von David Anderson
Ruhani Rabin
Team Updraft – 3.1.9

WP Revisions Control: von Erick Hitter – 1.3
WPForms Lite: von WPForms – 1.6.7
Sequential Order Numbers for WooCommerce: von WebToffee – 1.3.3
YITH PayPal Express Checkout for WooCommerce: von YITH – 1.4.6
WordPress Zero Spam: von Ben Marshall – 5.0.12

Inactive Plugins (16)

Akismet Anti-Spam: von Automattic – 4.1.9
Brave Conversion Engine: von Brave – 0.4.2
Cookiebot | GDPR/CCPA Compliant Cookie Consent and Control: von Cybot A/S – 3.10.1
GDPR Cookie Consent: von WebToffee – 2.0.1
Head, Footer and Post Injections: von Stefano Lissa – 3.2.2
HT Mega - Absolute Addons for Elementor Page Builder: von HasThemes – 1.5.8
PayPal Express Checkout Payment Gateway for WooCommerce ( Basic ): von WebToffee – 1.5.7
PayPal PLUS for WooCommerce: von Inpsyde GmbH – 2.2.1
PowerPack Lite for Elementor: von IdeaBox Creations – 2.3.3
Query Monitor: von John Blackbourn – 3.6.7
Smush: von WPMU DEV – 3.8.4
Starter Templates: von Brainstorm Force – 2.6.2
WooCommerce Menu Cart: von Jeremiah Prummer
Ewout Fernhout – 2.9.7

WooCommerce Stripe Gateway: von WooCommerce – 5.1.0
WP Cloudflare Super Page Cache: von Optimole – 4.5.2
WPFront Notification Bar: von Syam Mohan – 1.9.1.04012

Dropin Plugins (2)

advanced-cache.php: advanced-cache.php
maintenance.php: maintenance.php

Must Use Plugins (2)

Health Check Troubleshooting Mode: von – 1.7.2
wp-hide-loader.php: von –

Settings

API Enabled: –
Force SSL: –
Currency: EUR (€)
Currency Position: right_space
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

Shop-Basis: #6 - /de/shop/
Warenkorb: #2595 - /en/cart/
Kasse: #2596 - /en/checkout/
Mein Konto: #2597 - /en/my-account/
Allgemeine Geschäftsbedingungen: #1555 - /de/agb/

Theme

Name: OceanWP
Version: 2.0.8
Author URL: https://oceanwp.org/about-me/
Child Theme: ❌ – Wenn du WooCommerce mit einem Theme
das du nicht selbst entwickelt hast
an eigene Bedürfnisse anpasst
dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie du ein Child-Theme erstellst (engl.)

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

Abgebrochen: 1
Oldest: 2021-05-17 04:12:56 +0200
Newest: 2021-05-17 04:12:56 +0200

Abgeschlossen: 248
Oldest: 2021-04-29 13:48:25 +0200
Newest: 2021-05-21 08:35:20 +0200

Ausstehend: 5
Oldest: 2021-05-22 02:28:29 +0200
Newest: 2021-05-27 08:44:10 +0200

WooCommerce Polylang Integration

Language Locale: de_DE
Polylang Language Locale: en_US
Polylang Available Languages: de_DE (WooCommerce translation file found OK at /var/www/vhosts/acido24.de/httpdocs/shop/wp-content/languages/plugins/woocommerce-de_DE.mo) en_US Warning - missing WooCommerce translation file NOT found at /var/www/vhosts/acido24.de/httpdocs/shop/wp-content/languages/plugins/woocommerce-en_US.mo

Status report information

Generated at: 2021-05-21 18:37:43 +02:00
`

</details>
@tarsonis123
Copy link
Author

This code helped to solve the issue. Found on github and credits to the creator:

/** Fix PAYPAL IPN URL translated by polylang */
function custom_rewrite_basic_wc() {
add_rewrite_rule('^wc-api/(.+)/?', 'index.php?wc-api=$matches[1]', 'top');
}
add_action('init', 'custom_rewrite_basic_wc');

If there is another clean solution I would like to hear about.

@Jon007
Copy link
Contributor

Jon007 commented May 26, 2021

I note that I commented on #218 that this solution is only needed if “Hide URL language information for default language” is not set. That comment is nearly 4 years old however I am not aware of any problems currently at least with the default WooCommerce Paypal gateway (without YITH).

So I suggest also trying the Polylang option to Hide URL language information for default language, at the top of /wp-admin/admin.php?page=mlang_settings

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants