buggiesmalls
Forum Replies Created
-
@abdalsalaam there still seems to be an issue here producing warnings in the latest 3.7.6:
Uninitialized string offset 0 in …/dhl-for-woocommerce/includes/REST_API/Parcel_DE/Item_Info.php on line 325Could you please take a look?
Much appreciated, thanks!
Thanks for the reply but with the risk of my answer sounding harsh (not meant to be) – did you even read my questions in the last paragraphs? I know that they shouldn’t be nested, the FAQ states this well enough. I’d just like to know why, before looking at the code myself.
In short: I’m looking for the developer kind of answer, not your typical answer for technical illiterate users
Sorry, I forgot to ask what is your second language in the previous reply…
No worries, I should’ve mentioned it in the original post since it’s an essential part of the affected function.
I can confirm that 4.10.2 fixes the mixed translated content with my demo setup.
Thanks for the quick fix and swift responses!
Marking as resolved 🙂
Hi,
thanks for taking the time. I just set up a local WP site and tried to reproduce it, which I did:
– I created a simple WP site with the plugins I listed in my post (WP 5.4.2).
– I added a product with attributes and set up WPML, with English as the initial default language and German as a second language.
– I translated the product with all attributes/categories/…The product detail page shows the same behaviour that I reported earlier:
The English page: https://i.imgur.com/EPSyHZv.png
The German (broken) page: https://i.imgur.com/HlDk4QO.png
The German (fixed with code snippet from original post) page: https://i.imgur.com/knnnMm3.pngThe important part is that the second language is German (or Danish), otherwise this special behaviour won’t be invoked when filtering attribute names.
Here’s the database dump from my local test that has the problem: https://www.dropbox.com/s/99zqxmxn4rt4c8i/dump.sql.zip?dl=0
And here’s the docker-compose.yml that I used
version: '3.3' services: db: image: mysql:5.7 volumes: - ./db_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: somewordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress wordpress: depends_on: - db image: wordpress:5.4.2 ports: - "8000:80" restart: always volumes: - ./wp_data:/var/www/html environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_DB_NAME: wordpressHope this helps to quickly resolve this.
Thanks!