Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with image uploads and CSS not loading properly in the Dokan vendor dashboard after changing the default language from English to Swedish, it might be due to the Dokan files not loading correctly. This problem is indicated by 404 errors on the Dokan JavaScript and CSS files.
Solution:
We recommend checking the file paths in your theme settings. The issue appears to stem from incorrect path configurations that mix up the paths, affecting file loading on your site. This issue occurs regardless of the language setting, so it's essential to verify the paths in both English and Swedish configurations.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please visit our support forum to open a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.

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 2 replies, has 2 voices.

Last updated by Marcel 1 year, 5 months ago.

Assisted by: Marcel.

Author Posts
October 25, 2024 at 10:21 am #16330088

Team

Background of the issue:
I am using the WPML plugin for translation in WordPress and have changed the default language from English to Swedish. I am also using the Dokan plugin for vendor functionality. After making this change, I encountered issues with image uploads and CSS in the vendor dashboard. Please see my screenshots: hidden link, hidden link. The issue can be seen on this page: hidden link.

Symptoms:
I am unable to upload images for the product, including both the main product image and gallery images, after switching the default language from English to Swedish. Additionally, the CSS in my vendor dashboard does not load properly when the default language is set to Swedish.

Questions:
Why can't I upload images after changing the default language to Swedish?
Why is the CSS not loading properly in the vendor dashboard when the language is set to Swedish?

October 28, 2024 at 8:23 am #16336222

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hi,

Do you have a staging site where we could take a look? It would be helpful to inspect the JS console on the affected page while logged in to see if any errors are visible.

Best regards,
Marcel

October 28, 2024 at 3:52 pm #16338720

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hi,

it appears that both issues stem from the same root cause: the Dokan files aren’t loading, as indicated by the 404 errors.

Example: dokan.js:
hidden link

dokan-pro.js
hidden link

dokan-pro.css:
hidden link

I don’t see any indication that WPML is causing this issue; rather, it seems to depend on the files included in your theme. It mixes the path incorrectly. It happens on both languages.

Best Regards,
Marcel