Skip Navigation

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

Problem:
The client reported that a responsive menu plugin was compatible with WPML, but only one deleted menu (menu 1) was working correctly in both languages. The other menus were not accessible from wp-admin and were not being called by WPML when switching languages.
Solution:
First, we advised the client to modify a line of code in the responsive menu plugin:

if( $m->term_id == $this->option('menu') ) $menu = $m;

should be changed to

if( $m->term_id == get_option('wprmenu_options')['menu'] ) $menu = $m;

This change was to be made in the file

wp-content/plugins/wp-responsive-menu/inc/wprmclass.php

on line 483.
However, we then realized there was a mistake and instead provided a screenshot with the correct modifications to be made in the file

wp-responsive-menu/inc/templates/menu-elements.php

.

If you're experiencing a similar issue, we recommend trying the steps above. However, please note that the solution might be outdated or not applicable to your case. If the problem persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket with us.

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

Last updated by Kor 1 year, 3 months ago.

Assisted by: Kor.

Author Posts
February 22, 2024 at 9:44 am #15332317

apostolosT-4

I’ve installed WPML in a development server and constructed a site. The transition of the pages in two languages is working perfectly, the same happens with the menu. I have a problem though with the mobile responsive menu. I use the WP Responsive Menu plugin.

I created a menu (Menu 1) in two languages and the plugin was working properly. I deleted this menu by mistake and created a new menu (SOUTHSTAR.GR) for both languages. Since then, although the menu in the first language is working properly in the mobile, when I change language the menu is not showing. The site is hidden link

I contacted the plugin and gave them access to investigate if there is a problem with them and they replied “As per the WPML correct menu is unable to save that's why the issue is happening. It should automatically save the en language. But it is not saving.”

Please help me to resolve this problem

February 23, 2024 at 6:12 am #15336051

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for reaching us. Before we investigate this further, kindly update all WPML plugins to the latest version also, I have observed that the PHP limit for your "WP Memory Limit" is lower than the recommended 256MB or the required 128MB, as mentioned in the documentation found at: https://wpml.org/home/minimum-requirements/. To resolve this, I kindly request that you contact your hosting provider and request an increase in the PHP value for you.

Once it's updated and the PHP limit is increased, retest to see if it works correctly.

February 23, 2024 at 3:58 pm #15338611

apostolosT-4

Hi there,

I've made the change you requeted in WP Memory Limit, but the issue has not yet resolved
Please advise what else should i take care

Thank you

Screenshot_20240223-175549_Chrome.jpg
February 23, 2024 at 4:14 pm #15338676

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for your reply. I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

February 23, 2024 at 5:36 pm #15338897

apostolosT-4

You have my permisiion to activate or deactivate plugins

February 26, 2024 at 5:30 pm #15345676

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

It looks like the WP Responsive Menu plugin is not compatible with WPML as it is not listed here https://wpml.org/plugin/ .

I recommend that you get in touch with the support team/developers of that plugin and ask them if the plugin is compatible with WPML.

If the plugin is not compatible, I'd recommend that they join our 'Go Global' program (https://wpml.org/documentation/support/go-global-program/) where our Compatibility developers will help them make their product 100% compatible with WPML for free.

Please let me know how that goes.

February 26, 2024 at 7:26 pm #15346220

apostolosT-4

Thank you for your information,

I have contacted them and they responded that they are compatible. And indeed their menu works with your plugin. But only with the deleted menu (menu 1) not with the rest. And when I pointed out that to them, as I did in my note to you, they replied that wpml cannot save the rest menus in order for the plugin to work properly. Check now that I have set the deleted menu as the reposnsive menu to see that it works in both languages.

The problem is that the deleted menu is unaccessible from the wp-admin and the rest menus are not being called by wpml when i change language.

Please take a look again,

thank you

menu.JPG
February 27, 2024 at 8:03 pm #15351234

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

We apologize for the inconvenience, but in order to proceed with troubleshooting, we kindly request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own.

For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To assist you further, please follow these instructions:
Watch the Duplicator instructions video: hidden link

Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files.

Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large.

Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site.

February 27, 2024 at 8:34 pm #15351302

apostolosT-4

you have my permission to create a snapshot on your own. It will be safer since you know the procedure.

February 29, 2024 at 4:12 pm #15359356

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I'm able to download a duplicator package from your Website and I will investigate further now and will come back to you.

March 1, 2024 at 7:03 pm #15364575

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Did you sort it out on your own? because when I check on the mobile screen size, the English language menu shows up as shown in the attached screenshot.

Screenshot_197.png
March 1, 2024 at 7:30 pm #15364737

apostolosT-4

No this is the onlt menu that works, all the others are not working.
Check now

March 1, 2024 at 7:38 pm #15364756

apostolosT-4

I use SOUTHSTAR_GR menu with SOUTHSTAR_EN

Καταγραφή.JPG
March 4, 2024 at 9:39 am #15368462

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I'm able to replicate this on our sandbox site here hidden link and I will escalate this further to our 2nd Tier Support for further investigation.

March 7, 2024 at 5:27 pm #15386178

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

We have an update, kindly make the changes as follows.

Go to wp-content/plugins/wp-responsive-menu/inc/wprmclass.php line 483:

change

if( $m->term_id == $this->option('menu') ) $menu = $m;

Into

if( $m->term_id == get_option('wprmenu_options')['menu'] ) $menu = $m;

Then, give it another try and see if it works.