Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter temuag

    (@temuag)

    Hello Matthew,

    Thanks for your answer!

    But I could find out the reason of the issue, and how to solve it. It’s because the variable $wp_local_package wasn’t defined in the function wp_load_translations_early() from wp-includes/load.php.

    I’ve figured out this variable should be defined in the file wp-includes/version.php and indeed, it wasn’t the case for my WordPress. To verify, I downloaded the French version of WP.zip, and guess what I’ve found in the version.php at the end… :
    $wp_local_package = ‘fr_FR’;

    That means, during one of a previous upgrade, the version.php wasn’t updated correctly, and the $wp_local_package wasn’t defined anymore.

    To fix it, simple:
    I added $wp_local_package = ‘fr_FR’; at the end of version.php
    …and now, it’s WORKING: “Indisponibilité temporaire pour cause de maintenance. Veuillez revenir dans un instant.”

    I updated the ticket you mentionned, with this information.

    Thanks anyway for your help!

    Thread Starter temuag

    (@temuag)

    Right, I agree with your conclusion! I saw the ticket has been opened 7 months ago, but still no solution?

    One thing: when I set up the website (middle of April 2015), I remembered it was working correctly. A that time, I got the last version of WordPress, probably the 4.1.x …so the error must have been put since that date, don’t you think?

    Thread Starter temuag

    (@temuag)

    I don’t think plugins can have an impact, as in maintenance mode, all the WP site is deactivated.

    Just, do you see the same thing in your blog?

    Thread Starter temuag

    (@temuag)

    Thread Starter temuag

    (@temuag)

    Yes, still the same even if I put the language to Spanish: the notice is still in english.

    ben69007, I do not have any plugin regarding the maintenance mode, it’s the native functionality of WP.

    Thread Starter temuag

    (@temuag)

    Hi Matthew,

    Thanks for your quick reply. Yes I can provide you a screenshot of the message saying “Briefly unavailable for scheduled maintenance. Check back in a minute.”. But it’s only a black text without any formatting.

    Yes the translations are fine, as I could find the translated message for this sentence in the fr_FR.po, and the translation was for the line 191 of load.php, which is the right line to translate (I checked it).

    Any other idea?

    As fas as I understand, it seems that at this stage, WordPress doesn’t know the language of the blog is french, and so, doesn’t look for the french language of the sentence. Would it be possible?

Viewing 6 replies - 1 through 6 (of 6 total)