The website is set in english
Dokan Pro license
Dashboard Multivendor dashboard was translated with WPML into other languages.
I discovered that UI is broken for vendor dashboard in other languages
I couldn't find a way how to set those pages back to be displayed in english only.
I deleted Generated dashboard pages for other languages (WP admin - pages) , leaving the English (default one)
Tried to duplicate English version to other languages via Translator Manager - Dashboard> Duplicate content> Select languages.
Pages got created, but Why I try to access Vendor Dash in other lang, it redirects to 404.
How Can I get back the correct navigation for vendor dash in other languages?
Is there any solution how to translate Vendor Dash and keep proper UI layout?
Here is the error that was generated
Howdy!
WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, WPML Multilingual CMS.
First, visit your website (hidden link) and check for any visible issues. Next, visit the page where the error was caught (hidden link) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
hidden link
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.5.2
Active theme: Astra (version 4.6.11)
Current plugin: WPML Multilingual CMS (version 4.6.10)
PHP version 8.1.28
Error Details
=============
An error of type E_ERROR was caused in line 26 of the file /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/wpml-posts-listing-page.class.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/wpml-posts-listing-page.class.php:26
Stack trace:
#0 /wordpress/core/6.5.2/wp-includes/class-wp-hook.php(324): WPML_Posts_Listing_Page->pre_populate_caches(Object(WP))
#1 /wordpress/core/6.5.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#2 /wordpress/core/6.5.2/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#3 /wordpress/core/6.5.2/wp-includes/class-wp.php(830): do_action_ref_array('wp', Array)
#4 /wordpress/core/6.5.2/wp-includes/functions.php(1336): WP->main(Array)
#5 /wordpress/core/6.5.2/wp-admin/includes/post.php(1304): wp(Array)
#6 /wordpress/core/6.5.2/wp-admin/includes/class-wp-posts-list-table.php(165): wp_edit_posts_query()
#7 /wordpress/core/6.5.2/wp-admin/edit.php(235): WP_Posts_List_Table->prepare_items()
#8 {main}
thrown
I see you're experiencing issues with the Dokan pages and dashboard when using WPML. While checking the WPML Debug Info, I found that the "Dokan WPML" plugin is currently not active on your site. This plugin is required as it makes the feature of Dokan compatible with WPML. Please check the link below for more details:
Could you please activate the "Dokan WPML" plugin on your site and then try to translate the pages? You can also follow the instructions mentioned in the guide below to make the dashboard and pages work properly with WPML.
After activating, please clear the caches on both your site and browser, then recreate the Dokan pages. Ensure you generate the default pages via the Dokan plugin settings by navigating to Dokan > Tools > Install Dokan Pages. I hope it will help.
If the 404 error appears even after that, the issue might be related to the permalink settings. Please go to "Settings > Permalinks" in your WordPress dashboard and save the permalink structure. Sometimes, saving the permalink structure solves this kind of issue.
For the UI issue, please use browser tools such as Chrome's Developer Tools to check for missing resources (like CSS or JS files) when you load the dashboard in a different language. If you notice any errors in the console, could you take a screenshot of these errors and share them with us in your next response? This will help us identify the root cause and address the issue accordingly.
Let me know the update. I will be happy to help if you need further assistance in this matter.
Best regards,
Prosenjit
The topic ‘[Closed] Dokan-Vendor dash returns 404 after deleting and recover page in another lang’ is closed to new replies.