About Bluehost space on the WordPress background into English solutions _ Application Skills

Source: Internet
Author: User
Tags gettext wordpress version
"In 64-bit space on the installation of WordPress will be out of the situation," This is WordPress's own bugs, the problem is that WordPress in the 64-bit CPU (Linux) running, Because Php-gettext parsing. Mo Language file File error, so that WordPress in the use of Chinese version of the failure, not the legendary bluehost disabled. Mo format file. The official has not yet updated the new version, we can modify \wordpress\wp-includes\gettext.php this file code to achieve.

According to the WordPress version different, there are two sets of programs:

1/wordpress version 2.3.2
Find this piece of code
Copy Code code as follows:

if ($magic = = ($MAGIC 1 & 0xFFFFFFFF) | | $magic = = ($MAGIC 3 & 0xFFFFFFFF)) {//To make sure it works for 64-bit Pl Atforms
$this->byteorder = 0;
} elseif ($magic = = ($MAGIC 2 & 0xFFFFFFFF)) {
$this->byteorder = 1;
} else {
$this->error = 1; Not MO file
return false;
}

Replace into

Copy Code code as follows:

if ($magic = = ($MAGIC 1 & 0xFFFFFFFF) | | ($magic = = ($MAGIC 3 & 0xFFFFFFFF)) {//To make sure it works for 64-bit platforms
$this->byteorder = 0;
} elseif ($magic = = ($MAGIC 2 & 0xFFFFFFFF)) {
$this->byteorder = 1;
} else {
$this->byteorder = 0;
$this->error = 1; Not MO file
return false;
}

Pre-2/wordpress 2.3.2 version
Find this piece of code

Copy Code code as follows:

if ($magic = = ($MAGIC 1 & 0xFFFFFFFF)) {//To make sure it works for 64-bit platforms
$this->byteorder = 0;
} elseif ($magic = = ($MAGIC 2 & 0xFFFFFFFF)) {

Replaced by

Copy Code code as follows:

if ($magic = = $MAGIC 1) {
$this->byteorder = 0;
} elseif ($magic = = $MAGIC 2) {

This refreshes the background page, the problem can be solved, if still can't see Chinese, sorry, I have no other way.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.