Skip Navigation

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

Problem:
The client was unable to see the WPML menu in the WordPress admin sidebar after installing and activating WPML plugins on a WordPress multisite staging environment. This issue persisted despite the client's attempts to reinstall and clear caches.
Solution:
1. We recommended adding a code snippet to reset WPML capabilities in the theme's functions.php file:

function wpmlsupp_1706_reset_wpml_capabilities() {
    if (function_exists('icl_enable_capabilities')) {
        icl_enable_capabilities();
    }
}
add_action('shutdown', 'wpmlsupp_1706_reset_wpml_capabilities');

After adding this snippet, the client needed to visit the front page and then remove the snippet.
2. We identified that the WPML plugin was not enabled at the network level for the multisite installation. We provided instructions to activate it for each subsite separately through the network admin panel.
3. For the issue of the admin interface language, we guided the client to set their user profile to English to keep the backend in English while using German and French for the site content.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance. You can do so here: WPML support forum.

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

Last updated by Bobby 4 months ago.

Assisted by: Bobby.

Author Posts
September 9, 2024 at 5:56 pm #16158309

Otelo

<b>Background of the issue: </b>
I am trying to access WPML tools after installation and activation. The issue can be seen at hidden link. I expected to see the WPML menu visible on the WordPress admin sidebar after I install and activate the WPML plugins.

I know you're going to ask for debug info... THAT is the problem. I cannot see the WPML menu in the WordPress admin. I cannot give you debugging info because the problem is NO WPML menu is visible after I have installed and activated the WPML plugins. THAT is the problem I need help with guys. Please help me!

<b>Symptoms: </b>
NOTHING. After installing and activating WPML Multilingual CMS, WPML String Translation, WPML SEO, and WPML CMS Navigation, it is as if nothing was installed. The usual WPML link that appears in the WordPress sidebar is not there. I have no way to configure anything for translations.

<b>Questions: </b>
Why is the WPML menu not appearing in the WordPress admin sidebar after installation and activation?
How can I access and configure WPML tools if the menu is not visible?
I know you're going to ask for debug info... THAT is the problem. I cannot see the WPML menu in the WordPress admin. I cannot give you debugging info because the problem is NO WPML menu is visible after I have installed and activated the WPML plugins. THAT is the problem I have a massive deadline. I really need help with this... please help me!

September 9, 2024 at 10:13 pm #16158968

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hello,

I have seen this issue before when certain capabilities are missing from the user in the database.

To fix this, I suggest you run the following snippet:

function wpmlsupp_1706_reset_wpml_capabilities() {
if ( function_exists( 'icl_enable_capabilities' ) ) {
icl_enable_capabilities();
}
}
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' );

Just add the above code in your theme's functions.php file (between the <!--?php and ?--> tags) and visit the front-page.

Then you can remove this snippet.

Please let me know if this fixes the issue.

Thank you!

September 10, 2024 at 5:11 pm #16163026

Otelo

Hi Bobby,

Thanks for the instructions. I tried what you recommended, but still the same issue. Let me give you some additional context that might be helpful.

We had installed WPML a couple of years ago in the production site. It is built on a WordPress multisite installation with several localized sites. We only installed it in one of those local sites.

These are temporary exhibitions (6-9 months) and after it closed and moved to another city, we didn't need WPML anymore, so when it came time to renew, we didn't. I am not sure who in the team removed the plugin for the previous installation, but maybe they didn't do it properly?

Recently I purchased WPML again, for our Harry Potter experience website. Installed it and it is working as a charm (as it always does)

Now we need it again for this Jurassic World site (the same one we had WPML installed a couple of years ago). When we installed it last time it was in Production. This time I installed it in Staging because it was for a new market that needed a new local site built. When I first installed it using your OTGS installer, it kept telling me that my license had expired, even though WPML had been removed a couple of years prior, and I had already registered the new staging site in the WPML site admin panel.

Anyways, I don't know if there is something somewhere in the DB that is causing this issue. I have installed and tried several times. I have cleared caches at all levels in the servers, and on the front end.

This is super important and I am at an impass. I really need to get WPML up and running today. Please help.

September 10, 2024 at 10:00 pm #16163813

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for sharing this information!

What are your results if you create a new admin user and login with the new admin account?

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

September 11, 2024 at 3:58 pm #16167392

Otelo

Hi Bobby,

I created a full backup of the staging environment yesterday as requested.
I created a new user and granted it super-admin privileges.
I tried reinstalling WPML again as the new user. Everything installs fine, but still, no WPML menu is visible.

You can log in as the new super-admin and do your thing. Let me know if you need anything else from me.

September 12, 2024 at 6:03 pm #16173162

Otelo

Hi Bobby,

Any luck finding out what the issue is? I REALLY need to find a way to solve this installation issue. I have a zillion people banging at my door about getting translations enabled and published.

Is there anything else I can do to help you in the process?

September 13, 2024 at 12:46 am #16173777

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Please check now, you should be able to see it OK.

The plugin was not enabled in the network level 🙂

You can go here as well to activate it in each different subsite separately
hidden link

I have activated only for /ch/ now. (You still have to finalize the setup in the subsite level)

Please review and let me know if you have any other issues!

Relevant Documentation on WPML and Multisite environments

September 16, 2024 at 2:53 pm #16184585

Otelo

Hi Bobby,

Sorry for the delayed response. YES! It worked 🙂 Thank you for the support!

I do have one more problem that I did not expect. The site is in German and French because we ae opening in Basel, Switzerland. The problem is that I do not speak either one of those languages.

When I tell WPML that the primary language is German, and that I need French as the secondary to set up my translations, it also turns the WordPress CMS to German and I cannot do ANY of the setup.

I need the WordPress admin to still be in English, and I ONLY need German and French as the two languages on the site. Is there a way to have German as the base language of the content on the site, and then add French to the translations, but for me to still have the WordPress CMS in English?

I have never encountered this issue with WPML because English was always one of the languages. Help please? 🙂

September 16, 2024 at 5:37 pm #16185133

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Glad to hear that I was able to help resolve it!

Click on your profile at the top right -> edit user -> select English as the language for your user in the profile and update.

This should keep the backend in English even though EN is not a configured option with WPML.

Let me know your results, please.

September 16, 2024 at 5:55 pm #16185215

Otelo

Thank you again... that did it. Maybe that is a new thing that I missed before. I didn't know that WMPL feature was in the user settings.

Everything is working as it should. You have nailed it 1000%

Thank you Bobby!