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

Last updated by hafeeshM 1 year, 8 months ago.

Assigned support staff: Ricardo Alday.

Author Posts
February 3, 2018 at 4:44 pm #1506205

lorenzoA-2

From the Dokan dashboard, I click the flag for another language and I'd expect a link as follows:

hidden link{language}/dashboard

Unfortunately the flag is linked to:

hidden link{language}/?page_id=11324

which ends up in a page with blank content. How can I fix it?

February 6, 2018 at 2:21 am #1507945

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

1.- I'm truly sorry but I don't understand the issue ?

Can you please elaborate a little more so I can better understand?

2.- Please increase the PHP Memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/

You can add this to wp-config.php to increase WP memory:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '128M');
define( 'WP_MAX_MEMORY_LIMIT', '128M' );

- Add it above the line /* That's all, stop editing! Happy blogging. */

Kind regards,
Carlos

February 6, 2018 at 7:01 am #1508041

lorenzoA-2

Hi Carlos

Thanks for reaching out.

The problem is that the generated links in the "language selection widget" are wrong for the dashboard page of Dokan. The generated links should be:

<em><u>hidden link</u></em>{language}/dashboard

to get the page correctly rendered.
I've attached a screenshot.

February 6, 2018 at 3:53 pm #1508809

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi,

I would like to ask you a few questions in order to gather more information regarding this issue:

1.- How is the 'dashboard' page created?
2.- Is the 'dashboard' page translated to all languages?
3.- What is the permalink structure in Settings -> Permalinks?
4.- Does the issue persists with a default WordPress theme, like Twenty Seventeen?

Looking forward to your answer.
Kind regards,
Carlos

February 6, 2018 at 6:58 pm #1509045

lorenzoA-2

Hi Carlos

Answers to your questions:

1. Created a page with [dokan-dashboard] as content and set this page in dokan preferences
2. Yes, it is translated
3. Day and name (hidden link)
4. Cannot do it right now, as we have a demo with customers in the next days. If we can’t fix it earlier, then I will try another template

February 6, 2018 at 7:32 pm #1509095

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,

Thank you very much for this information.

Could you share a download link with a copy of the site? This way I can test the copy of the site in a local environment without affecting the live site.

If you could set up a staging site it will work as well.

I have you next answer private where you can share the download link. This information will be only available for us.

Note: If you create the copy of the site I recommend you to use Duplicator plugin (include the installer.php file) or All-In-One WP Migration plugin. In both cases there is no need to include the media library as we don't need it for testing purposes.

Looking forward to your answer.
Kind regards,
Carlos

February 6, 2018 at 8:07 pm #1509130

lorenzoA-2

Thank you very much, Carlos. As we’re going to have this demo tomorrow, I wouldn’t like to load the server at the moment. I will send you the link in two days as soon as we’re done.

Best regards
Lorenzo

February 6, 2018 at 8:13 pm #1509136

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Lorenzo,

I will be waiting for your answer. Just let me know when the copy of the site is ready and I will set your answer private so you can share the download link safetly.

Kind regards,
Carlos

February 8, 2018 at 4:27 am #1510835

lorenzoA-2

Hi Carlos
Can you please set the answer to private, so that I can give you the link?

Thank you

February 8, 2018 at 4:52 am #1510841

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Lorenzo,

I have set your next message private.

Regards,
Carlos

February 8, 2018 at 3:25 pm #1511743

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Lorenzo,

Thank you very much for the information provided.

However I need the installer.php file too, in order to be able to restore this copy of the site on local. Could you add a download link with the installer.php to your previous (private) message and let me know when it's done?

Regards,
Carlos

February 8, 2018 at 3:33 pm #1511754

lorenzoA-2

Hi Carlos

I've updated the previous message. Please let me know if you need anything else.

Best regards
Lorenzo

February 8, 2018 at 6:43 pm #1512014

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Lorenzo,

The copy of the site provided is missing many .js and css files, so it has been difficult to correctly reproduce the issue. However I suspect the issue is caused by the outdated plugins and some configurations.

I would like to ask you to follow this steps:
- Make a full backup of the site before making any change, this is for security reasons.
- Flush all cache memory.
- Update all outdated plugins, themes and core to their latest version.
- Deactivate all plugins non related to WPML, Woocommerce and/or Dokan.
- Edit the Dashboard page -> Make an small change -> Save it -> Update the translations.
- Go to Settings -> Permalink -> Select 'Postname' option -> Save.
- Go to WPML -> Support -> Troubleshooting link -> Click on all the buttons one by one.
- Visit the Dashboard page and use the language switcher.

Does the issue persists after this steps?

Looking forward to your answer.
Kind regards,
Carlos

February 10, 2018 at 8:01 am #1513602

lorenzoA-2

Hi Carlos

I've followed the steps but it didn't work out.
Can we try a pragmatic approach? I've tried this code:

ob_start();
do_action( 'wpml_language_switcher' );
echo preg_replace("\\?page_id=113[123]4", "dashboard", ob_end_clean());

but it doesn't print out the switcher as expected. Any suggestion to make it work, or use any another filter/hook to manually replace the link values?

I've also noticed that the links within the translated dashboard page are wrong (something like hidden link;. Is there the possibility through the API to edit the links before rendering?

February 13, 2018 at 7:30 pm #1516758

Ricardo Alday

Hi Lorenzo,

Carlos is off for today so I'll be taking over if you don't mind. I tried using the duplicator package you posted but as Carlos said, the resulting WP site has a lot errors regarding missing javascript and css files. Are you getting the same errors on your site? If not, you create a new Duplicator package?
We need a working copy so we can pinpoint the issue. Maybe custom coding won't be necessary but it's hard to test with this copy. Thanks.