Forums

Polylang
[resolved] categories and tags - cannot assign language (8 posts)

  1. PeterPAP
    Member
    Posted 4 months ago #

    Hi again Chouby,

    So I set up this test site where I activated Polylang and as expressed before it works like a dream. Now I have activated it in my live site and have the same problem again!

    I can set up languages in settings, I can set up pages in different languages and easily link relevant page translations using ID field. I can then see liitle '+' and pencil icons in the table listing all pages.

    However when it comes to categories and tags I am not able to even set a language.

    Lets say I have 30 categories, all with English selected in the dropdown (they were original categories). I add a couple of new translated categories. Now I click on edit (new) category. The language shows English. So I select Polish from the drop down (as this is the second language for my project). A frame shows up below - more like a table - showing 3 columns in 1 row:
    Language - English
    Translation - No untranslated term
    Edit - Add new

    There is no drop down field where I could select matching English category! I believe a drop-down field should appear where there is 'No untranslated term' is.

    It is absolutely doing my head in!!!
    I click 'Update' button and my language selection is not saved.
    When I come back to re-edit the category it still reads English even though I had selected different language.
    (is it because it is not saving 'Polish' I select, that then 'No untranslated term' shows on any English category???)

    I remember I had a similar issue on the test site and then suddenly these drop-downs where I could select matching translated category showed up. From then on I could match all categories/tags. I do not recall what I did to get to that point though.

    Any ideas?
    Your help will be much appreciated,
    Pete

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Posted 4 months ago #

    Do your English category show a pencil in the English column and a + in the Polish column ?

    If no, could you edit (not quick edit) one of your English category and click on the update button ? Does the pencil and the + appear for this button ?

    If no, could you de-activate Polylang, re-activate it and retry the above test ?

  3. PeterPAP
    Member
    Posted 4 months ago #

    Neither English or Polish category shows a pencil or a + sign.
    All have English as their language. When I change English to Polish language in Polish category and Update this change does not seem to be implemented. When I Edit this Polish category again I can see it is still English.

    I tried to edit English category. Same as described above.
    I also deactivated and reactivated the plug-in but it made no change unfortunately.

    Most bizarre because I had the same issue with my test site but then the problem suddenly disappeared and the test site works without no problems.

  4. Chouby
    Member
    Posted 4 months ago #

    Polylang creates a table (wp_termmeta) in the database, and for some reason I ignore, it seems that it was not created for your site. Have you access to your database to check if the table is present or not ?

    Which version of Polylang are you using ?

  5. PeterPAP
    Member
    Posted 4 months ago #

    I use Polylang 0.6.1. and WP 3.3.1

    I use cPanel so I have phpMyAdmin.
    Just check and you are correct - there is no table (wp_termmeta).
    Also checked my test site and this table is there.

    Any ideas how to rectify my live site?

  6. PeterPAP
    Member
    Posted 4 months ago #

    do you think manual export of the table (wp_termmeta) from my test site and then import to live will do the job?

  7. Chouby
    Member
    Posted 4 months ago #

    I guess you can do that. Check the prefix (wp_ or something else). It's the first time I am aware of such an issue.

  8. PeterPAP
    Member
    Posted 4 months ago #

    OK. This is what I did:
    - exported (wp_termmeta) from my test database as .sql file
    - in WordPad I deleted all data, and left only table structure
    - imported it to my live database

    It did the job!
    Everything seems to be working fine now. I can see pencils and + signs next to category and tag names once I 'update' them.

    Chouby many thanks for your help.

    It is interesting however why this table did not install in the first place. As you might remember with my test site I as experimenting with different bilingual plugins when I came across the same issue with Polylang. I then did the fresh install of WP, and only then it started to work as far as I remember. So it is entirely possible that the very same table had been missing in the first place?

    Anyway, it is a super plugin and thank you for it.
    Looking forward to v0.7

    regards,
    Peter

Reply

You must log in to post.

About this Plugin

About this Topic