WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
"No posts found", "No pages found" with polylang 0.9 (50 posts)

  1. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    In fact, the problem is the bug in v0.9. This version is able to save a wrong value. The development version should no be able to save the wrong value, but it does not overwrite the existing value (wrong or right), so you have to use the languages filter at least one time to save a correct value.

  2. mojojojo
    Member
    Posted 1 year ago #

    I installed the latest version 0.9.3, but still have the same problem as 'bucketsofrain' where the categories list remains empty when trying to add/edit a post. As soon as I select 'show all languages' it shows all the categories. Thanks for that 'bucketsofrain'.

    When selecting 'show all languages', I noticed the url change from:
    http://somewebsite.com/wp-admin/post.php?post=1234&action=edit
    to
    http://somewebsite.com/wp-admin/post.php?post=1234&action=edit&lang=all

    A temporary fix I use so that Editors of the website don't have to select this every time is to add some javascript in the 'Footer HTML' section of the 'WP Admin Theme' plugin.

    <script type='text/javascript'>
      var url = window.location.toString();
      var post = url.indexOf('post=');
      var edit = url.indexOf('action=edit');
      var lang = url.indexOf('lang=');
      if (post != -1 && edit != -1 && lang == -1) {
        window.location = url + '&lang=all';
      }
    </script>

    Hope this problem will be solved in a new release some time, I really love your plugin. Thanks.

  3. mojojojo
    Member
    Posted 1 year ago #

    About the previous post, I just realised that it still doesn't doesn't do me any good. When you do publish the post, it does not remember the category selected. I still have to go to the Quick Edit menu and select the category there, only then does it remember the category. Oops...

  4. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Could you test with the current development version (0.9.3.5) ?
    http://downloads.wordpress.org/plugin/polylang.zip

  5. mojojojo
    Member
    Posted 1 year ago #

    Hi Chouby,
    I tried 0.9.3.5, but still with no luck, the behaviour is still the same.

    I don't know if this might have an impact, but I couldn't set my categories to a specific language when creating new categories, it always gets set to the default language. I'm not sure if it is required to set new categories to a specific language?

    Thanks for your help.

  6. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    How I expect it to work:

    When you create a new post, the first proposed language should be:

    1. The default language if the language filter is set to "Show all languages"
    2. The language chosen in the language filter otherwhise

    When you are in the post edition panel:

    1. The categories metabox should display only the categories in the post language. If you change the post language, the list of categories should change accordingly
    2. If you create a new category, Polylang automatically affect it the current post language
    3. If you select another option in the language filter in the admin toolbar, it should have no influence on your listed categories (bug corrected in 0.9.3.5)

    When you are in the categories panel:

    1. The categories are listed according to the language chosen in the language filter (bug introduced in 0.9.3.5 and corrected in 0.9.3.6
    2. The first proposed language for a new category should be the language of the filter
    3. The parent dropdown list displays only the categories in the same language as the category you want to create

    When you are in the edit category panel:

    1. The parent dropdown list displays only the categories in the same language as current category you are editing
    2. The language filter should have no influence on parent dropdown list (bug corrected in 0.9.3.6)

    Could you please again (sorry) download the new development version and tell me what's working and what's not?

  7. mojojojo
    Member
    Posted 1 year ago #

    Hi Chouby,

    Before we continue, I just wanted to let you know about my setup. I used to run a single site install and everything worked great, but recently switched to a multisite install when I noticed the categories giving me trouble.

    I use the WordPress MU Domain Mapping plugin to map my domains, can be found here.
    My permalink structure is /%postname%/
    I use a static front page.

    I tested 0.9.3.8 on a single site & multisite install.

    Answers to your questions:
    A: On a Single Site Install
    B: On a Multisite Install

    When you create a new post, the first proposed language should be:

    1. The default language if the language filter is set to "Show all languages"
    2. A - Correct
      B - Correct

    3. The language chosen in the language filter otherwhise
    4. A - Correct
      B - Correct

    When you are in the post edition panel:

    1. The categories metabox should display only the categories in the post language. If you change the post language, the list of categories should change accordingly
    2. A - Correct
      B - Doesn't show any categories in the category meta box, even after changing the language filter in the admin toolbar to "Show all languages"

    3. If you create a new category, Polylang automatically affect it the current post language
    4. A - Correct
      B - Gets added to the categories, but the language is allways set to English, even though that is not my default language

    5. If you select another option in the language filter in the admin toolbar, it should have no influence on your listed categories (bug corrected in 0.9.3.5)
    6. A - Correct
      B - Again, doesn't show any categories in the category meta box

    When you are in the categories panel:

    1. The categories are listed according to the language chosen in the language filter (bug introduced in 0.9.3.5 and corrected in 0.9.3.6
    2. A - Correct
      B - Selecting any of the languages displays an empty category list, but selecting "Show all languages" displays all cetegories

    3. The first proposed language for a new category should be the language of the filter
    4. A - Correct
      B - Correct

    5. The parent dropdown list displays only the categories in the same language as the category you want to create
    6. A - Correct
      B - Allways empty, no matter what option I select in the language filter in the admin toolbar

    When you are in the edit category panel:

    1. The parent dropdown list displays only the categories in the same language as current category you are editing
    2. A - Correct
      B - Displays every category in every language

    3. The language filter should have no influence on parent dropdown list (bug corrected in 0.9.3.6)
    4. A - Correct
      B - Correct, but still displays every category in every language

    Hope this will help.

  8. mojojojo
    Member
    Posted 1 year ago #

    Hi Chouby,

    I translated your plugin to Afrikaans, where can I send you the .mo & .po files?

  9. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    That's really a complete test! Is Polylang activated at network level? If yes, could you try to de-activate and reactivate the plugin? I just noticed a big bug if Polylang is activated at network level an sites are created after Polylang activation.

    Thank you very much for the translation, you can use my contact form:
    http://www.flabellina.com/polylang-contact/

  10. mojojojo
    Member
    Posted 1 year ago #

    Whooo hoooo!!! It works!!!

    Polylang was activated at network level and I did add the new site afterwards, so I de-activated and re-activated the plugin at network level, and everything is working now exactly the way it should. I tested all your questions from earlier and all is working perfectly.

    Thank you so much!

  11. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    This bug should now be corrected in v0.9.4. Thank you very much for your great help!

  12. artimimiche
    Member
    Posted 1 year ago #

    Hallo. I couldn't see any pages or posts after activating Polylang... So I tried to change the include/admin-filters file as someone here said.

    An error message occurred:

    Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /web/htdocs/www.artimimiche.com/home/wp-content/plugins/polylang/include/admin-filters.php on line 206

    So i tried to undo the changes, but it still appeared.

    I have another WP account, so in the other one I downloaded Polylang, i opened the adimn-filters file and copied / pasted the code. Nothing, the error still appears.
    Even opening the WP account, i cannot manage anything now!

    help me!

    thank you

  13. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    @artimimiche please don't ask the same question on several threads. See my answer: http://wordpress.org/support/topic/parse-error-143

  14. KWentin
    Member
    Posted 1 year ago #

    in case anyone else has this problem:
    with the new update the media box when creating a new post/page showed no media again, commenting the above mentioned line in admin-filters.php fixed the issue for me.

  15. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Which versions of WordPress and Polylang?

  16. KWentin
    Member
    Posted 1 year ago #

    i had wp 3.4.2 and installed polylang 0.9.7. - can't remember which version of polylang was installed but i'm pretty sure I skipped 0.9.6 and 0.9.5 at least.

  17. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    And you still have the issue with 0.9.7 ?

  18. KWentin
    Member
    Posted 1 year ago #

    I had, but then I removed the aforementioned line in admin-filters.php and it worked again.

    is it possible that some of my files weren't updated correctly if you assume that that issue was already fixed?

    i'm just giving info, not blaming :)

  19. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    When you remove the line of code, you disable the admin language filter (the "languages" menu in the toolbar on top of the screen will no more be effective.

    The other way to solve the issue should just to choose one option in this language filter (either one language or 'all languages'), as normally, when the problem occurs, no option should be checked.

    If you can reproduce the bug and explain when it occurs, then I will be highly interested.

  20. KWentin
    Member
    Posted 1 year ago #

    sorry for the late reply - i just installed the latest version 0.9.8 and checked if I see any media in the media popup and it seems to be working without having to change the code!

    let me know if you need me to check anything else!

    in any case: thank you! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic