Skip Navigation

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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by jakubN-2 1 year, 6 months ago.

Assisted by: Nigel.

Author Posts
May 11, 2023 at 7:22 am #13627545

jakubN-2

Hello, in block-based (theme.json) themes it's throwing console error, that you're using "stroke-width" instead of strokeWidth. It's about file /wp-content/plugins/sitepress-multilingual-cms/dist/js/blocks/app.js
When I go there and I replace all occurrences of "stroke-width" with strokWidth (without quotes) then everything works.
Can you please implement this change in next release, so it will be fixed for everyone and it will not cancel my fix?

May 12, 2023 at 10:08 am #13636013

Nigel
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi Jakub

Let me take over here.

Do you have some more information about what triggers the issue?

I need some steps to be able to reproduce the problem to be able to escalate.

I tried on a local test site switching to a block-based theme (twentytwentythree) and editing theme templates while I have WPML active, but didn't stumble across the problem.

May 12, 2023 at 10:17 am #13636125

jakubN-2

Hello,

yes, I've tried it also on clean WP install and it worked, but it looks like it's throwing this error in combination with some other plugins... probably some block managers or something like that.

Error appeared mostly in Site Editing environment in Styles management section, but anyway... it's just a small change that can not break anything, so maybe you can just change it and that's it?

I will give you more information if needed, but that requires me to do a lot of testing and currently I'm 120% busy, so let me know if you can just do this small change in code without additional work required from my side, otherwise we will need to wait a few weeks until I finish more important things

May 12, 2023 at 1:32 pm #13637777

Nigel
Supporter

Timezone: Europe/Madrid (GMT+01:00)

OK, I've done some reading around of this, and I've mostly seen it recommended that camelCase be used for style attributes, although I haven't seen anywhere that specifies that it is required.

I've asked my second tier colleagues to look into it and express an opinion about whether it would be something we can change even without being able to reproduce the issue.

I'll let you know when I have some feedback.

May 15, 2023 at 9:47 am #13646601

Nigel
Supporter

Timezone: Europe/Madrid (GMT+01:00)

Hi Jakub

It turns out we've already made this change in development, it just hasn't been released yet.

You should see the change when the next WPML updates are published.

May 15, 2023 at 9:51 am #13646643

jakubN-2

Ok, then I'll wait till next release... thanks!