• Resolved joy0114

    (@joy0114)


    Hello,

    Since last update to version 1.4.3, the following admin notice stay (to be more precise come back again and again) on the top of the wordpress dashboard:

    cart page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1
    checkout page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1
    myaccount page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1
    shop page in base language fr_FR was not found and was created using woocommerce create_pages() as page -1

    By the way, “page -1” is a link to the actual page.

    The cross to close this admin notice works, but the message come back again.

    I did not notice any issue on the frontend: I can switch from one language to another on checkout page, cart page, product pages …

    Any idea to disable this admin notice ?
    Thanks a lot for help.

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    @joy0114 this messages indicates that there is a real problem, so before cheating the system into thinking everything is ok it is worth thinking what the problem is..

    does the link to page -1 actually work? there should not be a page -1 …
    in this case the message is wrong, in fact -1 means that the page still cannot be found even after recreating it.

    To start with you can turn off the setting WooPoly, Settings, Check WooCommmerce Pages after which the warning will change to indicate that the french page “was not found and must be created for the shop to work”

    Please report on
    https://github.com/hyyan/woo-poly-integration/issues
    including the information requested and specifically the language environment:

        What are the languages enabled in Polylang and which is the default language eg in: /wp-admin/admin.php?page=mlang which Locales are listed and which is starred (the default)
        What is the site language in WordPress, Settings, General, eg: /wp-admin/options-general.php
        What is the user language of the admin user, as set in /wp-admin/profile.php
    Thread Starter joy0114

    (@joy0114)

    Hello Jonathan,

    Thanks for your answer.

    I was not so worried because this notice is preceded by a green stripe. Usually, it’s just a notification with a green stripe … Perhaps, I’m too optimistic.

    The link “page -1” is a “versatile” link: it depends on the admin page where the notice appears and in fact, the link leads to the page viewed at this time.
    If I’m on the page “/wp-admin/profile.php”, the link “page -1” leads to /wp-admin/profile.php , and so on and so on.

    I already UNchecked the option “Check WooCommerce Pages
    Check if WooCommerce pages are present and correctly translated and published. Especially helpul on initial setup.” >> no success, the notice is always the same.

    But, you’re right, at the beginning of this issue, the notice was “cart page for language fr-FR was not found and must be created for the shop to work” (idem with checkout page, shop page) and I suppose I answered “yes, ok, just do it”.
    Since, even with the option for checking page being UNCHECKED, this message doesn’t appear and instead of it, i got the notice with “page -1″…

    To answer to your questions:

    What are the languages enabled in Polylang and which is the default language eg in: /wp-admin/admin.php?page=mlang which Locales are listed and which is starred (the default) ?

    2 languages: french by default (with the star), and english. But it’s been missing some translations for a long time, and it has never been a problem.

    Site language: is french in WordPress, Settings, General

    User language of admin user is french in /wp-admin/profile.php

    Furthermore, Polylang is Version 2.6.1 and Hyyan WooCommerce Polylang Integration is Version 1.4.3
    WordPress 5.1.1 and Woocommerce 3.5.7

    Ok, tomorrow, I’m going to report it on Github.

    Thanks a lot for your attention and your advices.

    Bertrand

    Thread Starter joy0114

    (@joy0114)

    Thanks Jonathan !

    it’s only my fault … You were right: some Page, article or product (not important) with no default language.
    Since last update of Polylang and/or Hyyan Polylang integration, it was not possible anymore to let this defect continue.
    https://github.com/hyyan/woo-poly-integration/issues/440

    Congratulations for your wonderful plugin and your help.

    Best regards,
    Bertrand

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hyyan admin notice’ is closed to new replies.