This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 7 replies, has 2 voices.

Last updated by Bruno Kos 3 months, 1 week ago.

Assigned support staff: Bruno Kos.

Author Posts
June 17, 2019 at 10:44 pm #4038905

matjazZ

Hi, when we have WPLM activated and add products on Printful everything looks fine... showing synced and number of variations in green. It gets synced into Woocommerce a bit weird like not in stock and as Simple Product and not as Variable Product. And after a while it shows 1 not synced on your Printful dashboard.

If we disable WPLM everything works fine and it stays fine on Printful side even when enabling WPLM back.

Did you notice anything like this ever before?

Suport report looks like this:
##### Printful Checklist #####
* Connection to Printful API => OK
* Printful API key is set => OK
* WordPress Permalinks => OK
* WordPress version => OK
* WooCommerce Webhooks => OK
* WooCommerce API keys are set => OK
* WooCommerce authentication URL access=> OK
* WordPress remote requests => OK
* WordPress Site URL => OK
* Recent store sync errors => OK
* Write permissions => OK
* PHP memory limit => OK
* PHP script time limit => OK

##### Printful Last Sync's #####

##### Environment #####
* home_url => hidden link
* site_url => hidden link
* version => 3.6.4
* log_directory => /usr/www/users/artenp/shop/wp-content/uploads/wc-logs/
* wp_version => 5.2.1
* language => en_US
* server_info => Apache
* php_version => 7.0.33
* php_max_execution_time => 300
* php_max_input_vars => 1000
* curl_version => 7.52.1, OpenSSL/1.0.2r
* mysql_version => 5.7.26
* mysql_version_string => 5.7.26-1
* default_timezone => UTC
* remote_post_response => 200
* remote_get_response => 200

##### Database #####
* wc_database_version => 3.6.4
* database_prefix => wwps_
* maxmind_geoip_database => /usr/www/users/artenp/shop/wp-content/uploads/GeoLite2-Country.mmdb

##### Active Plugins #####
* Query Monitor (3.3.6)
* WPML Multilingual CMS (4.2.6)
* Better Search Replace (1.3.3)
* Classic Editor (1.5)
* Webcraftic Clearfy – WordPress optimization plugin (1.5.3)
* WooCommerce CoinPayments.net Gateway (1.0.11)
* Contact Form 7 (5.1.3)
* WC Marketplace (3.3.6)
* Disable Gutenberg (1.8.1)
* GTranslate (2.8.47)
* Jetpack by WordPress.com (7.4)
* Backend Localization (2.1.7)
* MailChimp for WordPress (4.5.2)
* Mollie Payments for WooCommerce (5.1.8)
* PixelYourSite (7.0.5)
* Printful Integration for WooCommerce (2.1.3)
* Really Simple SSL (3.2.2)
* Relevanssi (4.2.0)
* Webcraftic Robin image optimizer (1.4.0)
* UpdraftPlus - Backup/Restore (1.16.15)
* Premmerce Permalink Manager for WooCommerce (2.1.9)
* Photo Reviews for WooCommerce (1.1.2.3)
* WooCommerce PayPal Checkout Gateway (1.6.14)
* WooCommerce Multilingual (4.6.5)
* WooCommerce Product Image Flipper (0.4.2)
* WOOF - WooCommerce Products Filter (1.2.2.1)
* WooCommerce Services (1.20.0)
* WooCommerce (3.6.4)
* Nonstop Smush (1.0.1)
* WP-Optimize (2.3.4)
* WP Rocket (3.3.5.1)
* Smush (3.2.1)
* WPML String Translation (2.10.4)
* WPML Translation Management (2.8.5)
* Custom Product Tabs for WooCommerce (1.6.10)

##### Theme #####
* name => Online Shop Child
* version => 1.0.0
* author_url => hidden link
* parent_name => Online Shop
* parent_version => 2.0.0
* parent_version_latest => 2.0.0
* parent_author_url => hidden link

##### WooCommerce settings #####
* currency => EUR
* currency_symbol => €
* currency_position => left
* thousand_separator => ,
* decimal_separator => .
* woocommerce_com_connected => no

##### WordPress Error log (last 50 entries) #####

June 18, 2019 at 11:59 am #4043679

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

Personally I have not worked with Printful and generally there were very few tickets related to some issues with it since this forum has started. Can you tell me if this is how it works:

- You create a product in Printful
- use https://wordpress.org/plugins/printful-shipping-for-woocommerce/
- the above plugin pulls these products from Printful to your WooCommerce site?

But the third step does not work with WooCommerce multilingual active? Has this issue started recently, or it didn't work at all since you started using it?

Another thing - is the issue happening if you only activate WPML, WooCommerce multilingual and Printful plugin (I am asking this simply to exclude a possible conflict with any other plugin)?

Can you also do this?

1. Edit wp-config.php and insert the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

2. Reproduce the issue - possibly try to resync products up to the point where it fails?

3. Locate the debug log in: /wp-content/debug.log

4. Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information.

Also, can you tell me if there's anything in the browser console log when this happens, such as 404 errors, blocked files or URLs or something similar?

Regards,
Bruno Kos

June 18, 2019 at 10:10 pm #4046717

matjazZ

I get no errors/warnings in debug.log... the synchronization happens from Printful dashboard so I guess I'll have to wait them to get back to me.

webhooks-delivery-xyz.log looks the same with or without WPML active on our website.

June 19, 2019 at 6:54 am #4048459

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

I see - I'm still thinking on how could we test this (because our compatibility support need to see the issue from the scratch and can't debug on your production site). Can you tell me if you can connect your Printful account to other websites (perhaps a test site) or is it restricted to one website only?

Or perhaps I will need to register for an account there (it seems like that the account is free for certain amount of product - can you tell me if this is the case?)

Regards,
Bruno Kos

June 19, 2019 at 1:19 pm #4051783

matjazZ

Hi, yes printful is free (you pay for cost of printing). You can register and test everything for free...

Thanks

July 1, 2019 at 1:19 pm #4119321

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

Can you tell me if this the same issue as yours?
https://wpml.org/forums/topic/woocommerce-and-variable-products-not-working-string-translation-problem/

If yes, we have received reports on this and tested it and already escalated to our compatibility team. I will let you know as soon as get more information from them!

Regards,
Bruno Kos

July 1, 2019 at 3:08 pm #4120559

matjazZ

Yeah that's the same issue. Sorry but on your test site I wasn't able to connect Printful plugin over API... something error about SSL...

At the moment I've found a solution to disable Media Translation (I've had it to create copy record for each language) and disabled String Translation for everything on products...

Now my products sync as Variable products and stay synced after "Data Refresh" on Printful's dashboard.

July 2, 2019 at 6:18 am #4124207

Bruno Kos
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

I have received a feedback from our compatibility team. Due to how all this works ( external service) it is a bit difficult to debug and trace the issue. As a workaround, can you try the following and let me know if this is a satisfactory solution for you?

-Create a product without variants in Prinful.com and sync
-Add the variants to the product in Printful.com and sync

Let me know!

Regards,
Bruno Kos