-
Notifications
You must be signed in to change notification settings - Fork 37
MultilingualPress returning incorrect relationships #299
Comments
Hi ahmed-sigmalux, I'm not able to reproduce the issue in current stable branch (2.11), which version of MultilingualPress are you using? Assuming that your are using |
Hi Dinamiko, in our MLP WordPress installation we have the same behavior mentioned by ahmed-sigmalux, we are using the current version of the mlp plugin 2.11.0 apart from that the following versions:
In the mentioned use case we clicked |
Hi Charokee, I'm still not able to reproduce this issue, can you please explain me the exact steps that are you doing? thanks. |
Hi Dinamiko, the problem shows as follows: We have a Post or Page on the german site (DE) and a Post or Page on the english site (EN). If I link a DE-Page with an EN-Page or vice versa, everything works fine. So linking DE Page 1 —> EN Page 1 for the first time works. Our only workaround to create new relationships with so far otherwisely linked pages or posts is to recreate them in both languages (so they have no relationship yet) and linking them. That means, everytime we want to change an URL or a relationship, we would have to recreate the pages or posts concerned. Bare in mind, all PlugIns, that might interfere are turned off. Only the PlugIn 'MultilingualPress' is activated in the network section for the whole network. I created the multilingual multisite network with the help your PlugIn 'WPML to MultilingualPress' / WP CLI. In addition to that I used the WordPress Importer to import DE posts from an existing blog for the new blog section in the multisite. Also I read in some posts of the enfold theme forum (the theme we use), only wpml translation are officially supported. Thanks for the support! |
Hi Charokee, Regarding the theme, I'm not sure if you did it already, but did you tried to switch temporally to a default WordPress theme to see if the problem persist? |
Hi Dinamiko, thanks for the good advice, after installing, activating 2017 wordpress default and switching back to our enfold child theme the relationships work again as supposed to. It seems that the default theme restored some buggy settings in the whole environment. For now we have a kind of fix, do you have an idea who to debug this bug decently? It might be interesting for future updates of MultilingualPress. But for now, merry xmas! |
Hi Dinamiko, Thanks a lot in advance! |
I'm still seeing this problem in 2.11.0. Is there an extended debug option we can enable to get more insight with what's going wrong? |
@gitigritty I'm still not able to reproduce the issue yet, can you explain the steps that are you doing to reproduce the issue? also any relevant information about your context (MLP version, PHP version...) that you consider important, thanks. @ahmed-sigmalux we do not have a debug option in MLP, I've created a quick video reproducing the steps and then check relationships in database: |
@Dinamiko So eventually, I ended up deleting this page and the respective translation page completely (also from trash), regenerated both pages and inserted the former content through the layout builders "safe template function". After setting the relationship from the main language, everything seems to work fine. So after all I assume that there might be something related to the way enfold handles those pages defined as blog main page. I will let you know in case we find out more. Or do you have any other ideas based on that details? |
@gitigritty having exactly the same issue with ENFOLD, too. MultilingualPress 2.11.0 |
@StudioArt |
@Charokee : I checked the MySQL multilingual_linked table and believe I have identified the reason why MultilingualPress returns the wrong relationships. When MLP returns the correct relationship, the multilingual_linked table has entries like:
When MLP returns the incorrect relationships, however, the table has entries like:
It appears the ml_source_elementid and ml_elementid are referencing 2 different posts for the same blogid. |
Version Information
Steps to Reproduce
What I Expected
MultilingualPress should return the new relationship of a.1 to b.1.
What Happened Instead
Whatever relationship is set the first time cannot be changed. I have tried flushing the cache without success. Nothing relevant is generated in the debug log.
The text was updated successfully, but these errors were encountered: