Skip Navigation

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

Last updated by joannaT-5 1 year, 10 months ago.

Assisted by: Nigel.

Author Posts
June 24, 2023 at 5:31 am #13888041

joannaT-5

Hello Since I have installed the WMPL on my staging server before deployment, I am getting Error "The given object ID is not that of a menu item” when re-labeling my multilingual menus (default English still works fine), but when updating French, Chinese, Russian menus manually and saving these I get this error message and then it empties the menu completely.

> I have inserted in my config file of my staging server : stagingml.exclusivedubai.co and of the main server:
/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');

Did not work.

> I also added then in HTACCESS file:
# END WordPress
php_value memory_limit 256M

But still not working even though WordPress memory limit shows correctly 256M

Everything was working well before I installed the WPML and tried to change menus.

Looking forward to receiving your guidance.

Kind regards

Screen Shot 2023-06-24 at 9.45.42 AM.png
Screen Shot 2023-06-24 at 9.12.37 AM.png
Screen Shot 2023-06-23 at 10.38.14 PM.png
Screen Shot 2023-06-24 at 8.40.15 AM.png
June 26, 2023 at 4:57 am #13891859

joannaT-5

Guys, I need help pls. Above issue not resolved.

June 26, 2023 at 1:11 pm #13895697

Nigel
WPML Supporter since 02/2016

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

Hi there, sorry for the delayed response, we have limited support available at the weekends.

>>when re-labeling my multilingual menus (default English still works fine), but when updating French, Chinese, Russian menus manually and saving these I get this error message and then it empties the menu completely

Can you clarify what exactly is the workflow you are following?

You have an existing English menu, and from the screen to edit the menu you click the + links to create translations of the menu to other languages, and when you add content to these menus in other languages you get the error?

That's unexpected, for sure. Could I take a look? This is a staging site you are working on, it seems. Could I get access to that?

Let me mark your next reply as private to get credentials—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

June 26, 2023 at 3:31 pm #13896951

Nigel
WPML Supporter since 02/2016

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

Thanks for the details.

I logged in to your staging site, but I can't reproduce the problem.

I edited the Top Menu in English and used the links to create a French version of the menu, and—again—a Russian version of the menu.

To each of them I just added the home page, saved the translated menu, and then checked it appeared on the front end.

It worked for both French and Russian.

I notice that the debug log is disabled, so I'm not sure where you would be seeing the error message in any case.

If you are able to recreate the error, perhaps you could record your screen while doing so?

June 26, 2023 at 3:37 pm #13897007

joannaT-5

Thanks Nigel. I just reproduce again error by adding pages to menu, saving, then changing menu label, saving...and then the menu eventually disappeared..:-(

Let me post the video showing what happens. give me 10mins.

June 26, 2023 at 3:41 pm #13897063

joannaT-5

hidden link

see the link. Pb starts to show at sec 20' of the short video. Hope this helps.

I also have enabled ( 'WP_DEBUG_LOG', true );

June 27, 2023 at 10:48 am #13901635

Nigel
WPML Supporter since 02/2016

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

Thanks for the video, that helps.

I can reproduce the problem, and I can see how some data in the database is erroneous, which leads to the issue, and I'm tinkering at the moment to see if I can identify why the wrong data is set in the first place.

I'll update you again in a while.

June 27, 2023 at 11:01 am #13901733

Nigel
WPML Supporter since 02/2016

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

I've run out of things I can do on your server, can I ask permission to take a copy of the site locally for testing, and to share with my colleagues?

June 27, 2023 at 11:11 am #13901825

joannaT-5

Of course Nigel, please proceed.

June 27, 2023 at 3:08 pm #13904073

Nigel
WPML Supporter since 02/2016

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

Thanks, I've done that, and am awaiting their feedback.

June 29, 2023 at 7:21 am #13915391

Nigel
WPML Supporter since 02/2016

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

I hadn't spotted but they did that you have an object caching drop-in plugin on the site.

They found that "after saving the menu if I clear the cache from top admin bar then remove the item it works".

On my local test site I deleted the drop-in plugin and re-tested, in which case I was no longer able to reproduce the problem.

As it appears related to the redis cache, they proposed that you remove the drop-in plugin you currently have installed and instead install and use the latest version of https://wordpress.org/plugins/redis-cache/ on your site.

Can you then re-test the issue. If it still occurs then they can investigate more thoroughly to try and find a solution.

Please let me know what you find.

June 29, 2023 at 11:06 am #13917349

joannaT-5

Hello Nigel,

Can you please ask your colleagues the names of the caching plugin they are referring to?
The one I use is Litespeed cache.
I tested again, keeping Litespeed deactivated and all other plug ins deactivated (and my theme too), and the error message still appears (I only tested ENG).

JT

June 29, 2023 at 11:09 am #13917403

Nigel
WPML Supporter since 02/2016

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

You have a redis drop-in caching plugin (screenshot from your staging site). It's that he is referring to.

Screenshot 2023-06-29 at 12.08.26.png
June 29, 2023 at 11:22 am #13917609

joannaT-5

Understood Nigel, found it. Can you please ask the team how to install this drop in cleanly?
As there is no install button.

Many thanks!

June 29, 2023 at 11:54 am #13917797

Nigel
WPML Supporter since 02/2016

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

A drop-in plugin can't be added/removed from the WordPress backend like other plugins, it resides in the wp-content folder directly, rather than the plugins folder.

You would normally use FTP to upload/delete etc., though you can use file manager plugins (e.g. https://wordpress.org/plugins/filester/) to do it from within the WordPress admin if that is easier. (I think the file would be called object-cache.php or similar.)

If you don't know anything about it, perhaps it is added by your host.

In that case, before removing, you might want to discuss the suggested change with them first.